Page 1 of 1

phpinfo not pointing to the right place for php.ini (?)

Posted: Sat Jun 24, 2006 10:39 pm
by lerien
I have PHP5 running with Apache2 on XP. I've been having a hard time getting MySQL working. Then I noticed that according to phpinfo(), php.ini is in C:/windows. My php.ini file is not in C:/windows (there isn't even a php.ini file in C:/windows) it's in C:/php5. I've tried putting the file in C:/windows but it still doesn't recognize my changes. I've also added a registry variable HKEY_LOCAL_MACHINE/SOFTWARE/PHP/IniFilePath pointing to C:/php5 but I've had no luck.
Can anyone help me?

thanks,
lisa

Posted: Sat Jun 24, 2006 10:45 pm
by feyd
Each time changes are made to php.ini, Apache should be restarted. You could try using the PHPIniDir directive in httpd.conf

Posted: Sun Jun 25, 2006 7:30 am
by lerien
feyd wrote:Each time changes are made to php.ini, Apache should be restarted. You could try using the PHPIniDir directive in httpd.conf
I have the PHPIniDir in my httpd.conf file set to "C:/php5" and I have restarted Apache every time I've made a change to php.ini.