Installing PHP 5.2.4 on Windows 2008 Server (RC0) in Pictures

You can now evaluate the Windows 2008 Server Release Candidate 0 Version (See: Windows 2008 Server Beta)

Just as a quick follow on from my article about installing PHP for IIS, I thought I’d be interesting to show how you’d do the same on Windows 2008 Server (I assume that things won’t change drastically from the Release Candidate to the Final RTM (Release To Manufacture/Market) Version).

Instead of being as verbose as I was previously, this time, it’s just a series of pictures with brief comments:

1-1servermanager-selectrole

Figure 1

1-2servermanager-selectservice

Figure 2

Figure 1 and 2:
Open Server Manager and Install IIS, be sure to include CGI as this includes FastCGI also.

2-1phpnetdownloads

Figure 3

Figure 3:
Download PHP from www.php.net and be sure to extract it to C:\PHP.  Start the Internet Information Services (IIS) Manager User Interface by pressing the WindowsKey+R and typing inetmgr.

3-1-inetmgr-explorer

Figure 4

Figure 4:
Create a small file in the root of your Default Web Site called hello.php

<?php
 phpinfo();
?>

3-2-inetmgr-handlermappings

Figure 5

3-3-inetmgraddmodulemapping

Figure 6

3-4-inetmgr-addfastcgiapp

Figure 7

Figures 5,6 and 7:

You now need to configure IIS and let it know about PHP files using the CGI (FastCGI) framework  You need to ensure that the PHP executable you use is C:\PHP\php-cgi.exe (and not the C:\PHP\php5isapi.dll) as in my previous HOWTOThat HOWTO was for a different scenario, this is for a different scenario.

You can now browse on over to http://localhost/hello.php and see your the output of your hello.php script.  Enjoy.

Kudos to Rick James over at IIS Blogs for the heads up on this.  Cheers mate!  If any of you do give this a go, please do let me know how you get on, and what other issues you’ve had.  If we can get synergy properly between Commercial and Open Source working properly, that’d be absolutely awesome.  I can even forsee a day when PHP is part of the new Windows Infrastructure, and .NET is a part of the Linux environment.

Can’t we all just be friends!! ;)

394807313_7e1d60019e

Warm Regards,

Shabbir

1 Response to “Installing PHP 5.2.4 on Windows 2008 Server (RC0) in Pictures”


  1. 1 New Artwork for Islamic Digest and Karbala (and NoorIslam) | Shabbir's Blog Pingback on Oct 29th, 2007 at 8:19 pm

Fatema and Myself

My Skype Status

My status

OpenDNS

Use OpenDNS

Catagories

Recent Comments

RSS