Ubuntu 16.04 Multiple php version

General Tech Bugs & Fixes 2 years ago

0 1 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 

i have a server with 3 version of php. 5.6, 7.0, 7.1.

I want know why if i do: sudo apt list --installed | grep -i php

I see some package that start with php without the version number. Is this configuration correct or i need to uninstall the php package?

sudo apt list --installed | grep -i php

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libapache2-mod-php/now 1:7.1+55+ubuntu16.04.1+deb.sury.org+1 all [installed,upgradable to: 1:7.2+59+ubuntu16.04.1+deb.sury.org+1]
libapache2-mod-php5.6/now 5.6.32-1+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 5.6.33-1+ubuntu16.04.1+deb.sury.org+1]
libapache2-mod-php7.0/now 7.0.26-2+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 7.0.27-1+ubuntu16.04.1+deb.sury.org+1]
libapache2-mod-php7.1/now 7.1.12-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,upgradable to: 7.1.13-1+ubuntu16.04.1+deb.sury.org+1]
php/now 1:7.1+55+ubuntu16.04.1+deb.sury.org+1 all [installed,upgradable to: 1:7.2+59+ubuntu16.04.1+deb.sury.org+1]
php-apcu/now 5.1.8+4.0.11-1+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 5.1.9+4.0.11-1+ubuntu16.04.1+deb.sury.org+1]
php-apcu-bc/xenial,now 1.0.3-5+ubuntu16.04.1+deb.sury.org+3 amd64 [installed,automatic]
php-cgi/now 1:7.1+55+ubuntu16.04.1+deb.sury.org+1 all [installed,upgradable to: 1:7.2+59+ubuntu16.04.1+deb.sury.org+1]
php-common/now 1:55+ubuntu16.04.1+deb.sury.org+1 all [installed,upgradable to: 1:59+ubuntu16.04.1+deb.sury.org+1]
php-gd/now 1:7.1+55+ubuntu16.04.1+deb.sury.org+1 all [installed,upgradable to: 1:7.2+59+ubuntu16.04.1+deb.sury.org+1]
php-gettext/xenial,now 1.0.11-2+deb.sury.org~xenial+1 all [installed]
php-imagick/xenial,now 3.4.3-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed]
php-mbstring/now 1:7.1+55+ubuntu16.04.1+deb.sury.org+1 all [installed,upgradable to: 1:7.2+59+ubuntu16.04.1+deb.sury.org+1]
php-mcrypt/now 1:7.1+55+ubuntu16.04.1+deb.sury.org+1 all [installed,upgradable to: 1:7.2+58+ubuntu16.04.1+deb.sury.org+1]
php-memcache/xenial,now 3.0.9~20160311.4991c2f-7+ubuntu16.04.1+deb.sury.org+1 amd64 [installed]
php-mysql/now 1:7.1+55+ubuntu16.04.1+deb.sury.org+1 all [installed,upgradable to: 1:7.2+59+ubuntu16.04.1+deb.sury.org+1]
php-pear/xenial,now 1:1.10.5+submodules+notgz-1+ubuntu16.04.1+deb.sury.org+1 all [installed]
php-xml/now 1:7.1+55+ubuntu16.04.1+deb.sury.org+1 all [installed,upgradable to: 1:7.2+59+ubuntu16.04.1+deb.sury.org+1]
php5.6/xenial,now 5.6.32-1+ubuntu16.04.1+deb.sury.org+2 all [installed,upgradable to: 5.6.33-1+ubuntu16.04.1+deb.sury.org+1]
php5.6-cgi/now 5.6.32-1+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 5.6.33-1+ubuntu16.04.1+deb.sury.org+1]
php5.6-cli/now 5.6.32-1+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 5.6.33-1+ubuntu16.04.1+deb.sury.org+1]
php5.6-common/now 5.6.32-1+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 5.6.33-1+ubuntu16.04.1+deb.sury.org+1]
php5.6-curl/now 5.6.32-1+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 5.6.33-1+ubuntu16.04.1+deb.sury.org+1]
php5.6-fpm/now 5.6.32-1+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 5.6.33-1+ubuntu16.04.1+deb.sury.org+1]
php5.6-gd/now 5.6.32-1+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 5.6.33-1+ubuntu16.04.1+deb.sury.org+1]
php5.6-imap/now 5.6.32-1+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 5.6.33-1+ubuntu16.04.1+deb.sury.org+1]
php5.6-json/now 5.6.32-1+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 5.6.33-1+ubuntu16.04.1+deb.sury.org+1]
php5.6-mbstring/now 5.6.32-1+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 5.6.33-1+ubuntu16.04.1+deb.sury.org+1]
php5.6-mcrypt/now 5.6.32-1+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 5.6.33-1+ubuntu16.04.1+deb.sury.org+1]
php5.6-mysql/now 5.6.32-1+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 5.6.33-1+ubuntu16.04.1+deb.sury.org+1]
php5.6-opcache/now 5.6.32-1+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 5.6.33-1+ubuntu16.04.1+deb.sury.org+1]
php5.6-readline/now 5.6.32-1+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 5.6.33-1+ubuntu16.04.1+deb.sury.org+1]
php5.6-tidy/now 5.6.32-1+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 5.6.33-1+ubuntu16.04.1+deb.sury.org+1]
php5.6-xml/now 5.6.32-1+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 5.6.33-1+ubuntu16.04.1+deb.sury.org+1]
php5.6-xmlrpc/now 5.6.32-1+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 5.6.33-1+ubuntu16.04.1+deb.sury.org+1]
php5.6-xsl/xenial,now 5.6.32-1+ubuntu16.04.1+deb.sury.org+2 all [installed,upgradable to: 5.6.33-1+ubuntu16.04.1+deb.sury.org+1]
php5.6-zip/now 5.6.32-1+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 5.6.33-1+ubuntu16.04.1+deb.sury.org+1]
php7.0/xenial,now 7.0.26-2+ubuntu16.04.1+deb.sury.org+2 all [installed,upgradable to: 7.0.27-1+ubuntu16.04.1+deb.sury.org+1]
php7.0-cgi/now 7.0.26-2+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 7.0.27-1+ubuntu16.04.1+deb.sury.org+1]
php7.0-cli/now 7.0.26-2+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 7.0.27-1+ubuntu16.04.1+deb.sury.org+1]
php7.0-common/now 7.0.26-2+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 7.0.27-1+ubuntu16.04.1+deb.sury.org+1]
php7.0-curl/now 7.0.26-2+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 7.0.27-1+ubuntu16.04.1+deb.sury.org+1]
php7.0-gd/now 7.0.26-2+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 7.0.27-1+ubuntu16.04.1+deb.sury.org+1]
php7.0-json/now 7.0.26-2+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 7.0.27-1+ubuntu16.04.1+deb.sury.org+1]
php7.0-mbstring/now 7.0.26-2+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 7.0.27-1+ubuntu16.04.1+deb.sury.org+1]
php7.0-mcrypt/now 7.0.26-2+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 7.0.27-1+ubuntu16.04.1+deb.sury.org+1]
php7.0-mysql/now 7.0.26-2+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 7.0.27-1+ubuntu16.04.1+deb.sury.org+1]
php7.0-opcache/now 7.0.26-2+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 7.0.27-1+ubuntu16.04.1+deb.sury.org+1]
php7.0-readline/now 7.0.26-2+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 7.0.27-1+ubuntu16.04.1+deb.sury.org+1]
php7.0-xml/now 7.0.26-2+ubuntu16.04.1+deb.sury.org+2 amd64 [installed,upgradable to: 7.0.27-1+ubuntu16.04.1+deb.sury.org+1]
php7.1/xenial,now 7.1.12-3+ubuntu16.04.1+deb.sury.org+1 all [installed,upgradable to: 7.1.13-1+ubuntu16.04.1+deb.sury.org+1]
php7.1-cgi/now 7.1.12-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,upgradable to: 7.1.13-1+ubuntu16.04.1+deb.sury.org+1]
php7.1-cli/now 7.1.12-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,upgradable to: 7.1.13-1+ubuntu16.04.1+deb.sury.org+1]
php7.1-common/now 7.1.12-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,upgradable to: 7.1.13-1+ubuntu16.04.1+deb.sury.org+1]
php7.1-curl/now 7.1.12-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,upgradable to: 7.1.13-1+ubuntu16.04.1+deb.sury.org+1]
php7.1-gd/now 7.1.12-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,upgradable to: 7.1.13-1+ubuntu16.04.1+deb.sury.org+1]
php7.1-imap/now 7.1.12-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,upgradable to: 7.1.13-1+ubuntu16.04.1+deb.sury.org+1]
php7.1-json/now 7.1.12-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,upgradable to: 7.1.13-1+ubuntu16.04.1+deb.sury.org+1]
php7.1-mbstring/now 7.1.12-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,upgradable to: 7.1.13-1+ubuntu16.04.1+deb.sury.org+1]
php7.1-mcrypt/now 7.1.12-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,upgradable to: 7.1.13-1+ubuntu16.04.1+deb.sury.org+1]
php7.1-mysql/now 7.1.12-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,upgradable to: 7.1.13-1+ubuntu16.04.1+deb.sury.org+1]
php7.1-opcache/now 7.1.12-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,upgradable to: 7.1.13-1+ubuntu16.04.1+deb.sury.org+1]
php7.1-readline/now 7.1.12-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,upgradable to: 7.1.13-1+ubuntu16.04.1+deb.sury.org+1]
php7.1-xml/now 7.1.12-3+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,upgradable to: 7.1.13-1+ubuntu16.04.1+deb.sury.org+1]

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.