php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21259 php.ini is totally ignored
Submitted: 2002-12-28 21:42 UTC Modified: 2003-01-02 18:55 UTC
From: omer at insan dot net Assigned:
Status: Closed Package: *Configuration Issues
PHP Version: 4.3.0 OS: linux - redhat 7.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: omer at insan dot net
New email:
PHP Version: OS:

 

 [2002-12-28 21:42 UTC] omer at insan dot net
even though php engine works (apache2.0.43 dso) it totally ignores php.ini settings. 

Specifical examples; when I change 
output_buffering to "On" or "4096" or "1" it simply stays as "0" (as viewed from phpinfo()) OR magic_quotes_gpc cannot be turned "Off" it stuck in "On" position. (i have also verified these by actual dependent script non-function so its not a phpinfo() problem)

Ive installed it as
'./configure' '--with-config-file-path=/usr/local/apache2/conf/php.ini' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql' 

Even when I delete php.ini I get the same for phpinfo.  I have tried putting a file at /usr/local/lib/php.ini (the default location if you had not set it yourself) with the same result.

i have reinstalled apache once and php twice from scratch with same results!

Yes I do restart apachectl. And no I don?t have a problem with php.ini permissions as ive even tried chmod 777!

(apache 2.0.43 dso php4.3.0RC2 did not have this problem.)



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-28 22:24 UTC] pollita@php.net
Could you provide the output of phpinfo(); ?

Or better yet provide a link to a php page with this content on your server?

 [2002-12-29 05:07 UTC] derick@php.net
It would also help of you could start apache in single process mode (-X) and run it from within strace to see which files it tries to open:

strace /path/to/httpd -X

regards,
Derick 
 [2002-12-29 07:00 UTC] wez@php.net
This should be the path to a directory in which to look for the php.ini:

--with-config-file-path=/usr/local/apache2/conf/
 [2003-01-02 18:55 UTC] omer at insan dot net
resolved - thanks! not a bug but unclear point.

the issue was due to 
--with-config-file-path=/usr/local/apache2/conf/php.ini
instead of 
--with-config-file-path=/usr/local/apache2/conf/
in the original configuration.

There is some confussion as the APXS binary itself (not the path) is pointed to where as its the path and not the file for php.ini.  

It might be a good idea to allow for various php.ini options by actually allowing for a name to be assigned alternative to php.ini.  for example php_12_12_2002.ini and
php_2_1_2002.ini etc..

It might also be a good idea to have a quick UNINSTALL document available (i couldnt find one). I can help out with this if needed.

regards.
omer.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 18:01:34 2024 UTC