Link to home
Start Free TrialLog in
Avatar of kl4518
kl4518

asked on

How do I change the php.ini location

I want to have the php.ini in c:\test and not c:\windows. When i run phpinfo it says the php location is c:\windows. I want to change the location and know about the line:

SetEnv PHPRC C:/test/php

but this only works if php is loaded as a cgi which i dont want to do. Is there a way to specify the php location if im loading php as a module?


Thanks
Avatar of slyong
slyong

Try editing this registry entry in Windows...
HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath  (Windows Registry location)
ASKER CERTIFIED SOLUTION
Avatar of hernst42
hernst42
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kl4518

ASKER

I use apache

can i place that anywhere in the httpd.conf file?

thanks