sudo a2dismod mpm_event && sudo a2enmod mpm_prefork && sudo a2enmod php7.0 code example
Example: ERROR: Could not enable dependency mpm_prefork for php7.4, aborting
sudo a2dismod mpm_event
sudo sytemctl restart apache2
sudo a2enmod php7.4
sudo a2dismod mpm_event
sudo sytemctl restart apache2
sudo a2enmod php7.4