Re: Where does PHP look for php.ini??
| From: | Stut | Date: | Sat, 07 Jul 2007 00:53:56 +0000 |
| Subject: | Re: Where does PHP look for php.ini?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-258431@lists.php.net to get a copy of this message | ||
Tijnema wrote:
I just noted that my php (CLI and Apache2 SAPI) doesn't read my php.ini in /etc I have compiled php with --prefix=/usr, and my /usr/etc is symlinked to /etc, but it doesn't read the php.ini file.. when I use the CLI with -c /etc it works fine :)php -i on the command line, or phpinfo() in a SAPI script will tell you where it expects to find it, as well as whether it did find it. -Stut -- http://stut.net/