ERROR: Could not enable dependency mpm_prefork for php7.4, aborting

PHP
sudo a2dismod mpm_event
sudo sytemctl restart apache2
sudo a2enmod php7.4
Source

Also in PHP: