The pros and cons of the two mappings for the php7 — nginx/apache/mod_php vs nginx/php-fpm?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
137 views
Hello! Haven't sculpted in php. Pros, tell me, what are the advantages and disadvantages of backend servers for php7, apache/php_fpm vs mod_php. Nginx in both cases will be as a front-end server, the question is, what should stand behind him.
by | 137 views

3 Answers

0 like 0 dislike
The main disadvantage of php-fpm that will not work htaccess if you have enough knowledge to alter the htaccess rewrite under nginx php-fpm, if laziness is Apache
by
0 like 0 dislike
Why is mod_php faster than php-fpm?
The results:

Apache + mod_php: 10885 req/s, 9 ms per req.
Apache + php-fpm: 5694 req/s 17 ms per req.
Nginx + php-fpm: 8193 req/s, 12 ms per req.

According to many benchmarks performed by others, Nginx + PHP-FPM should be much faster than Apache + mod_php, but I am seeing the opposite. What am I doing wrong?

Overall, the difference is small. But as they say, your mileage may vary.
Perhaps, despite the results should still use Nginx + php-fpm.
by
0 like 0 dislike
Apache supports .htaccess. Apache is just as likely to work with PHP-FPM
by

Related questions

0 like 0 dislike
7 answers
0 like 0 dislike
2 answers
asked May 1, 2019 by korum
0 like 0 dislike
5 answers
asked Mar 22, 2019 by PlatinumArcade
0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
35,390 users