Apache with php-fpm
Apache and php
There are 4 different ways to use php with apache
- cgi
- fcgi
- mod_php
- php-fpm
Here is a comparison why fpm is the better way. In short it works with apache event mpm, has better security, can have per vhost pool configuration, better process management, better security, .... When used with apache event mpm, it's the most memory efficient setup that you can achieve with apache + php. Whether it's better than nginx + php-fpm depends on your setup, contents and preference.
Step by step
install apache and php-fpm
sudo apk add apache php-fpm