?
Solved

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

Posted on 2011-09-27
2
Medium Priority
?
579 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 13

Accepted Solution

by:
AielloJ earned 1000 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 1000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to count occurrences of each item in an array.
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.
Suggested Courses

770 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