You are not logged in.

#1 2023-02-12 17:55:36

drootang
Member
Registered: 2017-01-08
Posts: 2

Nextcloud 25 with php-legacy. FCGI cannot access socket

I updated nextcloud to 25.0.3, which changes dependencies to use php-legacy instead of php so nextcloud can continue to easily use php < 8.2.

My nextcloud setup uses apache, FPM, and postgresql.

I had to work out a few issues, but my latest (and hopefully last) issue is in the apache error_log [multiple entries like this]:

[Sun Feb 12 12:04:10.334213 2023] [proxy:error] [pid 9596:tid 140235254658752] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php-fpm/nextcloud.sock (*:80) failed

I see that it's trying to access /run/php-fpm/nextcloud.sock
This is surprising to me since I've changed this path to /run/php-legacy-fpm/nextcloud.sock everywhere i can find it—in particular everywhere listed on the nextcloud page in the wiki. I have the following references to /run/php-legacy-fpm/nextcloud.sock:

$ grep php-legacy-fpm /etc/php-legacy/php-fpm.d/nextcloud.conf
listen = /run/php-legacy-fpm/nextcloud.sock
access.log = /var/log/php-legacy-fpm/access/$pool.log

$ grep -Ri php-legacy-fpm /etc/httpd/conf
/etc/httpd/conf/extra/httpd-vhosts.conf:        SetHandler "proxy:unix:/run/php-legacy-fpm/nextcloud.sock|fcgi://nextcloud/"
/etc/httpd/conf/extra/httpd-vhosts.conf:        SetHandler "proxy:unix:/run/php-legacy-fpm/nextcloud.sock|fcgi://nextcloud/"

I don't see any references to php-fpm in any of the setup files described in the wiki.

Where might this setting be coming from that is causing the socket to be written to php-fpm instead of php-legacy-fpm? Could it be stored in the database?
Has anyone encountered this after switching to php-legacy with the latest nextcloud?

Offline

#2 2023-03-29 01:04:03

Schmurtz
Member
Registered: 2023-03-29
Posts: 1

Re: Nextcloud 25 with php-legacy. FCGI cannot access socket

Hi,

Same problem here after migrate from Nextcloud 22 to 26  and php7.4 to 8.1

Solved by editing
/etc/apache2/sites-enabled/nextcloud_http_domain_self_signed.conf
  and
/etc/apache2/sites-enabled/nextcloud_tls_domain_self_signed.conf

Remove or comment the line :   SetHandler "proxy:unix:/run/php/php7.4-fpm.nextcloud.sock|fcgi://localhost"

Credits : https://askubuntu.com/questions/1451288 … rver-20-04

Offline

Board footer

Powered by FluxBB