I've installed PHP 5.2.17 on Apache 2 on Windows Vista into the directory c:\Web\Webserver\PHP5\
However phpinfo in showing that the Configuration File Path is c:\Windows and the Loaded Configuration File is (none).
The httpd.conf has the following lines:
LoadModule php5_module "c:/Web/WebServer/PHP5/php5apache2_2.dll"
AddHandler application/x-httpd-php .php
PHPIniDir 'c:\Web\Webserver\PHP5\'
Windows control panel shows that the path environment variable includes my installation directory (at the front of the path) and that PHPRC variable also points to my installation directory.
So why is it looking in c:\Windows for the php.ini?
If I put a copy of php.ini in c:\Windows it still says that it cannot find it. What's going on?
Are you sure the PHPRC
is a system variable, and not a user variable?
Have you rebooted?
Have you installed Sysinternals Process Explorer, and right-clicked the Apache process to verify that the PHPRC
parameter is in the enviroment (via the Properties tab).
Have you considered Linux? :)
try to search php.ini from search in windows