Bug #43357 [Com]: phpinfo() returns loaded configuration file (none)
| From: | j dot stocks at andor dot com | Date: | Fri, 22 Mar 2013 13:01:10 +0000 |
| Subject: | Bug #43357 [Com]: phpinfo() returns loaded configuration file (none) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-177999@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=43357&edit=1
ID: 43357
Comment by: j dot stocks at andor dot com
Reported by: mail at gbsys dot co dot uk
Summary: phpinfo() returns loaded configuration file (none)
Status: Closed
Type: Bug
Package: PHP options/info functions
Operating System: WIN XP Pro
PHP Version: 5.2.5
Block user comment: N
Private report: N
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2012-09-04 05:15:01] 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.
------------------------------------------------------------------------
[2007-11-21 10:40:36] 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.
------------------------------------------------------------------------
[2007-11-21 10:21:46] 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:12:16] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=43357&edit=1