Home >Backend Development >PHP Tutorial >How many operating environments are there for php?

How many operating environments are there for php?

WBOY
WBOYOriginal
2016-10-11 14:23:291614browse

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?

Reply content:

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn