I was trying to update to PHP 8 on my Kubuntu 20.10 desktop. I followed instructions I found at https://thishosting.rocks/install-php-on-ubuntu/ to use ppa:ondrej/php and everything appeared to install correctly. The command line version of PHP 8 works. But web pages running through apache were still showing PHP 7.4, even though libapache2-mod-php8.0 was installed.
To try to fix the problem, I ran sudo a2enmod php8.0 -- that command had fixed PHP version config problems before. But this time, running it completely broke apache so that every page is ERR_CONNECTION_REFUSED. Turns out apache isn't even launching anymore. I would try to edit the apache configuration files... except I can't seem to find any relevant files. /etc/apache2/apache2.conf doesn't have anything about PHP in it. So where can I go from here? Anyone have any idea what files a2enmod alters?
Here's the output when I try to start apache and run the suggested commands for details:
I could try removing the PPA and completely uninstalling all PHP-related packages and then reinstalling in hopes of getting PHP 7.4 back, I suppose, but I want 8.0.
Additional info: /var/log/apache2/error.log is empty.
To try to fix the problem, I ran sudo a2enmod php8.0 -- that command had fixed PHP version config problems before. But this time, running it completely broke apache so that every page is ERR_CONNECTION_REFUSED. Turns out apache isn't even launching anymore. I would try to edit the apache configuration files... except I can't seem to find any relevant files. /etc/apache2/apache2.conf doesn't have anything about PHP in it. So where can I go from here? Anyone have any idea what files a2enmod alters?
Here's the output when I try to start apache and run the suggested commands for details:
Code:
pgk@pgk-desktop:~$ sudo /etc/init.d/apache2 start Starting apache2 (via systemctl): apache2.serviceJob for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details. failed! pgk@pgk-desktop:~$ sudo systemctl status apache2.service ● apache2.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Fri 2021-01-01 13:48:53 PST; 1min 40s ago Docs: https://httpd.apache.org/docs/2.4/ Process: 6373 ExecStart=/usr/sbin/apachectl start (code=exited, status=139) Jan 01 13:48:53 pgk-desktop systemd[1]: Starting The Apache HTTP Server... Jan 01 13:48:53 pgk-desktop apachectl[6376]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'Se> Jan 01 13:48:53 pgk-desktop apachectl[6373]: Segmentation fault (core dumped) Jan 01 13:48:53 pgk-desktop apachectl[6373]: Action 'start' failed. Jan 01 13:48:53 pgk-desktop apachectl[6373]: The Apache error log may have more information. Jan 01 13:48:53 pgk-desktop systemd[1]: apache2.service: Control process exited, code=exited, status=139/n/a Jan 01 13:48:53 pgk-desktop systemd[1]: apache2.service: Failed with result 'exit-code'. Jan 01 13:48:53 pgk-desktop systemd[1]: Failed to start The Apache HTTP Server. pgk@pgk-desktop:~$ sudo journalctl -xe ░░ Support: http://www.ubuntu.com/support ░░ ░░ A start job for unit NetworkManager-dispatcher.service has begun execution. ░░ ░░ The job identifier is 332646. Jan 02 11:37:14 pgk-desktop dbus-daemon[543]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher' Jan 02 11:37:14 pgk-desktop systemd[1]: Started Network Manager Script Dispatcher Service. ░░ Subject: A start job for unit NetworkManager-dispatcher.service has finished successfully ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ A start job for unit NetworkManager-dispatcher.service has finished successfully. ░░ ░░ The job identifier is 332646. Jan 02 11:37:23 pgk-desktop sudo[44742]: pgk : TTY=pts/1 ; PWD=/home/pgk ; USER=root ; COMMAND=/bin/journalctl -xe Jan 02 11:37:23 pgk-desktop sudo[44742]: pam_unix(sudo:session): session opened for user root by pgk(uid=0) Jan 02 11:37:24 pgk-desktop systemd[1]: NetworkManager-dispatcher.service: Succeeded. ░░ Subject: Unit succeeded ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ The unit NetworkManager-dispatcher.service has successfully entered the 'dead' state.
Additional info: /var/log/apache2/error.log is empty.
Comment