Building PHP on server2003 32-bit system
1. Install IIS first
two。 Install the VC++ runtime
3. When installing fcgisetup_x86.msi, note that it is a 32-bit system
4. Put php-5.4.3-Win32-VC9-x86 in the root directory
5. Create a phptmp folder in the root directory
6. Delete the php.ini-production from php-5.4.3-Win32-VC9-x86 's folder
7. Change a copy of php.ini-development to php.ini
Modify phpini modify parameters as follows (and remove;)
Short_open_tag = Off is off by default, so you don't have to modify it.
Upload_tmp_dir= phptmp cache folder upload_tmp_dir= C:\ phptmp Note path
Cgi.force_redirect=0 changed to 0
Fastcgi.impersonate=1
Date.timezone = PRC
8. Modify the fcgiext.ini under C:\ WINDOWS\ system32\ inetsrv to add to the last line
Php=PHP
[PHP]
ExePath=C:\ php-5.4.3-Win32-VC9-x86\ php-cgi.exe
@ php-cgi.exe whose path is the php-5.4.3-Win32-VC9-x86 folder runs PHP as CGI
Note the path @
InstanceMaxRequests=10000
EnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000
ActivityTimeout=3600
RequestTimeout=3600
9. Create a file called index.php in C:\ Inetpub\ wwwroot to test PHP
Modify index.php file permissions to readable executable folder directory permissions
10. Modify php-5.4.3-Win32-VC9-x86 folder permissions to readable executable folder directory permissions
ANONYMOUS LOGON; CLOUD-HOST\
IIS_WPG; CLOUD-HOST\
IUSR_CLOUD-HOST; CLOUD-HOST\
IWAM_CLOUD-HOST
11. Open IIS Manager Open web Service extensions to allow all unknown CGI extensions
twelve。 View application pool properties-performance-whether CPU monitoring is enabled @ is unchecked by default and may not be configured
13. Right-click website-Properties-documents-Click to add index.php and move up to the top
14. Click the home directory-configure-add-- the executable file path is C:\ WINDOWS\ system32\ inetsrv\ fcgiext.dll
Note that there is a dot in front of PHP with the extension .php @
Action-restricted to GET,POST.HEAD
15. Then restart IIS
And then it worked.