[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bullseye to Bookworm upgrade [apache 503 issue solved]



On Fri  2 Jun 2023, at 03:58, Gareth Evans <donotspam@fastmail.fm> wrote:
<snip>
> Firefox at http(s)://localhost/sitename gives a 503
<snip>
> Neither /var/log/apache2/error.log nor /var/log/syslog seem to provide 
> any clues to the problem.

I take that back, and apache 503 issue solved - /etc/apcache2/conf-available/php7.4-fpm.conf is not purged during/after upgrade.

$ sudo cat /var/log/apache2/error.log
<snip>
[Sat Jun 03 01:16:18.274637 2023] [proxy:error] [pid 681699] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.4-fpm.sock (*:80) failed
[Sat Jun 03 01:16:18.274742 2023] [proxy_fcgi:error] [pid 681699] [client 127.0.0.1:44366] AH01079: failed to make connection to backend: httpd-UDS

user@qwerty:~$ sudo apt remove php7.4-fpm
<snip>
Package 'php7.4-fpm' is not installed, so not removed


user@qwerty:~$ sudo a2dismod php7.4-fpm
ERROR: Module php7.4-fpm does not exist!

user@qwerty:~$ apt policy php7.4-fpm
php7.4-fpm:
  Installed: (none)
  Candidate: (none)
  Version table:
     7.4.33-1+deb11u3 -1
        100 /var/lib/dpkg/status

user@qwerty:~$ apt policy php7.4
php7.4:
  Installed: (none)
  Candidate: (none)
  Version table:
user@qwerty:~$ 

user@qwerty:~$ sudo a2dismod php7.4
Module php7.4 already disabled

user@qwerty:~$ ls /etc/apache2/conf-avail*|grep php7
php7.4-fpm.conf

user@qwerty:/etc/apache2/conf-available$ sudo mv php7.4-fpm.conf php7.4-fpm.conf.ignore
user@qwerty:/etc/apache2/conf-available$ sudo service apache2 restart

Works as expected, except may need to change

AllowOverride None
to
AllowOverride [your settings of choice]

in /etc/apache2/apache2.conf for .htaccess to be honoured.

HTH someone.
Gareth


Reply to: