PHP running mode has 4 minutes:
1 CGI Universal Gateway Interface (Common Gateway Interface))2 fast-cgi resident (long-live) type of CGI3 CLI command-line run (command line Interface)4 Web Module mode (module mode for Web server running Apache, etc.
This article briefly introduces the structure of the Nginx conf file, how it has been configured: How to configure Nginx to provide static content, how to configure Nginx as a proxy server, how to configure forwarding requests to fastcgi
Introduction and working principle of fastcgi the first simple introduction of the fastcgi:fastcgi is a language-independent, scalable structure of the CGI open extension, the main behavior is to keep the CGI interpreter in memory and thus achieve
Four Common php running methods
This article mainly introduces four common php running methods. This article describes CGI, FastCGI, APACHE2HANDLER, CLI, and other four running methods. For more information, see
SAPI: Server Application Programming
Briefly describe what CGI is and briefly describe CGI
Directory:1. What is CGI?2. Various Glossary3. Interaction Mode Between web server and CGI3.1 CGI Mode3.2 Module Mode3.3 php-fpm Mode
1. What is CGI?
CGI is the abbreviation of common gateway
Question:There is no precedent for developing Web applications with "easy language. Flying" (EF. However, because the EF Local Development Kit (efndk) has been released, it is not difficult to use C/C ++ to develop an EF class library to support EF
This article to share the content is the analysis of PHP error handling, automatic loading, stack heap memory and operating mode, has a certain reference value, the need for friends can refer to
Php Error Handling
Php Error Level :
E_error fatal
Often see these things, but the information on the Internet to see not understand, which can be popular to say.
Concept understanding: cgi,fastcgi,php-cgi and PHP-FPM
Better give me a chestnut!
Thank you
Reply content:
Often see these things,
I have learned from PHP, and the official php environment deployment is very simple. just change a few files to OK. FastCgi is also a matter of minutes. In comparison, Python is deployed on web applications in a complicated manner, mainly because of
Recently installed PHPSTORM11 write PHP, today encountered a very painful problem, is that the post parameters can not be obtained. Later through Phpinfo () only to know that the Phpstorm server API is cgi/fastcgi. But do not know how to modify into
FastCGI introduction and working principles first of all, FastCGI: FastCGI is a language-independent, scalable CGI open extension, the main behavior is to maintain the CGI interpreter in the memory and thus achieve high performance. As we all know,
PHP operating mode has 4 minutes:1) CGI Universal Gateway Interface (Common Gateway Interface))2) fast-cgi resident (long-live) type CGI3) CLI command line run (Interface)4) Web module mode (module mode for Web server running like Apache) 1.CGI
If you are using Nginx and use multiple websites on one server, you may be worried about the security of the server and may feel that Nginx + php is not suitable for the deployment of multiple sites.
There is no restriction on open_basedir for
FastCGI is a language-independent, extensible architecture for CGI open extensions whose main behavior is to keep the CGI interpreter process in memory and thus achieve high performance. As we all know, the repeated loading of CGI interpreter is the
PHP operating mode has 4 minutes:1) CGI Universal Gateway Interface (Common Gateway Interface))2) fast-cgi resident (long-live) type CGI3) CLI command line run (Interface)4) Web module mode (module mode for Web server running like Apache)1.CGI
Django is a high-level Python WEB framework this encourages rapid development and clean, pragmatic design.Nginx (pronounced engine-x) is a free, Open-source, high-performance HTTP server and reverse proxies, as well as an IMAP/POP3 Proxy Server.WSGI
Nginx+php appear 502 Bad gateway, generally this is not nginx problem, but because of fastcgi or PHP problems caused, common have the following several.1. PHP.ini Memory_limit is too small (this must be noted if there are individual PHP program
From PHP 5.3.3, you can use PHP-FPM directly, no longer need to patch. Previously written "Linux from source code compiled installation PHP 5" See http://www.linuxidc.com/Linux/2011-10/45743.htm, but in the mod_php module, rather than FastCGI mode
Sapi:server application Programming Interface Service-side application programming port. He is the interface that PHP interacts with other applications, and PHP scripts can be executed in many ways, either through a Web server or directly on the
Brother Bird's blog mentioned SAPI, I also look at the source.
-------------
PHP architecture diagram (photo from http://stblog.baidu-tech.com/?p=763):
Middle-tier (SAPI) decoupling of Web server and PHP
Each SAPI implementation is a _SAPI_MODULE_
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.