Solved

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

Posted on 2011-09-27
2
570 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
ID: 36711139
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
ID: 36712268
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article discusses four methods for overlaying images in a container on a web page
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

863 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

20 Experts available now in Live!

Get 1:1 Help Now