503 Service unavaible, seems to be a php7.2-fpm php7.4-fpm version issue

Hello, I am having issue after the upgrade from Ubuntu 18 to 20

Nextcloud version (eg, 20.0.5): 20.0.9.1
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20
Apache or nginx version (eg, Apache 2.4.25): Apache
PHP version (eg, 7.4): 7.4

The issue you are facing:

Error 503 : Service unavailable

Output of the apache error log :

[Tue May 04 18:37:50.235848 2021] [proxy_fcgi:error] [pid 30341] [client 165.225.192.206:1725] AH01079: failed to make connection to backend: httpd-UDS
[Tue May 04 18:37:55.229114 2021] [proxy:error] [pid 30917] (111)Connection refused: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.2-fpm.nextcloud.sock (*) failed
[Tue May 04 18:37:55.230655 2021] [proxy_fcgi:error] [pid 30917] [client 165.225.192.206:44863] AH01079: failed to make connection to backend: httpd-UDS
[Tue May 04 18:38:00.224065 2021] [proxy:error] [pid 30340] (111)Connection refused: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.2-fpm.nextcloud.sock (*) failed
[Tue May 04 18:38:00.224109 2021] [proxy_fcgi:error] [pid 30340] [client 165.225.192.206:45236] AH01079: failed to make connection to backend: httpd-UDS

Following the advice found in this forum, :

I rebooted the server
I created a file /run/php/php7.2-fpm.nextcloud.sock
Service php7.4-fpm is started with no error
Copy the file etc/php/7.2/fpm/pool.d/nexcloud.conf in etc/php/7.4/fpm/pool.d/nexcloud.conf and modify the version number inside
Modify SetHandler "proxy:unix:/run/php/php7.4-fpm.nextcloud.sock|fcgi://localhost" from 7.2 to 7.4

My issue seems to be that nexcloud wants to use php7.2-fpm and I have php-7.4-fpm` running

● php7.2-fpm.service
     Loaded: masked (Reason: Unit php7.2-fpm.service is masked.)
     Active: inactive (dead)

Any idea on how to solve that ?

Thank you !

Solution :
Modify SetHandler "proxy:unix:/run/php/php7.4-fpm.nextcloud.sock|fcgi://localhost" from 7.2 to 7.4
in both file apache conf file, nexcloud.domain.com.conf and nextcloud.domain-le-ssl.conf

1 Like