Archive for April, 2008

PHP 5.2.5 and php.ini on Windows

Friday, April 25th, 2008

I installed PHP 5.2.5 using the MSI installer, installed Smarty and changed my PHP config file (php.ini) to add Smarty to the path. But according to phpinfo(), my php.ini path was C:\Windows and the loaded config file was “(None)”.

I looked at another previous install. You have to create a system environment variable named PHPRC that points to the location of your php.ini file (usually C:\Program Files\PHP), then reboot.