"Turn" to understand the relationship between fastcgi and PHP-FPM, FASTCGIPHP-FPM
Question: Online some say, fastcgi is a protocol, PHP-FPM realize this agreement, some say, PHP-FPM is fastcgi process Manager, used to manage the fastcgi process;
Install nginx in Ubuntu
Sudo apt-Get install nginx
After Ubuntu is installed, the file structure is roughly as follows:
All configuration files are under/etc/nginx, and each virtual host is already under/etc/nginx/sites-available.
Program file
The server architecture involved in this article is mainly for Small and Medium-sized websites of about 3000 people/15 minutes. It is mostly seen in discuz! Communities built on forums, etc.The environment is composed of Linux (kernel 2.6 +), nginx,
Max_children = 40, each children occupies 20 m-30m of memory on average. The more children, the more concurrency can be accepted at the same time. Generally, the value of children is the highest concurrency of the website + floating value, this
https://segmentfault.com/q/1010000000256516Answer one:At the beginning of this problem I also quite tangled, read the "HTTP authoritative guide" after the feeling clear a lot.First of all, what does CGI do? CGI is designed to ensure that the data
Fixed the PHP iconv and the GD library conflict Bug, added PHP mcrypt, memcache extension, modified PHP and Nginx compile parameters, optimized Nginx profile, added some features.
Nginx
("Engine X") is a high-performance HTTP and reverse proxy
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.)
A few days ago the work platform from the Ubuntu 9.10 Karmic updated to the 10.04 Lucid, because the LUCID official from the PHP5.3.2, the former use of the source of the dotdeb can not be used, has been very fond of this source, not only provides
In the PHP development work very much uses in the timeout processing to the timeout situation, I said several scenes:
1. Get data asynchronously if one of the backend data sources is unsuccessful, skip, not affect the entire page presentation
2. To
When multiple php sites are configured on one server, we hope that each site can be stopped separately and the php running permissions between different sites are isolated from each other and cannot be browsed across directories. this article takes
Transferred from: http://www.leavesongs.com/PENETRATION/nginx-safe-dir.htmlAs we all know, the security of the virtual host is not good to do, especially to prevent cross-site become the focus. apache+php server to prevent cross-site way is
In the PHP development work very much uses the time-out processing to the time-out situation, I say several scenes:
1. Get data asynchronously if a backend data source gets unsuccessful then skips without affecting the entire page presentation
2.
[Go to] find out the relationship between FastCgi and PHP-fpm, fastcgiphp-fpm. [Switch] find out the relationship between FastCgi and PHP-fpm. fastcgiphp-fpm: some people on the Internet say that fastcgi is a protocol, and php-fpm implements this
Install Nginx + PHP + MySQL on Ubuntu
sudo apt-get install nginx
After Ubuntu is installed, the file structure is roughly as follows:All configuration files are under/etc/nginx, and each virtual host is already under/etc/nginx/sites-available.
In Apache, you can call PHP as a php5_module module, and in Nginx, you need to call through PHP-FPM, what is the difference between the two methods of invocation? Besides, what do they have to do with cgi,fastcgi?
Reply content:The answer above is
Nginx + PHP-CGI (php-fpm) Web environment, suddenly found that the system load rise, top view found many php-cgi process CPU usage is close to 100%. find a CPU 100% ph... nginx + PHP-CGI (php-fpm) Web environment, suddenly found that the system load
I often see these things, but I can't understand the information I found on the Internet. Concept understanding: CGI, FastCGI, PHP-CGI and PHP-FPM is best to give a chestnut! Thank you for reading these things frequently, but you cannot understand
Install Nginx + PHP + MySQL using Ubuntu tung.pdf
Install nginx
sudo apt-get install nginx
After Ubuntu is installed, the file structure is roughly as follows:All configuration files are under/etc/nginx, and each virtual host is already
Installing Nginx
sudo apt-get install Nginx
The file structure of Ubuntu after installation is roughly:All configuration files are under/etc/nginx, and each virtual host is already under/etc/nginx/sites-availableProgram Files
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.