php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38343 PHP 5.1.4 doesnt load custom php.ini files from user's homedir
Submitted: 2006-08-05 12:15 UTC Modified: 2006-08-08 22:25 UTC
Votes:7
Avg. Score:4.9 ± 0.3
Reproduced:5 of 5 (100.0%)
Same Version:4 (80.0%)
Same OS:4 (80.0%)
From: dreamwiz at webmaailma dot com Assigned:
Status: Not a bug Package: Apache related
PHP Version: 5.1.4 OS: RHE 4
Private report: No CVE-ID: None
 [2006-08-05 12:15 UTC] dreamwiz at webmaailma dot com
Description:
------------
After upgrading from PHP 5.0.4 to 5.1.4, custom php.ini's are not being loaded from user's homedirs/public_html anymore (using PHP Su Exec). Looking around in different forums everyone seems to have this issue no matter what configuration you have, as long as it's PHP 5.1.x.

Expected result:
----------------
To load php.ini under user homedir. For example clip from phpinfo();

Before adding php.ini should be:

Configuration File (php.ini) Path 	/usr/local/Zend/etc/php.ini


After adding custom php.ini under public_html:
/home/user/public_html/php.ini

Actual result:
--------------
Before / After is always:

Configuration File (php.ini) Path 	/usr/local/Zend/etc/php.ini

Custom php.ini is not loaded.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-05 12:37 UTC] dreamwiz at webmaailma dot com
Forgot to mention version of Apache, it's 1.3.37
 [2006-08-08 12:02 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

What is the Server API used?
 [2006-08-08 13:35 UTC] dreamwiz at webmaailma dot com
Server API is CGI. I actually tried the latest 5.2 few days ago but it didnt have the fix. Anyway I will try the snapshot again tonight and I'll let you know the results. Thank you for looking into this :)
 [2006-08-08 22:25 UTC] dreamwiz at webmaailma dot com
Obviously moving status to bogus means that it's not meant to be supported :/ But why remove this feature? It's very popular  (have _many_ users who use it). It's supported in 5.0.5 still.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 20:01:29 2024 UTC