php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6166 php.ini not being read
Submitted: 2000-08-15 10:46 UTC Modified: 2000-08-23 06:09 UTC
From: dramaley at spatulacity dot cx Assigned:
Status: Closed Package: Installation problem
PHP Version: 4.0.1pl2 OS: RedHat Linux 6.2, kernel 2.2.16
Private report: No CVE-ID: None
 [2000-08-15 10:46 UTC] dramaley at spatulacity dot cx
I compiled PHP as an Apache module. It seems to work OK, but only with the compiled-in default values; php.ini has no effect. I used the following when i did the PHP configure:

./configure --with-mysql=/usr/local/mysql                    --with-config-file-path=/etc/httpd/php.ini --with-apache=/usr/src/apache_1.3.12 --enable-track-vars

phpinfo() shows the ini file being /etc/httpd/php.ini (as configured), but changes to that file are not being read, even after restarting the web server. Other people i've asked for help on this issue have encountered a similar problem and have worked around it by setting lots of php variables in httpd.conf, but it is my understanding that php.ini should be read (otherwise what is the point of having it?) and such hacks should not be necessary.

Thanks for the great work so far.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-23 05:08 UTC] hholzgra@php.net
i had a similar problem yesterday (bug #6302)
and found out that php.ini worked as expected
when i started apache in single-process mode
with option -X for debugging reasons but that
it totaly ignored php.ini in its normal
multiprocess mode of operation

could you please try if you get the same effect
when starting apache with 'httpd -X' ?
 [2000-08-23 06:00 UTC] hholzgra@php.net
or perhaps it is related to 

  --with-config-file-path=/etc/httpd/php.ini

what if you try 

  --with-config-file-path=/etc/httpd

instead ?

(can't try it on the system i had the trouble
with as i do not have enough rights over there)
 [2000-08-23 06:09 UTC] stas@php.net
Config file is _path_, not a filename.  not /etc/httpd,/php.ini
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 02:00:01 2026 UTC