You are here: Re: [PHP] Problem with php.ini « PHP « IT news, forums, messages
Re: [PHP] Problem with php.ini

Posted by John Nichel on 08/16/05 18:51

Tim Boring wrote:
> I'm having a problem with php-cli and php_mod reading my php.ini file.
> I've compiled php from source, during which process I set
> "--with-config-file=/etc". Once the compile completed, I then copied
> php.ini-recommened to /etc/php.ini.
>
> After restarting Apache, I run phpinfo() and "Configuration File Path"
> is showing only "/etc", which means it's not find /etc/php.ini. So then
> I tried the cli and ran phpinfo() from it and same thing. If I run it
> as "php -c /etc/php.ini", it can find/read it.
>
> For what it's worth, this is happening on a Gentoo system, but this
> shouldn't make too much of a difference since I've compiled PHP from
> source (v5.0.4), the same source I've used on a couple of other
> (non-Gentoo) machines.
>
> Just in case, here's the configure command I used:
> './configure' '--with-apxs2=/usr/sbin/apxs2' '--disable-cgi'
> '--with-config-file-path=/etc' '--with-openssl' '--with-zlib'
> '-enable-bcmath' '--with-bz2' '--enable-calendar' '--enable-dba'
> '--with-db4' '--with-inifile' '--with-flatfile' '--enable-dio'
> '--enable-ftp' '--enable-gmp' '--with-unixODBC' '--with-pgsql'
> '--with-readline' '--enable-soap' '--enable-sockets' '--enable-wddx'
> '--with-xsl' '--with-pear'
>
> Any ideas?

Permissions?

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
john@kegworks.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация