Dedicated SQL Server Hosting Specialist Dedicated SQL Server Hosting Specialist

How To Install PHP 5 in IIS 6/Windows Server 2003?

  1. Download and unzip latest version 5.x from http://www.php.net to c:\php.
  2. Add "C:\php" to environment variables "PATH". The Windows path can be accessed via the Control Panel at: System > Advanced Tag - Environment Variables - System Variables.
  3. Rename/copy php.ini-recommended to php.ini
  4. With IIS 6 (2003 Server), open up the IIS Manager(inetmgr.msc), go to Web Service Extensions, choose "Add a new Web service extension", enter in a name such as PHP, choose the Add button and for the value browse to enter the ISAPI file c:\php\php5isapi.dll. then check "Set extension status to Allowed" and click OK.
  5. Still in the IIS Manager, Right-click on "Web Sites", go to Properties -> Home Directory -> Configuration...-> Application Extensions - add a new extension: .php using c:\php\php5isapi.dll; Enable All Verbs and Script Engine.
  6. Start > Run > regedit , Add the following registry keys: HKEY_LOCAL_MACHINE\SOFTWARE\PHP – new string value IniFilePath -> C:\php
  7. Start > Run > iisreset, Restart IIS services.
  8. In one of the websites home folder, create a new file named test.php with the single line below.( If test in local the file should be in C:\Inetpub\wwwroot\)
    				<?php phpinfo(); ?> 
    			
  9. Open a browser and test it out http://www.yourdomain.com/test.php. (Local use "http://127.0.0.1/test.php")
  10. Download and install Zend Optimizer from http://www.zend.com/store/products/zend-optimizer.php.
  11. php.ini Options
    • extension_dir = c:\php\ext
    • cgi.force_redirect = 0
    • max_execution_time = 180 ; Maximum execution time of each script, in secnds
    • max_input_time = 300 ; Maximum amount of time each script
  12. php.ini Extensions installation.( remove the semicolon(;) before them )
    • extension=php_curl.dll
    • extension=php_gd2.dll
    • extension=php_mcrypt.dll
    • extension=php_mssql.dll
    • extension=php_mysql.dll
    • extension=php_openssl.dll
    • extension=php_snmp.dll
    • extension=php_sockets.dll
    • extension=php_zip.dll

Navigator

Other How-Tos
External Windows Resources
External SQL Server Resources
External Webmaster Resources
External Developer Resources

Questions?

Please email to webmaster[$]dedicatedsqlserver.com.

Lite SQL Server

CPU: Intel Core 2 Duo E6320
CPU Speed: 1.86GHz
Cache: 4MB
RAM: 1GB RAM
Disk: 2x160B SATA
RAID: RAID 1
Bandwidth: 1000GB
Win2008 Web or Win2003 STD: Free
IP Addresses: 8
Monthly: $119.00

Detail...

Standard SQL Server

CPU: Quad-Core Xeon E5410
CPU Speed: 2.33GHz
Cache: 12MB
RAM: 2GB RAM
Disk: 2x146GB SCSI
RAID: RAID 1
Bandwidth: 1500GB
Win2008 Web or Win2003 STD: Free
IP Addresses: 8
Monthly: $259.00

Detail...