PHP 7.0 at end of life.
Posted: Mon Mar 04, 2019 5:16 am
So I wasn't aware that PHP 7.0 is now officially dead, but it seems to be the case http://php.net/supported-versions.php . This is not great news if you're on Ubuntu 16, as that's the default install of PHP, so if you haven't already done so, its probably time to move.
Luckily the instructions are not hard to follow and appear all around the internet. Basically you add a separate repository. Adding this will now actually automatically move you up to PHP 7.2. You can optionally choose to install PHP 7.3.
However, now you have a system with three versions of PHP installed. In the interests of keeping things tidy, I was looking at uninstalling php7.0, but because it was the original version installed on Ubuntu 16, it seems that things depend on it. I got a list of installed PHP 7.0 packages with
So far, so good, but when you try to use that to remove packages:
You get this:
Now first of all, I don't want to remove roundcube, so I'd like to avoid that. Secondly, it seems like autoremove (should I choose to run it after), will also take out a bunch of important-looking packages.
Has anyone been through this?
What is the way to avoid removing and re-installing roundcube (which is never going to end well).
Luckily the instructions are not hard to follow and appear all around the internet. Basically you add a separate repository. Adding this will now actually automatically move you up to PHP 7.2. You can optionally choose to install PHP 7.3.
However, now you have a system with three versions of PHP installed. In the interests of keeping things tidy, I was looking at uninstalling php7.0, but because it was the original version installed on Ubuntu 16, it seems that things depend on it. I got a list of installed PHP 7.0 packages with
Code: Select all
dpkg --get-selections | grep php7.0 | grep install | awk '{print $1}' | tr '\n' ' '
Code: Select all
apt remove $( dpkg --get-selections | grep php7.0 | grep install | awk '{print $1}' | tr '\n' ' ' )
Code: Select all
The following packages were automatically installed and are no longer required: libmcrypt4 php-auth
php-auth-sasl php-crypt-chap php-db php-imap php-intl php-ldap php-log php-mail php-mail-mime php-mail-mimedecode
php-mdb2 php-net-ldap2 php-net-ldap3 php-net-sieve php-net-smtp php-net-socket php-pspell php-soap
php7.2-imap php7.2-intl php7.2-ldap php7.2-pspell php7.2-soap
Use 'apt autoremove' to remove them.
The following packages will be REMOVED: libapache2-mod-php7.0 php-mcrypt php7.0 php7.0-cgi php7.0-cli
php7.0-common php7.0-gd php7.0-imap php7.0-intl php7.0-json php7.0-ldap php7.0-mbstring php7.0-mcrypt
php7.0-mysql php7.0-opcache php7.0-pspell php7.0-readline php7.0-xml roundcube-core roundcube-plugins
Has anyone been through this?
What is the way to avoid removing and re-installing roundcube (which is never going to end well).