Re: php ini not being read
| From: | Mark Galbreath | Date: | Fri, 10 Mar 2006 19:19:24 +0000 |
| Subject: | Re: php ini not being read | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-17161@lists.php.net to get a copy of this message | ||
do you have the php.ini path defined in httpd.conf?
mark
>>> "gjukema" <gjukema@vu-ware.com> 11-Mar-06 01:14:14 AM >>>
I found a work around, but would still like to solve the issue. What I've
done is make a php.ini symlink in the root filesystem pointing to the php.in
file /usr/local/php/lib/php.ini. After restarting apache, phpinfo() now
states that it's reading the /usr/local/php/lib/php.ini file.
Any ideas how this is possible that it won't find the php.ini file on it's
own, but will when I put the symlink in?
Thanks,
Geoff
""gjukema"" <gjukema@vu-ware.com> wrote in message
news:65.39.27106.2C9B1144@pb1.pair.com...
> Sorry if this is a double post, I seem to be having troubles with my news
> client....
>
> I've been searching for a solution for hours and still can't get my
> php.ini
> file to be read on Fedora Core 3 w/ Apache.
>
> I've read the FAQ :
>
> http://ca.php.net/manual/en/faq.installation.php#faq.installation.findphpini
>
> but it doesn't list my scenario as follows:
>
> phpinfo() lists *only* the configuration directory as :
>
> Configuration File (php.ini) Path /usr/local/php/lib
>
>
> BUT.. the file is located in /usr/local/php/lib/ :
>
> [root@localhost lib]# pwd
> /usr/local/php/lib
> [root@localhost lib]# ls -l
> total 52
> drwxr-xr-x 11 root root 4096 Mar 10 00:47 php
> -rw-r--r-- 1 root root 45181 Mar 9 23:04 php.ini
> [root@localhost lib]#
>
> I should mention that this is a new install of Fedora Core 3, and I've
> been
> copying all my binaries (php, apache, mysql) and configuration files from
> a
> hard drive that was a running system earlier today.
>
> I've never run into this issue before and I've been
> running/installing/programming PHP for years.
>
> Any ideas how I can debug why PHP can't read (or see) the file in this
> directory?
>
> Thanks,
> Geoff
> gjukema@vu-ware.com