Переключение Apache на PHP-FPM
sudo systemctl stop apache2
sudo a2dismod php7.4
sudo a2dismod mpm_prefork
sudo a2enmod mpm_event
sudo apt install php-fpm
sudo apt install libapache2-mod-fcgid
sudo a2enmod proxy
sudo a2enmod proxy_fcgi
sudo systemctl restart apache2