Jump to content

Problems Upgrading/Reinstalling PHP 5.2+


Recommended Posts

I was on PHP 5.0/Windows 2003.  A security requirement made me need to upgrade from PHP 5.0 to PHP 5.2.  Apparently this was a big change.  I'm having problems simply getting PHP back up and running on my server.  I initally tried to upgrade my PHP installation described on the PHP site here.  When that didn't work, I uninstalled "the upgrade" which removed all the files written to my C:\Program Files\PHP directory but left my original 5.0 (C:\PHP) directory and all of it's files.  So I figured I'd try to just delete and start from scratch.

 

So I deleted all files related to PHP: c:\php, c:\program files\php, php.ini in System folder, php dlls in System folder, Web Service Extensions > PHP (Allowed) entry.  I then reinstalled the php-5.2.2-win32-installer.msi.  I've tried both the CGI and the ISAPI IIS install and I can't get either to work.  I've verified that after the installs, my c:\program files\php exists, my php.ini *appears* to be set up correctly in my c:\program files\php directory, my Web Service Extension showed the appropriate php-cgi.exe or the .dll for ISAPI.  And now I simply can't even get the phpinfo(); function to report back the proprer information. -- also verified that c:\program files\php is in my PATH statement.

 

The install instructions on the PHP site make it sound simple but can't seem to get it to work.  Am I missing something obvious?? Anyone have any pointers?

 

Please help.  TIA

Link to comment
Share on other sites

the default iisstart.htm runs fine.  I've looked in my PHP.ini at my doc_root and it's blank.  All the comment above it says it's "the root of the PHP pages" -- does that mean the location to my PHP directory or the folder where all my .php pages are stored?  It also says you should only set this if you're running PHP as CGI in web servers other than IIS...

 

It also says that the alternative is to use the cgi.force_redirect config but the comment for that parameter says, "You can safely turn this off for IIS, in fact, you MUST."

Link to comment
Share on other sites

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.