php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5178 php.ini Configuration File Settings Ignored
Submitted: 2000-06-21 20:01 UTC Modified: 2000-08-01 22:56 UTC
From: ramr at dlzcorp dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.0 Release OS: Redhat Linux 6.x
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ramr at dlzcorp dot com
New email:
PHP Version: OS:

 

 [2000-06-21 20:01 UTC] ramr at dlzcorp dot com
PHP4 (4.0.0) does not seem to pay attention to any settings configured in the php.ini file. I compiled the Apache module with the --use-config-file-path option and PHPINFO() returns the correct path for the file. 

However, changing items in the configuration file, such as turning off magic_quotes_gpc and such do not change the behaviour of PHP or the output from PHPINFO().

I removed all tabs from the file to see if that was the problem. I also have re-compiled it on several different boxes to the same effect.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-24 10:27 UTC] stas at cvs dot php dot net
The option is --with-config-file-path, not --use-config-file-path.
 [2000-06-30 17:20 UTC] ramr at dlzcorp dot com
This bug should not have been closed. 

Even though I incorrectly stated the compile flag, I did use the correct --with-config-file-path.

PHPINFO() outputs the correct pathname for the configuration file. It simple does not acknowledge any values set in the file. I have reproduced this on 4 different RH6, 6.1 and 6.2 boxes with different versions of Apache. The Win32 version doesn't seem to exhibit the problem.
 [2000-07-04 12:37 UTC] stas at cvs dot php dot net
Please make sure you are putting in correct path and do not put "php.ini" filename.
If it still doesn't work, please do:
strace httpd -X 
and see what php.ini file it tries to open.
 [2000-08-01 22:56 UTC] waldschrott@php.net
no feedback, closed
 [2000-08-01 22:56 UTC] waldschrott@php.net
no feedback, closed
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 16:00:02 2026 UTC