Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have compiled PHP 5.3 on ubuntu about two months ago following Brandon Savages guide (I think). It works. Now I wanted to see in what file apache stored the location of the PHP binary but I can't find it, it's not in any configuration file. Does apxs2 has something to do with that?


cat /etc/apache2/mods-available/php5.load


LoadModule php5_module /usr/lib/apache2/modules/
share|improve this question
up vote 2 down vote accepted

Try this:

cat /etc/apache2/mods-available/php5.load
share|improve this answer
Thanks. The output: "LoadModule php5_module /usr/lib/apache2/modules/" I've seen this but couldn't connect it to a php binary. How does this file load PHP? – koen Feb 2 '10 at 19:35
Is this file created and added to the apache dir by the make/make install? – koen Feb 2 '10 at 19:38
When PHP is built/used as a module the PHP interpreter is loaded into the Apache server (via that LoadModule directive). The web server and the PHP interpreter run in the same process - think Kirby eating critters and gaining their powers :) – voretaq7 Feb 2 '10 at 19:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.