Problem: apache will not start. Error is the cryptic "Failed to start the Apache HTTP Server."
When doing
Code: Select all
sudo journalctl -xe
You get more information by going to /etc/apache2 directory and type
Code: Select all
apache2ctl configtest
Wait, why is it trying to load php7.4? I saw during the upgrade that it was uninstalling php7.4 and installing php8.1 in its place.apache2: Syntax error on line 149 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php7.4.load: Cannot load /usr/lib/apache2/modules/libphp7.4.so into server: /usr/lib/apache2/modules/libphp7.4.so: cannot open shared object file: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.
Checking /etc/apache2/mods-enabled does show the php7.4 modules and not php8.1.
Sure enough,
Code: Select all
dpkg -l | grep php
Code: Select all
sudo a2enmod php7.4
So I think the mintinstaller messed up a little bit here.
So the fix ended up being
Code: Select all
sudo a2dismod php7.4
sudo a2enmod php8.1
systemctl restart apache2
Still can't get phpmyadmin working, but one thing at a time