Jump to content

Recommended Posts

I have Microsoft Server 2003 with IIS and PHP 5.04. I want to upgrade to the latest version of PHP, 5.25. After copying my php.ini file for safekeeping, I downloaded the installation package. It asked me to choose a server to install, but since I already have IIS installed, I chose none. Then it seemed to run through fine, doing a quick installation.

 

My phpinfo file, however, still lists 5.04.

 

I then chose IIS/Fast CGI for the server, but there's still no change.Any idea of what I need to do?

 

Thanks,

Jeremy

PS. I see on a PHP install page that it says "To upgrade, run the installer either graphically or from the command line as normal. The installer will read your current install options, remove your old installation, and reinstall PHP with the same options as before. It is recommended that you use this method of keeping PHP updated instead of manually replacing the files in the installation directory."

 

But my old installation is not being removed as far as I can tell, and it's certainly not recognizing it.

 

Assuming that the .msi installer version of PHP works as advertised (in the few cases I used it and helped others use it, it did not operate as expected) you need to stop and start the IIS windows service in the control panel to get it to reload php. Just stopping and starting the web server in the IIS management console does not reload php.

Also, when I look in my file system, I believe there's the old PHP installation at C:/PHP and the new one at C:/Program Files/PHP, but the environmental variables show C:/Program Files/PHP/, so if anything it should be looking at the new one.

The IIS settings contain the path to the php files. Since the new version of php is in a different location (did not actually replace the previous php files) you will either need to change the IIS settings to point to the new php files or overwrite the previous files with the the new ones.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.