HestiaCP + Debian 11 php errors

Hi, ok i have fresh install of debian 11 and latest hestiacp, user files restored from debian 10 setup.

So far all seems ok except for some php 8 errors.
apt-get install logwatch rkhunter ncdu iotop

Preparing to unpack …/9-ncdu_1.15.1-1_amd64.deb …
Unpacking ncdu (1.15.1-1) …
Setting up ncdu (1.15.1-1) …
Setting up binutils-common:amd64 (2.35.2-2) …
Setting up libctf-nobfd0:amd64 (2.35.2-2) …
Setting up php8.0-fpm (8.0.9-1+0~20210730.22+debian11~1.gbp99e7e9) …
NOTICE: Not enabling PHP 8.0 FPM by default.
NOTICE: To enable PHP 8.0 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php8.0-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Job for php8.0-fpm.service failed because the control process exited with error code.
See “systemctl status php8.0-fpm.service” and “journalctl -xe” for details.
invoke-rc.d: initscript php8.0-fpm, action “restart” failed.
> ● php8.0-fpm.service - The PHP 8.0 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php8.0-fpm.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2021-08-24 22:23:04 BST; 4ms ago
Docs: man:php-fpm8.0(8)
Process: 218131 ExecStart=/usr/sbin/php-fpm8.0 --nodaemonize --fpm-config /etc/php/8.0/fpm/php-fpm.conf (code=exited, status=78)
Process: 218132 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/8.0/fpm/pool.d/www.conf 80 (code=exited, status=0/SUCCESS)
Main PID: 218131 (code=exited, status=78)
CPU: 25ms

Aug 24 22:23:04 server.domain.com systemd[1]: Starting The PHP 8.0 FastCGI Process Manager…
Aug 24 22:23:04 server.domain.com php-fpm8.0[218131]: [24-Aug-2021 22:23:04] ERROR: unable to bind listening socket for address ‘127.0.0.1:9000’: Address already in use (98)
Aug 24 22:23:04 server.domain.com php-fpm8.0[218131]: [24-Aug-2021 22:23:04] ERROR: FPM initialization failed
Aug 24 22:23:04 server.domain.com systemd[1]: php8.0-fpm.service: Main process exited, code=exited, status=78/CONFIG
Aug 24 22:23:04 server.domain.com systemd[1]: php8.0-fpm.service: Failed with result ‘exit-code’.
Aug 24 22:23:04 server.domain.com systemd[1]: Failed to start The PHP 8.0 FastCGI Process Manager.
dpkg: error processing package php8.0-fpm (–configure):
installed php8.0-fpm package post-installation script subprocess returned error exit status 1
Setting up iotop (0.6-24-g733f3f8-1.1) …
update-alternatives: using /usr/sbin/iotop-py to provide /usr/sbin/iotop (iotop) in auto mode
Setting up libbinutils:amd64 (2.35.2-2) …
Setting up logwatch (7.5.5-1) …
Setting up libctf0:amd64 (2.35.2-2) …
Setting up binutils-x86-64-linux-gnu (2.35.2-2) …
Setting up binutils (2.35.2-2) …
Setting up rkhunter (1.4.6-9) …

Creating config file /etc/default/rkhunter with new version
[ Rootkit Hunter version 1.4.6 ]
File created: searched for 177 files, found 133
Processing triggers for man-db (2.9.4-2) …
Processing triggers for libc-bin (2.31-13) …
Errors were encountered while processing:
php8.0-fpm
E: Sub-process /usr/bin/dpkg returned an error code (1)

and

systemctl status php8.0-fpm.service
● php8.0-fpm.service - The PHP 8.0 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php8.0-fpm.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2021-08-24 22:12:24 BST; 32s ago
Docs: man:php-fpm8.0(8)
Process: 215331 ExecStart=/usr/sbin/php-fpm8.0 --nodaemonize --fpm-config /etc/php/8.0/fpm/php-fpm.conf (code=exited, status=78)
Process: 215332 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/8.0/fpm/pool.d/www.conf 80 (code=exited, status=0/SUCCESS)
Main PID: 215331 (code=exited, status=78)
CPU: 26ms

Aug 24 22:12:24 server.domain.com systemd[1]: Starting The PHP 8.0 FastCGI Process Manager…
Aug 24 22:12:24 server.domain.com php-fpm8.0[215331]: [24-Aug-2021 22:12:24] ERROR: unable to bind listening socket for address ‘127.0.0.1:9000’: Address already in use (98)
Aug 24 22:12:24 server.domain.com php-fpm8.0[215331]: [24-Aug-2021 22:12:24] ERROR: FPM initialization failed
Aug 24 22:12:24 server.domain.com systemd[1]: php8.0-fpm.service: Main process exited, code=exited, status=78/CONFIG
Aug 24 22:12:24 server.domain.com systemd[1]: php8.0-fpm.service: Failed with result ‘exit-code’.
Aug 24 22:12:24 server.domain.com systemd[1]: Failed to start The PHP 8.0 FastCGI Process Manager.

is this just a case of doing following or is this a bug?

a2enmod proxy_fcgi setenvif
a2enconf php8.0-fpm

Multi php uses for install

thanks

rm /etc/php/8.0/fpm/pool.d/www.conf

cured errors

1 Like

ls /etc/php/*/fpm/pool.d/www.conf returns how many files it should max one.

just one

The it should be working fine. I noticed during some testing detection goes wrong. Will have a look tomorrow…