Click to See Complete Forum and Search --> : the phpinfo() loading path


jinwu
03-28-2008, 05:40 PM
My phpinfo() is loaded from the wrong location (may be previous installed) and shows different from my real php.ini (the extension_dir is different from my php.ini setting)

I have set the correct environment path. In the windows Regedit, Local Machine-software-> php is correct. I reboot the PC, the problem is still exists.

But I can not find the previous php.ini

How may I correct the phpinfo() loading path

bpat1434
03-28-2008, 09:25 PM
What server are you using? Apache, IIS, LightTPD?

If it's apache, you might want to try adding the PHPIniDir directive to your httpd.conf file to point to the correct php.ini.

I'm not 100% sure why you would edit the registry, as setting an environment variable should be enough, and that's typically for php modules to load correctly.