- Unpack installations to C:\php4 and c:\php5
- Rename php.ini-dist to php.ini in both directories
- Set Read & Execute permissions for NETWORK SERVICE and DNPWebUsers on:
C:\php4\php4ts.dll
C:\php4\sapi\php4isapi.dll
C:\php4\php.ini
C:\php5\php5ts.dll
C:\php5\php5isapi.dll
C:\php5\php.ini
- Insert new keys into registry:
HKEY_LOCAL_MACHINE\SOFTWARE\PHP
- add string value "iniFilePath" with value "C:\php4\" - in this directory should be php.ini for PHP 4
- add subkey HKEY_LOCAL_MACHINE\SOFTWARE\PHP\5.2
- add string value "iniFilePath" with value "C:\php5\" - in this directory should be php.ini for PHP 5
- add Web Service Extensions to IIS as described in previous post
- PHP 4.x Executable Path in DotNetPanel should be:
C:\php4\sapi\php4isapi.dll
- PHP 5.x Executable Path in DotNetPanel should be:
C:\php5\php5isapi.dll
- Restart IIS and start customizing your PHP installations.
MySQL is no longer enabled by default, so the php_mysql.dll DLL must be enabled inside of php.ini. Also, PHP needs access to the MySQL client library. A file named libmysql.dll is included in the Windows PHP distribution and in order for PHP to talk to MySQL this file needs to be available to the Windows systems PATH.
See the FAQ titled "How do I add my PHP directory to the PATH on Windows" for information on how to do this.
As with enabling any PHP extension (such as php_mysql.dll), the PHP directive extension_dir should be set to the directory where the PHP extensions are located. See also the Manual Windows Installation Instructions. An example extension_dir value for PHP 5 is c:\php\ext