Geekpedia Programming Tutorials






How to upgrade from PHP 4.x to PHP 5.x on Windows

This tutorial walks you through step by step and shows how you can upgrade from PHP 4.x to PHP 5.x on a Windows machine running IIS 4.x or higher.

On Thursday, August 26th 2004 at 04:16 PM
By Nabeel Akhtar (View Profile)
****-   (Rated 3.3 with 7 votes)
Contextual Ads
More PHP Resources
Advertisement

If you already have PHP 4.x installed on your IIS server, make sure you uninstall it before upgrading to PHP 5.x. The best way to uninstall PHP 4.x is to go to the Control Panel > Add Remove Program > and select PHP 4.x and click on Uninstall. Because I have already uninstalled PHP 4.x therefore I don’t have any image to show you.



Download PHP 5.x from http://us3.php.net/downloads.php .



On this page click on PHP 5.x.x zip package under Windows Binaries.





After downloading the .zip file, unzip it. I unzipped all the contents to C:\PHP



 



Now go to Control Panel > Administrative Tools > Internet Information Services and you will see something like this:





Right click on Default Web Site and select Properties. When the new window opens up, select the Home Directory tab and click on Configuration… to open the Application Configuration window.





 In the Application Configuration window select the Mappings tab and click Add. Fill in the information as shown in the following image and click OK:





In the end, your Application Window should have the .php extension and the executable path to the directory where php-cgi.exe resides. It should look something like this:





Since this is an upgrade, therefore I am still using my old PHP.INI file.



Click on OK, close all windows and restart IIS server.



Test Your Installation:



Time to test if PHP is working or not!



After restarting your web-server, create a page in the wwwroot directory and name it test.php



Put the following code in test.php





Now open your web browser and type http://127.0.0.1/test.phpin the address bar. You should see the following information on PHP:





If this page comes up, you are ready to start coding in PHP, but if you have any problems then check the permissions on the C:\PHP folder and make sure that IUSR_xx has execute permissions.



If you still run into any problem, feel free to contact me

Digg Digg It!     Del.icio.us Del.icio.us     Reddit Reddit     StumbleUpon StumbleIt     Newsvine Newsvine     Furl Furl     BlinkList BlinkList

Rate Rate this tutorial
Comment Current Comments
There are no comments.

Comment Comment on this tutorial
Name: Email:
Message:
Comment Related Tutorials
There are no related tutorials.

Comment Related Source Code
There is no related source code.

Jobs PHP Job Search
My skills include:
Enter a City:

Select a State:


Advanced Search >>
Latest Tech Bargains

Advertisement

Free Magazine Subscriptions

Today's Pictures

Today's Video

Other Resources

Latest Download

Latest Icons