php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31820 configuration file not read
Submitted: 2005-02-02 19:49 UTC Modified: 2005-03-01 17:30 UTC
From: info at netzpilot dot ch Assigned:
Status: Closed Package: PHP options/info functions
PHP Version: 5.0.3 OS: darwin
Private report: No CVE-ID: None
 [2005-02-02 19:49 UTC] info at netzpilot dot ch
Description:
------------
The configuration file is not read.
I compiled PHP --with-config-file-path=/etc/httpd and without it. 
I have put a php.ini at /etc/httpd and /usr/local/lib and many more places.
Always did a restart of apache.
I also gave all rights to php.ini.

Reproduce code:
---------------
echo "get_cfg_var('cfg_file_path') = " . get_cfg_var('cfg_file_path'); 

/* and this to check little changes in php.ini */
phpinfo();

Expected result:
----------------
the path to php.ini

Actual result:
--------------
compiled without '--with-config-file-path=/etc/httpd' my phpinfo says 
Configuration File (php.ini) Path: /usr/local/lib

But changes in php.ini there have no effect.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-28 20:53 UTC] sniper@php.net
Please try using this CVS snapshot:

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


 [2005-03-01 17:30 UTC] info at netzpilot dot ch
I tried php5-latest.tar.gz. It works.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Jan 20 09:01:23 2020 UTC