-
Download two different php versions, such as this one:
php-5.2.17-nts-Win32-VC9-x86.zip
php-5.4.36-nts-Win32-VC9-x86.zip
(Zhaoxi.com only downloaded two versions, if you have more, similar operations are fine)
-
Extract to the following directories respectively, and add iis_wpg read permissions to the directories.
c:\php-5.2.17
c:\php-5.4.36
-
configure their respective php.ini
copy php.ini-production to php.ini basic modification
modification of 5.2.17; extension_dir = “ext” to extension_dir = “c:\php5.2.17\ext”
Modification of 5.4.36; extension_dir = “ext” changed to extension_dir = “c:\php5.4.36\ext”
The following are all modified
;date.timezone = change to date.timezone = asia/Shanghai
;fastcgi.impersonate = 1 change to fastcgi.impersonate = 1
;cgi.force_redirect = 1 Change to cgi.force_redirect = 0
;cgi.fix_pathinfo=1 Change to cgi.fix_pathinfo= 1
(For the specific meaning, please search on Baidu)
-
download fastcgi and install
http://www.microsoft.com/en-us/download/details.aspx?id=11881
< p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px;">FastCGI Extension 1.5 for Internet Information Services 6.0 and 5.1 (x86)
(If the address changes, search for fastcgi on Microsoft to find a suitable one)
After installation, there will be 5 more files fcgiconfig in the C:\WINDOWS\system32\inetsrv\ directory. js,fcgiext.dll,fcgiext.ini,f cgilicense.rtf,fcgireadme.htm
At this time in the “WEB service of IIS6 There is an extra FastCGI Handler in “Extension”
-
Configure fastcgi
Open C:\WINDOWS\system32\ inetsrv\fcgiext.ini
Increase after the bottom [Types]
php:1036241886=PHP5217
php:141006183=PHP5436
[PHP5217]
ExePath=C:\php5.2.17\php-cgi.exe
InstanceMaxRequests=10000
ActivityTimeout=600
RequestTimeout=600
EnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000 ,PHPRC:c:\php5.2.17\
[PHP5436]
ExePath=C:\php5. 4.36\php-cgi.exe
InstanceMaxRequests=10000
< p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px;">ActivityTimeout=600
RequestTimeout=600
EnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000,PHPRC:c:\php5.4.36\
Note that different websites with different IDs can directly view the IIS identifiers
php:1036241886=PHP5217
php:141006183=PHP5436
-
Add extension
Right-click the website = “Properties =” Home Directory = “Configuration =” Add , Configure as shown below:
executable file path: C:\WINDOWS\ system32\inetsrv\fcgiext.dll
fill in the extension.php
Action->Limited to GET,HEAD,POST
-
Create file t.php content for two sites separately
phpinfo();
?>
you can check the effect after restarting IIS6
Of course, you can also configure extended support according to your needs during actual production, for example in php.ini
;extension=php_gd2.dll change to extension=php_gd2.dll
;extension=php_mysql.dll change to extension=php_mysql.dll
Welcome to leave a message, Chaoxi.com will take time to reply, and hope to learn and progress with you!
div>
Error Number: 14001 (0x800736b1).
The key reason for this error is that the VC9 runtime library is not installed, ie VISUAL C++ 2008
Microsoft Visual C++ 2008 Redistributable Package (x86)
Installing fastcgi prompts that net is not installed to download the .net Framework address
Download two different php versions, such as this one:
php-5.2.17-nts-Win32-VC9-x86.zip
php-5.4.36-nts-Win32-VC9-x86.zip
(Zhaoxi.com only downloaded two versions, if you have more, similar operations are fine)
Extract to the following directories respectively, add iis_wpg to the directory Read permission
c:\php-5.2.17
< p style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px;">c:\php-5.4.36
< div class="content-list-image clearfix" style="margin: 0px; padding: 10px 0px;">
Configure their respective php.ini
copy php.ini-production to php.ini basic modification
Modification of 5.2.17; extension_dir = “ext” changed to extension_dir = “c:\php5.2.17\ext”
modification of 5.4.36; extension_dir = “ext” to extension_dir = “c:\php5.4.36\ext”
The following are all modified
;date.timezone = Change to date.ti mezone = asia/Shanghai
;fastcgi.impersonate = 1 Change to fastcgi. impersonate = 1
;cgi.force_redirect = 1 Change to cgi.force_redirect = 0
;cgi.fix_pathinfo=1 Change to cgi.fix_pathinfo= 1< /p>
(The specific meaning can be found in Baidu search)
p>
download fastcgi and install
http://www.microsoft.com/en-us/download/details. aspx?id=11881
FastCGI Extension 1.5 for Internet Information Services 6.0 and 5.1 (x86)
(If the address changes, search for fastcgi on Microsoft to find a suitable one) After installation, there will be 5 more files fcgiconfig in the C:\WINDOWS\system32\inetsrv\ directory .js,fcgiext.dll,fcgiext.ini,fcgilicense.rtf,fcgireadme.htm
At this time, there is an extra FastCGI Handler in the “WEB Service Extension” of IIS6
Configure fastcgi
Open C:\WINDOWS\system32\inetsrv\fcgiext.ini
Add after the bottom [Types]
php:1036241886 =PHP5217
php:141006183=PHP5436
[PHP5217]
ExePath=C:\php5.2.17\php-cgi.exe
InstanceMaxRequests=10000
ActivityTimeout=600
RequestTimeout=600
EnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000 ,PHPRC:c:\php5.2.17\
[PHP5436]
p>
ExePath=C:\php5.4.36\php-cgi.exe
InstanceMaxRequests=10000
ActivityTimeout=600
RequestTimeout=600
EnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000,PHPRC:c:\php5.4.36\
Note that different websites with different IDs can directly view the IIS identifiers
php: 1036241886=PHP5217
php:141006183=PHP5436
< span class="exp-album-enter-mask" style="background: rgb(51, 51, 51);">Add extension
Right-click website=》 properties=》 home directory=》 configuration =》 Add, configure as shown below:
Executable file path: C: \WINDOWS\system32\inetsrv\fcgiext.dll
fill in the extension.php
Action->Limited to GET,HEAD,POST
< /p>
Create file t.php content for two sites separately
phpinfo();
?>
restart IIS6 You can check the effect afterwards.
Of course, you can also according to the actual production You need to configure extension support, such as in php.ini
;extension= Change php_gd2.dll to extension=php_gd2.dll
;extension=php_mysql. Change dll to extension=php_mysql.dll
Welcome to leave a message, Chaoxi Network Meeting Take time to reply, and hope to learn and progress with everyone!
Error Number: 14001 ( 0x800736b1).
The key reason for this error is that the VC9 runtime library is not installed That is, VISUAL C++ 2008
Microsoft Visual C++ 2008 Redistributable Package (x86) p>
install fastcgi prompts that net is not installed to download the .net Framework address
< /p>
Fastcgi installation multi-version PHP configuration method in IIS
WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 1654 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC