https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42414 Bug ID: 42414 Summary: Koha Plack socket permissions cause 503 errors behind Apache (mpm_event + PHP-FPM) without AssignUserID Initiative type: --- Sponsorship --- status: Product: Koha Version: 25.05 Hardware: PC OS: Linux Status: NEW Severity: critical Priority: P5 - low Component: Web services Assignee: koha-bugs@lists.koha-community.org Reporter: djalel.chefrour@univ-soukahras.dz QA Contact: testopia@bugs.koha-community.org Setup: Ubuntu 24.04.4 Koha 25.11.03-2 Apache2 2.4.66-1+ubuntu24.04.1+deb.sury.org+3 PHP-FPM 2:8.4+101~+ubuntu24.04.1+deb.sury.org+1 Koha instance name: lib Issue appeared after transiting (for performance reasons) from: Apache mpm_prefork / mod_php / AssignUserID to: Apache mpm_event + PHP-FPM + Plack (via Unix socket) Had to remove the deprecated AssignUserID directive (incompatible with mpm_event), Then, when accessing OPAC, Apache returns 503 Service Unavailable as it cannot access Plack socket $ sudo ls -l /var/run/koha/lib/plack.sock srwxr-xr-x 1 lib-koha lib-koha 0 Apr 12 22:58 /var/run/koha/lib/plack.sock Root cause: sudo koha-shell lib -c 'umask' 0002 According to some docs, with user umask 002, a UNIX socket created with the bind() system call will have permission 775 or 775 (not sure!) Workaround: USE Plack with a TCP socket instead OR Tempo. fix for plack with UNIX socket Make Apache a member of the koha group (WARNING: might not be safe!) $ sudo usermod -aG lib-koha www-data Patch /usr/sbin/koha-plack to add: umask 0117 as 1st line in function start_plack() -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.