1and1 Help Centre Categories

print article

Install PHP on Windows Server 2008

For Windows Server 2008 without Plesk

Learn how to Install PHP on a Windows Server.

This guide will show you how to install PHP for a Windows Server without Plesk. Servers with Plesk installed will already have PHP running on the server. Follow the steps below to proceed.

Step 2
Check the C:\Install\PHP folder as the PHP installer will already be located there. PHP folder
PHP folder

If the version of PHP is not new enough, you can refer to PHP for Windows for the latest version. Here, we downloaded the VC9 x86 Non Thread Safe Installer for PHP 5.3.6. Since PHP 5.3 no longer provides the option for ISAPI installation, we will download the Non Thread Safe version and install it using FASTCGI.

If there is no installer available for download, check the PHP for Windows archive page for the latest Non Thread Safe VC9 release with an installer (such as php-5.3.6-nts-Win32-VC9-x86.msi). PHP homepage
PHP homepage
Step 3
The PHP installation requires Microsoft Visual C++ 2008 Redistributable Package (x86) which must be downloaded and installed before the PHP installation.
Go to Start Administrative Tools Server Manager > Roles > Add Role Services and install the CGI Role Service and continue by double-clicking the downloaded PHP Installer file. On the Welcome page, click Next. Setup Wizard
Setup Wizard
Step 4
Agree to the End-User License Agreement to install PHP. Check the box if you accept the terms and then click Next. End-User License Agreement
End-User License Agreement
Step 5
Choose the default install directory or an alternative location. Click Next to proceed. Destination Folder
Destination Folder
Step 6
Choose the IIS FastCGI option and click Next. Web Server Setup
Web Server Setup
Step 7
Not all features of PHP will be installed by default. Expand the three sections to view what is or is not going to be installed. Items not to be installed
Items not to be installed

If in doubt, you can always choose to install all features by clicking the box next to PHP and selecting Entire feature will be installed on local hard drive.
Items for installation
Items for installation

When finished, click Next. Items chosen
Items chosen
Step 8
Click Install.
Ready to install PHP 5.36
Ready to install PHP 5.36
Step 9
When the installation has completed, click the Finish. Setup Wizard completed
Setup Wizard completed

You have now completed the installation and can create an index.php page with PHP code to test that it is working properly. If want to install a PHP web application, you can copy the installation files to the home directory of your site and access the domain via your web browser to begin installation.

Please note:
The index.php file has the lowest priority by default according to the web server. This means that the web server will only display the index.php file as the start page of your site if no index.html, index.htm, default.asp, default.htm, iisstart.htm, etc. exists in the same folder.
For additional information, you may want to reference: