php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43357 phpinfo() returns loaded configuration file (none)
Submitted: 2007-11-21 10:12 UTC Modified: 2007-11-21 10:40 UTC
From: mail at gbsys dot co dot uk Assigned:
Status: Closed Package: PHP options/info functions
PHP Version: 5.2.5 OS: WIN XP Pro
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: mail at gbsys dot co dot uk
New email:
PHP Version: OS:

 

 [2007-11-21 10:12 UTC] mail at gbsys dot co dot uk
Description:
------------
php.ini show extension_dir ="C:\Program Files\PHP\ext" but phpinfo() returns 'loaded configuration file (none)' and extension_dir=c:\php5 so no configured extensions are loaded ie.GD2


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-11-21 10:21 UTC] jani@php.net
Obviously no php.ini file is loaded. Check the directory where it's looked for and that it really IS there and the permissions are correct.
 [2007-11-21 10:40 UTC] mail at gbsys dot co dot uk
manually copying the php.ini file from where it was installed c:\program files\php\ to c:\windows\, where php seems to be expecting it and rebooting the server corrects the problem.
 [2012-09-04 05:15 UTC] kothai_ramanathan at yahoo dot com
Encountered the same problem. In my case, there were some dlls mentioned in php.ini that were not getting loaded properly. I did a "php -m" at the command prompt in the php folder. Corrected the errors (basically commented the dlls that were not required). PHPIniDir was set using double quotes and forward slashes. Then it worked : phpinfo() showed the loaded configuation file and it recognized my mysqli calls.
 [2013-03-22 13:01 UTC] j dot stocks at andor dot com
I encountered this problem using PHP with Apache.
I found that I had to edit the lines in Apache httpd.conf that the PHP installer 
had entered.

These lines had been generated:
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:\Program Files (x86)\PHP\"
LoadModule php5_module "C:\Program Files (x86)\PHP\php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

Removing the trailing backslash on the ini path resolved this issue for me:

#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:\Program Files (x86)\PHP"
LoadModule php5_module "C:\Program Files (x86)\PHP\php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 19:01:35 2025 UTC