troubleshooting Question

PHPINIDIR ignored in W7 Apache (WampServer)

Avatar of SAbboushi
SAbboushiFlag for United States of America asked on
PHPApache Web ServerWindows 7
8 Comments1 Solution1217 ViewsLast Modified:
I want Apache to load my php.ini file from a folder on my d: drive.

ServerRoot "c:/wamp/bin/apache/apache2.2.21"

PHPIniDir "d:\documents\Application Data\PHP\"

Restarting all services with the WampServer system tray icon displays a Green "W" with the above PHPIniDir statement.  But http://localhost/?phpinfo=1 shows:

Configuration File (php.ini) Path: C:\Windows

Loaded Configuration File: C:\wamp\bin\apache\Apache2.2.21\bin\php.ini

Tried other options, but didn't work either:

PHPIniDir "d:\documents\Application Data\PHP"
(no final "\") results in an orange "W" and http://localhost/?phpinfo=1 shows "Internet Explorer cannot display the webpage"

Same with:
PHPIniDir "d:/documents/Application Data/PHP/"
PHPIniDir "d:/documents/Application Data/PHP"

How can I get Apache to use d:\documents\Application Data\PHP\php.ini?


W7 64, IE9
Join our community to see this answer!
Unlock 1 Answer and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros