Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

edit:

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

gives

LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
share|improve this question
add comment

1 Answer 1

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/libphp5.so" 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
1  
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
add comment

Your Answer

 
discard

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.