Hi, People

I uninstalled the older 5.x version and I installed latest PHP 5.2.5 via msi

installer. MySQL essential-5.0.27-win32.msiwas
already installed .
I added the extension=php_mysql.dll in php.ini file.
Also checked the windows path which was correct . When i loaded test.php it displayed the error "Invalid access to memory location" after restarting my pc and emtying the session and temp dir it displayed the PHP info page and it shows "Loaded Configuration File (none)" that means its assuming the path to be C:\Windows but its actually in c:\PHP what the hell is wrong with this sh**

I gone crazy last night figuring out what went wrong. Why the hell developers dont care to fix these stupid installation problems. I am sure many first timers gets very much pissed off when they install it for first time. I was asking myself why the hell i unistalled the good old working 5.xx version.:mad:

Pls somebody help and save me to save my hours fixing it.

i am attaching the screenshot of test.php file

    Have you added the PHPRC environment variable to your system and restarted afterwards?

      Now i am sure that PHP Developers has missed something while creating php installer msi. I installed php on a fresh new machine with msi installer.
      Tested test.php and it shows configoration file location to c:\windows and loaded config file to none.

      Than i immiediately added the following registry key
      [HKEY_LOCAL_MACHINE\SOFTWARE\PHP]
      "IniFilePath"="C:\PHP"

      and restarted iisadmin

      and loaded test.php now it works fine.

      This may be of great help for people installing the latest PHP 5.2.5 msi

        2 months later

        Hi people,

        The above solution didn't work for me: phpinfo is working fine before the addition of the registry value, but with the php.ini issue.

        After adding the registry value, phpinfo stops working.

        Any advice???

          Jadovich, you might want to start your own thread with a more complete description of your problem and attempt to use the solution that worked for sunny155.

            3 years later

            I have a similar problem. All permissions set, using fastcgi, IIS 5.1, PHP 5.2. Register key modified for IniFilePath=C:\php, environment variable path and PHPRC path set to C:\php, restarted IIS several times. Still, configuration path points to C:\windows, and loaded configuration = NONE. Anyone help? Thanks

              Write a Reply...