Apache2 restart failed in Ubuntu 16.04
Install package libapache2-mod-php7.0
or disable the PHP7 module by running
sudo a2dismod php7.0
I also got the same issue and the reason it caused was something like this ,
I created a virtual host example.com.conf in etc/apache2/sites-available
, so it created a link of it in etc/apache2/sites-enabled
when u enable the virtual host for that particular host.
Later on i deleted the file example.com.conf from etc/apache2/sites-available
, but forgot to disable the host so the link of that host is still available at etc/apache2/sites-enabled
, so that causes the error in my case so i simply deleted that linked file from etc/apache2/sites-enabled
and my apache started working.