iiis environment install multiple versions of php

http://www.fenxiangweb.com/forum.php?mod=viewthread&tid=226422

Super Affiliates Forum yesterday we can ask me the same set of servers into multiple PHP versions coexist with it such as A station PHP5.3B station with PHP5.2. The answer to the question is yes, Yang today whether IIS6.0 or above version can be set such that it will set the course for everyone to talk about methods have been

  1 / First, we must first prepare two or more versions of PHP such as PHP5. 2 and PHP5.3, we were placed in the two different versions of the letter (in the same letter also possible, but not recommended as setting). Then we were given two directories increase iis_wpg read permissions in the following figure

<ignore_js_op>  

2 / Next we were php.ini configuration according to their own needs here we do not do much to explain, even if the environment does not install PHP this article can skip the

download and install fastcgi Download to 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)

followed by right-clicking on the corresponding Web site in IIS Manager -> properties -> Home directory -> configuration -> Add
extension: .php
executable file: C: \ WINDOWS \ system32 \ inetsrv \ fcgiext.dll ( usually the default IIS this directory is, if you been modified, the actual subject)
action limited to: GET, HEAD, POST, TRACE below

<ignore_js_op>  

. 3 / configuration fastcgi
Open C: \ WINDOWS \ system32 \ inetsrv \ fcgiext.ini
the bottom [Types] increase
  1. php:1036241886=PHP5217
  2. php:141006183=PHP5436
  3. [PHP5217]
  4. ExePath=C:\php5.2.17\php-cgi.exe
  5. InstanceMaxRequests=10000
  6. ActivityTimeout=600
  7. RequestTimeout=600
  8. EnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000,PHPRC:c:\php5.2.17\
  9. [PHP5436]
  10. ExePath=C:\php5.4.36\php-cgi.exe
  11. InstanceMaxRequests=10000
  12. ActivityTimeout=600
  13. RequestTimeout=600
  14. EnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000,PHPRC:c:\php5.4.36\
Copy the code

As shown below
<ignore_js_op>  

Here I want to say in detail under

  1. php:1036241886=PHP5217
Copy the code


This code 1036241886 is the site identity can see the following figure

<ignore_js_op>  

php5227 corresponding to the following code after the equal sign is

  1. [PHP5217]
  2. ExePath=C:\php5.2.17\php-cgi.exe
  3. InstanceMaxRequests=10000
  4. ActivityTimeout=600
  5. RequestTimeout=600
  6. EnvironmentVars=PHP_FCGI_MAX_REQUESTS:10000,PHPRC:c:\php5.2.17\
Copy the code


This can be said to be the basic configuration is complete, and if you want to add more versions also available. Dizziness cold write a bit messy administrators do not understand the connection Yang, right

below I will FastCGI common error codes Error solutions have been posted

Error 1 

FastCGI Error 
at The FastCGI Handler at The WAS Unable to Process Request. 
Error the Details: at The FastCGI Process unexpectedly the Exited 
error Number the: -2147467259 (0x80004005). 
error the Description: unspecified error
. HTTP error 500 - Server error Internet   Information Services (IIS)

solution
Search: register_globals = Off (about 705 lines) will be changed to Off on, the comment character line, i.e., the front semicolon ";" removed, so that the document line php.ini function, i.e. to give register_globals = On; Note: this function for PHP global variables, programs need to consider many PHP global variables function so open, open Note rigor PHP program, if not the global variable functions, or make a mistake, keep the default Off state.

Error 2 

FastCGI Error  
at The FastCGI Handler at The WAS Unable to Process Request.
Error the Details:  
Number The error: 5 (0x80070005). 
error the Description: Access is denied. 
http error 500 - server error internet information   services (iis).

workaround

this error is due after decompression php, did not start an account (or Users user group) to read and execute permissions iis given to the directory, modify the folder security properties (ie php installation directory folder -> right click -> properties -> security -> permissions full control), problem solving


error 3

FastCGI error  
at The FastCGI Handler wAS Unable to Process at The Request.
error the Details: Could not the Find entry for "php . "ON Site 1,960,240,566 in [Types] Section 
error Number the: 1413 (0x80070585). 
error the Description: unspecified error 
HTTP error 500 - Server error Internet Information    Services (IIS).

solution

That explanation has not been installed, follow fcgiext!. you can modify the configuration ini !!

error 4  

FastCGI error  
Unable to WAS FastCGI Handler at The Process at The Request.
Error the Details: FastCGI Process the Exited at The unexpectedly 
Error Number The: -1073741819 (0xc0000005). 
Error the Description: Unknown Error 
. HTTP Error 500 - Server Error Internet Information Services (IIS)   

Solution

One reason: my PHP directory on the C drive, then time with the php.ini in the installation directory edited, and then copied to the windows directory ... the result is precisely the C: \ PHP \ php.ini the "backup" file the presence of interference running FastCGI always prompts me. The C: \ php \ php.ini delete, get two reasons:! Ext directory if no files inside the php.ini file settings, will report this error. Three reasons: the system may also be missing files, a friend encountered is the lack of msvcr71.dll, time is running directly in the php directory php-cgi.exe file prompt can not find the file.

More mistakes I will update later

Guess you like

Origin www.cnblogs.com/heibai123/p/11205214.html