Apache2 does not start after upgrade from Ubuntu 20.04 to 22.04

Having fun on a Saturday night…

It has been almost a year since Ubuntu server 22.04 was released and I have been running it on some of my VMs and physical servers (AKA Rasberry PIs) without any issues and since I had some services on 20.04 I decided to upgrade the VMs to 22.04.

Snapshots taken, backup also so here we go.

Most upgrades were uneventful but for Zabbix server and NextCloud I could not connect to the website.

After some investigation the Apache2 service was not running. PHP the immediate suspect. As previously PHP 7.4 was used and now 8.1 is installed.

Enough talking. Solution follows

sudo a2dismod php7.4

sudo a2enmod php8.1

systemctl restart apache2

Leave a Reply

Your email address will not be published. Required fields are marked *