Windows Server 2003 => IIS6
Check Windows version and IIS version:
http://support.microsoft.com/kb/224609
PHP Windows download
http://windows.php.net/download/
Using FASTCGI
http://www.fastcgi.com/devkit/doc/fcgi-spec.html
http://www.iis.net/download/fastcgi
Thread-safe vs Non-thread-safe
http://www.iis-aid.com/articles/my_word/difference_between_php_thread_safe_and_non_thread_safe_binaries
Installation guides:
This one works excellent:
http://learn.iis.net/page.aspx/247/using-fastcgi-to-host-php-applications-on-iis-60/
Other guides:
http://www.simongibson.com/intranet/php2003/
http://www.wikihow.com/Install-PHP-5-for-IIS-6
http://www.php.net/manual/en/install.windows.manual.php
Steps:
Download latest PHP windows package and unzip to c:\php
Install FastCGI 1.5 for IIS 6
In IIS-configuration:
- In Web site properties / Home directory / Application configuration: Add extension .php, executable: C:\WINDOWS\system32\inetsrv\fcgiext.dll
- Make sure FastCGI Handler has been added as web service extension by the FastCGI installer
- Add index.php to list of default content pages for website
In c:\php\php.ini
fastcgi.impersonate = 1
cgi.fix_pathinfo=1
cgi.force_redirect = 0
Add this to end of C:\WINDOWS\system32\inetsrv\fcgiext.ini
[Types]
php=PHP
[PHP]
ExePath=c:\php\php-cgi.exe
InstanceMaxRequests=10000
EnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000
Inga kommentarer:
Skicka en kommentar