#22001 [NEW]: /php.ini is read instead of configured /usr/local/etc/php.ini !!!
| From: | mdff at a1 dot net | Date: | Sat, 01 Feb 2003 21:50:50 +0000 |
| Subject: | #22001 [NEW]: /php.ini is read instead of configured /usr/local/etc/php.ini !!! | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-31851@lists.php.net to get a copy of this message | ||
From: mdff@a1.net
Operating system: Solaris 8
PHP version: 4.3.0
PHP Bug Type: *Configuration Issues
Bug description: /php.ini is read instead of configured /usr/local/etc/php.ini !!!
hi,
i saved a version of php.ini as "/php.ini", which should only be a copy
before i changed my real one...
then i tried to change my real php.ini (/usr/local/etc/php.ini) but the
changes did NOT take effect (yes, i restarted my apache!)
reading phpinfo() output, it told me that it read /php.ini instead of
/usr/local/etc/php.ini, which is given in the compile options as default
as you can see below:
i compiled php-4.3.0 with the following options:
./configure \
--prefix=/usr/local \
--with-apxs=/data/apache/bin/apxs \
--enable-cli \
--disable-cgi \
--disable-debug \
--with-config-file-path=/usr/local/etc \
--with-exec-dir \
--enable-sigchild \
--disable-magic-quotes \
--disable-rpath \
--disable-ipv6 \
--with-openssl \
--disable-all \
--with-zlib=/usr/local \
--disable-ctype \
--with-curl=/usr/local \
--with-gd \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local \
--with-zlib-dir=/usr/local \
--with-freetype-dir=/usr/local \
--with-t1lib=/usr/local \
--enable-gd-native-ttf \
--with-gettext=/usr/local \
--with-imap=/usr/local \
--with-imap-ssl=/usr/local \
--with-ldap=/usr/local \
--with-mcrypt=/usr/local \
--with-mysql=/usr/local \
--with-oci8=/data/oracle \
--with-pcre-regex \
--disable-posix \
--enable-session \
--enable-sockets \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-xml \
--with-expat-dir=/usr/local \
--enable-shared \
--enable-static \
--disable-inline-optimization \
snippet output from phpinfo():
phpinfo() PHP Version => 4.3.0 System => SunOS test01 5.8
Generic_108528-18 sun4u Build Date => Jan 31 2003 21:09:32 Configure
Command => './configure' '--prefix=/usr/local'
'--with-apxs=/data/apache/bin/apxs' '--enable-cli' '--disable-cgi'
'--disable-debug' '--with-config-file-path=/usr/local/etc'
'--with-exec-dir' '--enable-sigchild' '--disable-magic-quotes'
'--disable-rpath' '--disable-ipv6' '--with-openssl'
'--disable-all'
'--with-zlib=/usr/local' '--disable-ctype' '--with-curl=/usr/local'
'--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local'
'--with-zlib-dir=/usr/local' '--with-freetype-dir=/usr/local'
'--with-t1lib=/usr/local' '--enable-gd-native-ttf'
'--with-gettext=/usr/local' '--with-imap=/usr/local'
'--with-imap-ssl=/usr/local' '--with-ldap=/usr/local'
'--with-mcrypt=/usr/local' '--with-mysql=/usr/local'
'--with-oci8=/data/oracle' '--with-pcre-regex' '--disable-posix'
'--enable-session' '--enable-sockets' '--enable-sysvmsg'
'--enable-sysvsem' '--enable-sysvshm' '--enable-xml'
'--with-expat-dir=/usr/local' '--enable-shared' '--enable-static'
'--disable-inline-optimization' Server API => Apache Virtual Directory
Support => disabled Configuration File (php.ini) Path => /php.ini PHP API
=> 20020918 PHP Extension => 20020429 Zend Extension => 20021010 Debug
Build => no Thread Safety => disabled Registered PHP Streams => php, http,
ftp, https, ftps, compress.zlib
ok guys, there seems to be a bug anywhere...
i removed the /php.ini as a workaround, and now it takes my
/usr/local/etc/php.ini, like i told php to do at compile time. funny
thing, eh?
br, md.
--
Edit bug report at http://bugs.php.net/?id=22001&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22001&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22001&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22001&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22001&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22001&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22001&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22001&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22001&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22001&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22001&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22001&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22001&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22001&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22001&r=gnused