Configuring php with apache
Posted
by
R11
on Server Fault
See other posts from Server Fault
or by R11
Published on 2012-10-29T14:16:36Z
Indexed on
2012/10/29
17:04 UTC
Read the original article
Hit count: 251
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?
© Server Fault or respective owner