DotNetPanel Manuals Center, Guides, "HOW TO" On-Line Library
Installing PHP 4 and PHP 5 as ISAPI Edit Page Page Info
Last edited Wed, 19 Dec 2007 15:06:33 GMT by kent, revision 3
  1. Unpack installations to C:\php4 and c:\php5
  2. Rename php.ini-dist to php.ini in both directories
  3. 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
  4. Insert new keys into registry:
    HKEY_LOCAL_MACHINE\SOFTWARE\PHP
  5. add string value "iniFilePath" with value "C:\php4\" - in this directory should be php.ini for PHP 4
  6. add subkey HKEY_LOCAL_MACHINE\SOFTWARE\PHP\5.2
  7. add string value "iniFilePath" with value "C:\php5\" - in this directory should be php.ini for PHP 5
  8. add Web Service Extensions to IIS as described in previous post
  9. PHP 4.x Executable Path in DotNetPanel should be:
    C:\php4\sapi\php4isapi.dll
  10. PHP 5.x Executable Path in DotNetPanel should be:
    C:\php5\php5isapi.dll
  11. 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
Tags (1)
PHP 
Comments (4)
Thu, 17 May 2007 02:07:32 GMT by khoastyle
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. Although copying libmysql.dll to the Windows system directory also works (because the system directory is by default in the system's PATH), it's not recommended.

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
Thu, 17 May 2007 02:08:26 GMT by khoastyle
Be careful with IIS Password, it make PHP can not access a lot of files.
Trying to fix it now
Thu, 17 May 2007 02:08:29 GMT by khoastyle
Be careful with IIS Password, it make PHP can not access a lot of files.
Trying to fix it now
Fri, 18 May 2007 12:19:19 GMT by khoastyle
Please make sure that user NETWORK SERVICES and DNPWebusers are acvtive in your C:\HostingSpaces or your PHP can not access file in wwwroot folder
Attachments (0)
No page attachments found.