Solved

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

Posted on 2011-09-27
2
575 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 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
This article discusses four methods for overlaying images in a container on a web page
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

726 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