Switch PHP to 7.4 for MyVesta updates, is it possible?

Post Reply
n1ebieski
Posts: 5
Joined: Sun Jul 05, 2020 12:43 pm

If I switch PHP to 7.4 (installed by multi-php script) in all vhosts then php7.3-fpm proccess will be disabled. Everything works fine except vesta packages update. My log:
Hit:1 http://apt.myvestacp.com/buster buster InRelease
Reading package lists...
Setting up php7.3-fpm (7.3.23-4+0~20201018.71+debian10~1.gbpfc8934) ...
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
NOTICE: Not enabling PHP 7.3 FPM by default.
NOTICE: To enable PHP 7.3 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php7.3-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Job for php7.3-fpm.service failed because the control process exited with error code.
See "systemctl status php7.3-fpm.service" and "journalctl -xe" for details.
invoke-rc.d: initscript php7.3-fpm, action "restart" failed.
.[0;1;31m●.[0m php7.3-fpm.service - The PHP 7.3 FastCGI Process Manager
Loaded: loaded (.]8;;file://here-hostname-url/lib/systemd/system/php7.3-fpm.service./lib/systemd/system/php7.3-fpm.service.]8;;.; enabled; vendor preset: enabled)
Active: .[0;1;31mfailed.[0m (Result: exit-code) since Tue 2020-10-27 01:31:16 CET; 11ms ago
Docs: .]8;;man:php-fpm7.3(8).man:php-fpm7.3(8).]8;;.
Process: 16968 ExecStart=/usr/sbin/php-fpm7.3 --nodaemonize --fpm-config /etc/php/7.3/fpm/php-fpm.conf .[0;1;31m(code=exited, status=78).[0m
Process: 16969 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/7.3/fpm/pool.d/www.conf 73 (code=exited, status=0/SUCCESS)
Main PID: 16968 (code=exited, status=78)

Oct 27 01:31:16 here-hostname-url systemd[1]: Starting The PHP 7.3 FastCGI Process Manager...
Oct 27 01:31:16 here-hostname-url php-fpm7.3[16968]: [27-Oct-2020 01:31:16] WARNING: Nothing matches the include pattern '/etc/php/7.3/fpm/pool.d/*.conf' from /etc/php/7.3/fpm/php-fpm.conf at line 143.
Oct 27 01:31:16 here-hostname-url php-fpm7.3[16968]: [27-Oct-2020 01:31:16] ERROR: No pool defined. at least one pool section must be specified in config file
Oct 27 01:31:16 here-hostname-url php-fpm7.3[16968]: [27-Oct-2020 01:31:16] ERROR: failed to post process the configuration
Oct 27 01:31:16 here-hostname-url php-fpm7.3[16968]: [27-Oct-2020 01:31:16] ERROR: FPM initialization failed
Oct 27 01:31:16 here-hostname-url systemd[1]: .[0;1;39m.[0;1;31m.[0;1;39mphp7.3-fpm.service: Main process exited, code=exited, status=78/CONFIG.[0m
Oct 27 01:31:16 here-hostname-url systemd[1]: .[0;1;39m.[0;1;31m.[0;1;39mphp7.3-fpm.service: Failed with result 'exit-code'..[0m
Oct 27 01:31:16 here-hostname-url systemd[1]: .[0;1;31m.[0;1;39m.[0;1;31mFailed to start The PHP 7.3 FastCGI Process Manager..[0m
dpkg: error processing package php7.3-fpm (--configure):
installed php7.3-fpm package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
php7.3-fpm
E: Sub-process /usr/bin/dpkg returned an error code (1)
User avatar
myVesta
Site Admin
Posts: 932
Joined: Fri Jun 19, 2020 9:59 am
Has thanked: 8 times
Been thanked: 6 times

This is happening because none of domains/subdomains are using php 7.3

The easiest fix is: create random subdomain and put in to be on 7.3

Or:
Total disable php7.3:

Code: Select all

systemctl stop php7.3-fpm
systemctl disable php7.3-fpm
Post Reply