- Modifié
Cannot install... error on PHP install...
Setting up php7.4-fpm (7.4.28-1+deb11u1) ...
Not replacing deleted config file /etc/php/7.4/fpm/php.ini
NOTICE: Not enabling PHP 7.4 FPM by default.
NOTICE: To enable PHP 7.4 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php7.4-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Detected unsafe path transition / -> /run during canonicalization of /run.
Job for php7.4-fpm.service failed because the control process exited with error code.
See "systemctl status php7.4-fpm.service" and "journalctl -xe" for details.
invoke-rc.d: initscript php7.4-fpm, action "start" failed.
* php7.4-fpm.service - The PHP 7.4 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php7.4-fpm.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2022-06-13 15:32:56 UTC; 6ms ago
Docs: man:php-fpm7.4(8)
Process: 29269 ExecStart=/usr/sbin/php-fpm7.4 --nodaemonize --fpm-config /etc/php/7.4/fpm/php-fpm.conf (code=exited, status=78)
Process: 29270 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/7.4/fpm/pool.d/www.conf 74 (code=exited, status=0/SUCCESS)
Main PID: 29269 (code=exited, status=78)
CPU: 9ms
Jun 13 15:32:56 nas systemd[1]: Starting The PHP 7.4 FastCGI Process Manager...
Jun 13 15:32:56 nas php-fpm7.4[29269]: [13-Jun-2022 15:32:56] ERROR: failed to open configuration file '/etc/php/7.4/fpm/php-fpm.conf': No such file or directory (2)
Jun 13 15:32:56 nas php-fpm7.4[29269]: [13-Jun-2022 15:32:56] ERROR: failed to load configuration file '/etc/php/7.4/fpm/php-fpm.conf'
Jun 13 15:32:56 nas php-fpm7.4[29269]: [13-Jun-2022 15:32:56] ERROR: FPM initialization failed
Jun 13 15:32:56 nas systemd[1]: php7.4-fpm.service: Main process exited, code=exited, status=78/CONFIG
Jun 13 15:32:56 nas systemd[1]: php7.4-fpm.service: Failed with result 'exit-code'.
Jun 13 15:32:56 nas systemd[1]: Failed to start The PHP 7.4 FastCGI Process Manager.
dpkg: error processing package php7.4-fpm (--configure):
installed php7.4-fpm package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
php7.4-fpm
E: Sub-process /usr/bin/dpkg returned an error code (1)