PHP Not loading php.ini file?
Posted on 2006-04-05
I'm running PHP 5.1.0 under Apache on a Linux box. When I run phpinfo(), it tells me that the location of my php.ini file is at "/export/software/minerva/php/lib". Originally, there was no file there, so I put a copy of the distribution one there and restarted apache. This had no effect. None of the configuration changes that I make to this php.ini file are ever reflected when I phpinfo(). I've subsequently tried placing copies of my modified php.ini file in the local directory that I execute phpinfo() out of, in the root directory of php, and in the root directory of apache and htdocs--still, nothing happens. PHP seems unwilling to load the php.ini file.
One note that might be related is that whenever I restart apahce, I get the following error:
[warn] module mod_php5.c is already added, skipping
All I can think of to try at this point is to completely unistall and reinstall everything, which I'm not anxious to do as this is a production server. I'm hoping someone will have seen this before and might be able to help.