Closed uhlhosting closed 4 years ago
Apache2 uses FPM socket that you have configured. It needs to be manually switched to new version - a2enmod/a2dismod is your friend.
I have done this, still it does not explains the need for 7.4 php packages installed and those cannot be removed.
The you should not have clicked on "I have read Frequently Asked Questions." if you haven't done that.
Frequently asked questions
Describe the bug I am on version 7.2 using php-fpm with apache and ioncube loaders. I tried to upgrade to version 7.3 and this made me in having multiple versions installed.
php -v reports version 7.4 WHMCS setup displays 7.2 and tells me to upgrade.
root@whmcs:/etc/apt/sources.list.d# php -v PHP 7.4.5 (cli) (built: Apr 19 2020 07:36:13) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Zend OPcache v7.4.5, Copyright (c), by Zend Technologies
`root@whmcs:/etc/apt/sources.list.d# apt list php7* | grep installed
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
php7.2/xenial,xenial,now 7.2.30-1+ubuntu16.04.1+deb.sury.org+1 all [installed] php7.2-cli/xenial,now 7.2.30-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2-common/xenial,now 7.2.30-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2-curl/xenial,now 7.2.30-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2-dev/xenial,now 7.2.30-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2-fpm/xenial,now 7.2.30-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2-gd/xenial,now 7.2.30-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2-imap/xenial,now 7.2.30-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2-json/xenial,now 7.2.30-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2-mbstring/xenial,now 7.2.30-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2-mysql/xenial,now 7.2.30-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2-opcache/xenial,now 7.2.30-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2-readline/xenial,now 7.2.30-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2-soap/xenial,now 7.2.30-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2-xml/xenial,now 7.2.30-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2-xmlrpc/xenial,now 7.2.30-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.2-zip/xenial,now 7.2.30-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.3/xenial,xenial,now 7.3.17-1+ubuntu16.04.1+deb.sury.org+1 all [installed] php7.3-cli/xenial,now 7.3.17-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.3-common/xenial,now 7.3.17-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.3-curl/xenial,now 7.3.17-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.3-dev/xenial,now 7.3.17-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.3-fpm/xenial,now 7.3.17-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.3-gd/xenial,now 7.3.17-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.3-imap/xenial,now 7.3.17-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.3-json/xenial,now 7.3.17-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.3-mbstring/xenial,now 7.3.17-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.3-mysql/xenial,now 7.3.17-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.3-opcache/xenial,now 7.3.17-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.3-readline/xenial,now 7.3.17-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.3-soap/xenial,now 7.3.17-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.3-xml/xenial,now 7.3.17-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.3-xmlrpc/xenial,now 7.3.17-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.3-zip/xenial,now 7.3.17-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed] php7.4-cli/xenial,now 7.4.5-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] php7.4-common/xenial,now 7.4.5-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] php7.4-curl/xenial,now 7.4.5-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] php7.4-imap/xenial,now 7.4.5-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] php7.4-json/xenial,now 7.4.5-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] php7.4-mysql/xenial,now 7.4.5-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] php7.4-opcache/xenial,now 7.4.5-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] php7.4-readline/xenial,now 7.4.5-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] php7.4-soap/xenial,now 7.4.5-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] php7.4-xmlrpc/xenial,now 7.4.5-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic] php7.4-zip/xenial,now 7.4.5-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,automatic]`
To Reproduce Upgrade from 7.2 to 7.3 via cli.
Expected behavior I am unable to migrate from php7.2 to 7.3 always ending in mixed versions.
Distribution (please complete the following information):
Package(s) (please complete the following information):
Additional context