Coupon code copied
Server Intellect
(855) 850-HOST

Toll Free 24/7/365        (4678)

Get help from a Microsoft Certified Engineer.

Intellect Connect

Technical problem with your Windows Hosting?

Let our Microsoft Certified experts handle the problem for you.
Chat Now

How to Install PHP on IIS6/Server 2003

Step 1

To install PHP, First download the PHP.ZIP File. It is listed at the bottom of the article under “Attachments”

Extract PHP.ZIP file to c:\

Grant HelmWebusers and IIS_WPG permissions to c:\php

Note: If you do not create your domain in IIS using Helm you will need to grant the anonymous user for that site permissions to this folder.

kb-install-php-iis6-1

Step 2

Add C:\PHP to Path

Right-click on My Computer, choose Properties.
Flip to the Advanced tab.

kb-install-php-iis6-2

Step 3

Click the Environment Variables button.
Double-click the Path variable in the list of System variables.

kb-install-php-iis6-3

Step 4

Either add “C:\PHP;” to the beginning or “;C:\PHP” to the end (sans quotes, not both).

kb-install-php-iis6-4

Step 5

Import C:\php\Phpinipath.Reg file in c:\php
Re-boot the server for it to take effect

Add PHP Web Service Extention in IIS

When you open IIS Manager, it should connect to the local computer automatically.
Expand the local computer in the left pane
Click on “Web Service Extensions” in the left pane.
In the right pane, click the blue underlined text, “Add a new Web service extension…”

kb-install-php-iis6-5

Step 6

Enter “PHP ISAPI Extension” as the “Extension name”
Click the “Add…” button and browse to the php5isapi.dll file in your PHP install directory
Check the “Set extension status to Allowed” checkbox and click “OK”

kb-install-php-iis6-6

Step 7

Configure PHP in Helm.

Click on System Settings > Servers > ServerName
Open up the default Web Service
Set the Default PHP Version to 5
Set the PHP 5 App Path to C:\php\php5isapi.dll

kb-install-php-iis6-7

Step 8

Go to Home > Reseller Plans > Main Reseller Plan > Plan Resources > Web Resources and set PHP 5 installs to 1000

kb-install-php-iis6-9

Step 9

Go to Home > Users > RSRESELLER > Hosting Plans > Main Hosting Plan > Plan Resources > Web Resources and set PHP 5 installs to 1000

Enable PHP for Any domain in the web site settings.

kb-install-php-iis6-8

Step 10

Cut and paste the code below into a php file and place it in the web root to test.

<?php session_start(); ?>
<html>
 <head>
  <title>PHP Test</title>
 </head>
 <body>
  <!-- testing sessions -->
  
  
  <!-- testing browscap.ini -->
  <?php
   echo $_SERVER['HTTP_USER_AGENT'] . "<br/><br/>";
   $browser = get_browser(null, true);
   print_r($browser);
   echo "<br/><br/>";
  ?>
  
  <!-- a general PHP test -->
  <?php phpinfo(); ?>
 </body>

Interested in letting our experts solve your IT problems for you?
Get a free, no-obligations consultation with one of our experts today!

Call us at (855) 850-HOST

Chat Now

Start Your Order

X

This form does not accept free e-mail accounts. Please enter a business e-mail to submit it.

Submit Form Cancel

Please wait...

Submitting your info. This may take less than a minute.