Re: Re: php ini not being read
| From: | gjukema | Date: | Sat, 11 Mar 2006 09:34:12 +0000 |
| Subject: | Re: Re: php ini not being read | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-17162@lists.php.net to get a copy of this message | ||
I've never put any reference to php.ini within the httpd.conf file in the past, so no, I do not
have php.ini in httpd.conf this time either. Here's my httpd.conf (as it pertains to php) :
AddType application/x-httpd-php .php
That's it; where would I reference the php.ini file within apache (point me to some docs on
this topic if you know them).
Thanks,
Geoff
""Mark Galbreath"" <GalbreathM@gao.gov> wrote in message news:s4118afb.074@GAOGWIA1.GAO.GOV...
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