Solved

How to Upgrade PHP on Windows & which version should I choose?

Posted on 2011-09-27
2
567 Views
Last Modified: 2013-12-13
I currently have PHP 5.3.1 installed on a Windows 2003 Server (under IIS).
It is running as ISAPI currently.
phpinfo() shows this particular build:
PHP Extension Build      API20090626,TS,VC9

On the php windows download page here:
http://windows.php.net/download/

They show these different options for installing the latest version:

PHP 5.3 (5.3.8)

VC9 x86 Non Thread Safe (2011-Aug-23 12:26:18)
-  Zip [14.93MB]
-  Installer [38.31MB]
-  Debug Pack [7.91MB]

VC9 x86 Thread Safe (2011-Aug-23 12:01:10)
-  Zip [15.06MB]
-  Installer [38.43MB]
-  Debug Pack [8.25MB]

Which of these versions is the correct version that I should upgrade to, given my current version?  

How do I actually do the update?  Once installed, how do I point IIS to use the new version of PHP and not the old one?  I assume I can leave the old one in place (to be safe) in case I can't get the new one working, so I'd rather not delete it unless it is absolutely necessary.

I'm also open as to running this as FastCGI instead of ISAPI, if that would result in better and more stable performance.  If FastCGI is a better way to go,

Thanks for help on this!
0
Comment
Question by:sah18
2 Comments
 
LVL 13

Accepted Solution

by:
AielloJ earned 250 total points
Comment Utility
sah18:

I just got done installing PHP 5 on a Windows server yesterday.  For IIS you should always use the Non-Thread-Safe version.  You should manually uninstall the old version of PHP or you might get an error.  There are great instructions at the following link for getting it installed.

  http://www.php.net/manual/en/install.windows.iis6.php

If you're using IIS 7.0 there is a tab for that also.  I would reccomend the FastCGI configuration.  There's an add-on needed for that and a link is provided in the instructions for downloading it.  IIS doesn't actually 'find' PHP.  You register the php.exe or the php-cgi.exe as the handler for files with a .php extension in IIS.  It's pretty simple to do.  Good luck.

AielloJ
0
 
LVL 7

Assisted Solution

by:boon86
boon86 earned 250 total points
Comment Utility
A Thread Safe version should be used if you install PHP as an Apache module. The Non Thread Safe version should be used if you install PHP as a CGI binary.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction Many web sites contain image galleries; a common design for these galleries includes a page with a collection of thumbnail images.  You can click on each of the thumbnail images to see the larger version of the image.  This is easily i…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now