Configuring php with apache
- by R11
I managed to thoroughly confuse myself with php configuration in my apache install (on a mac). I am trying to get xdebug to work in eclipse and noticed that there are two different installs of php on my machine. The one (v5.4.5) in the apache install directory /opt/local/apache2/ and another one (v5.3) in the default system directory /usr/bin.
My questions are:
The php in the apache install directory was installed by me from source. But it does not have a php.ini file, instead it has PEAR.conf and other bunch of conf files. What are they and did I install something wrong?
Can I compile apache with php support and have it use the php from the system directory right? How do I know which php its using? httpd -M is the only command i can see.
Can I force apache to use a different php?