Topic: php-fpm vs mod_php
Hi,
I'm trying to install PHP 7.4 on a CentOS 8 server. I've previously installed PHP 7.2 on CentOS 6. I notice that PHP 7.4/CentOS 8 install uses php-fpm as opposed to mod_php as it used to. What are the benefits of using php-fpm over mod_php? (Every time I've benchmarked the two, php-fpm was slower.) Is there a way to use mod_php instead?
For reference, here is how I'm installing PHP 7.4 on CentOS 8:
dnf install -y https://rpms.remirepo.net/enterprise/remi-release-8.rpm
dnf -y module enable php:remi-7.4
dnf install php php-mysqlnd