[PHP] three modes of operation ISAPI CGI mode mode mode APACHE2HANDLER FastCGI mode

ISAPI modes: ISAPI is a set of standards provided by Microsoft, PHP ISAPI mode means that the PHP IIS on windows system's mode of operation together, let no longer supported after PHP5.3, php5isapi.dll file, PHP and the IIS process processes together a

APACHE2HANDLER mode: PHP as an Apache module, PHP Apache process and the process of closing a

CGI mode: CGI is usually an executable program, such as exe files, each fork a process to run external exe files, and can only handle a user request, the process is completed when the user exits the number of requests very long time, frequently. the fork process and the process exits, take up a lot of system resources, low efficiency. every fork PHP processes run independently handle.

FastCGI mode: the web server startup time, FastCGI treatment process will open and will not quit after receiving the request, the server is passed to the FastCGI process directly via TCP socket or local content. Resident memory does not need to process every fork

 

Guess you like

Origin www.cnblogs.com/taoshihan/p/11272161.html