Issue
I updated my PHP
version from 7.2
to 8.0.5
I followed this guide to update my PHP
I ran this sudo apt-get purge php7.*
to remove my php 7 version.
Now when I browse to my website i just get the php codeliek
<?php
/* ton of code here */
when I enable
sudo a2enmod proxy_fcgi setenvif
sudo a2enconf php8.0-fpm
i get an error of
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later
when browsing to the website
Edit 1:
[Sat May 22 12:21:03.453315 2021] [proxy:error] [pid 511723] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php8.0-fpm.sock (*) fai>
[Sat May 22 12:21:03.453398 2021] [proxy_fcgi:error] [pid 511723] [client 102.223.225.133:63119] AH01079: failed to make connection to backend: httpd-UDS
Edit 2:
after running sudo systemctl list-units --failed
i see
● php8.0-fpm.service loaded failed failed The PHP 8.0 FastCGI Process Manager
Edit 3:
my apache user is safe-www
Edit 4:
/var/log/apache2/error.log
[Sat May 22 12:33:52.354558 2021] [mpm_prefork:notice] [pid 2763] AH00163: Apache/2.4.41 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1f configured -- resuming normal operations
[Sat May 22 12:33:52.354654 2021] [core:notice] [pid 2763] AH00094: Command line: '/usr/sbin/apache2'
site.error.log
[Sat May 22 12:33:54.737169 2021] [proxy:error] [pid 2765] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php8.0-fpm.sock (*) failed
[Sat May 22 12:33:54.737233 2021] [proxy_fcgi:error] [pid 2765] [client 102.223.225.133:63281] AH01079: failed to make connection to backend: httpd-UDS
Edit 5:
/var/log/apache2/error.log
[Sat May 22 12:45:10.817186 2021] [mpm_prefork:notice] [pid 5482] AH00163: Apache/2.4.41 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1f configured -- resuming normal operations
[Sat May 22 12:45:10.817273 2021] [core:notice] [pid 5482] AH00094: Command line: '/usr/sbin/apache2
site.error.log
AH01070: Error parsing script headers
[Sat May 22 12:45:13.311597 2021] [proxy_fcgi:error] [pid 5484] (22)Invalid argument: [client 102.223.225.133:63477] AH01075: Error dispatching request to :
Edit 6:
[ - ] apache-htcacheclean
[ + ] apache2
[ + ] apparmor
[ + ] apport
[ + ] atd
[ + ] chrony
[ - ] console-setup.sh
[ + ] cron
[ - ] cryptdisks
[ - ] cryptdisks-early
[ + ] dbus
[ + ] grub-common
[ - ] hwclock.sh
[ - ] iscsid
[ - ] keyboard-setup.sh
[ + ] kmod
[ - ] lvm2
[ - ] lvm2-lvmpolld
[ + ] multipath-tools
[ - ] open-iscsi
[ - ] open-vm-tools
[ + ] php8.0-fpm
[ - ] plymouth
[ - ] plymouth-log
[ + ] procps
[ - ] rsync
[ + ] rsyslog
[ - ] screen-cleanup
[ + ] ssh
[ + ] udev
[ + ] ufw
[ + ] unattended-upgrades
[ - ] uuidd
[ - ] x11-common