Home > Article > Backend Development > How many operating environments are there for php?
Ignore the database, just the environment required to run php. Are there many kinds?
I used to only know Apache+php, but recently I discovered nigix+php. Is there still php-fpm+php
? There is no information about php-fpm+php
online. Is this a wrong understanding?
Ignore the database, just the environment required to run php. Are there many kinds?
I used to only know Apache+php, but recently I discovered nigix+php. Is there still php-fpm+php
? There is no information about php-fpm+php
online. Is this a wrong understanding?
Common operating methods of PHP:
<code>Nginx fastcgi_pass <=> PHP-FPM Apache + mod_proxy_fcgi <=> PHP-FPM Apache + mod_php <=> libphp5.so/php5apache2_4.dll Apache + mod_fcgid <=> PHP-CGI IIS + PHP Manager <=> PHP-CGI</code>
nginx does not have the ability to parse php and must rely on php-fpm
apache has a module to parse php
You may not be looking at the right place. I recommend an article centos07 source code compilation nginx+php-fpm
In general, it can be divided into two operating modes: cli and cgi