How to Install and Uninstall php7.0-cgi Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: December 26,2024

1. Install "php7.0-cgi" package

Please follow the instructions below to install php7.0-cgi on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install php7.0-cgi

2. Uninstall "php7.0-cgi" package

In this section, we are going to explain the necessary steps to uninstall php7.0-cgi on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove php7.0-cgi $ sudo apt autoclean && sudo apt autoremove

3. Information about the php7.0-cgi package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: php7.0-cgi
Architecture: amd64
Version: 7.0.33-0ubuntu0.16.04.16
Priority: optional
Section: php
Source: php7.0
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 8399
Provides: php-cgi, phpapi-20151012
Depends: libmagic1, mime-support, php7.0-cli, php7.0-common (= 7.0.33-0ubuntu0.16.04.16), php7.0-json, php7.0-opcache, tzdata, ucf, libc6 (>= 2.15), libpcre3, libssl1.0.0 (>= 1.0.2~beta3), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Suggests: php-pear
Conflicts: php5-cgi (<< 5.6.16+dfsg-4~)
Filename: pool/main/p/php7.0/php7.0-cgi_7.0.33-0ubuntu0.16.04.16_amd64.deb
Size: 1244380
MD5sum: 0302d26c7dc4e4e95ed468fae796ab3b
SHA1: dc340a3c6671af6330f17bc6dfb1100f390fde3a
SHA256: d14257d4d153e06e92863e476f742be463c8a8c7dadd5ffa4393729ebb86e0ad
SHA512: d98710d3ad21fb166b87477cff484dc696f993607b24143ce72d9e17e54016783c10898e841165188eb521d3426b3296ed220c7b839b31d537074acc9b40fb98
Homepage: http://www.php.net/
Description-en: server-side, HTML-embedded scripting language (CGI binary)
This package provides the /usr/lib/cgi-bin/php CGI interpreter built
for use in Apache 2 with mod_actions, or any other CGI httpd that
supports a similar mechanism. Note that MOST users probably
want the php7.0-fpm package.
.
The following extensions are built in: Core date filter hash libxml openssl
pcntl pcre Reflection session SPL standard zlib.
.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used
open source general-purpose scripting language that is especially suited
for web development and can be embedded into HTML.
Description-md5: a1f2d8d3301e7b608d6c22738791d06c
Supported: 5y

Package: php7.0-cgi
Priority: optional
Section: php
Installed-Size: 8423
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Architecture: amd64
Source: php7.0
Version: 7.0.4-7ubuntu2
Provides: php-cgi, phpapi-20151012
Depends: libmagic1, mime-support, php7.0-cli, php7.0-common (= 7.0.4-7ubuntu2), php7.0-json, php7.0-opcache, tzdata, ucf, libc6 (>= 2.15), libpcre3, libssl1.0.0 (>= 1.0.2~beta3), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Suggests: php-pear
Conflicts: php5-cgi (<< 5.6.16+dfsg-4~)
Filename: pool/main/p/php7.0/php7.0-cgi_7.0.4-7ubuntu2_amd64.deb
Size: 1237332
MD5sum: d04359ef567ecfdb9ac425ab410be9c9
SHA1: d74a0932cc5cfcb821aaa71eef5981a6235d78ae
SHA256: fca9259d4c65f61d4c89a552bbefa44cef6837bacb7ece9b43b20780378478d5
Description-en: server-side, HTML-embedded scripting language (CGI binary)
This package provides the /usr/lib/cgi-bin/php CGI interpreter built
for use in Apache 2 with mod_actions, or any other CGI httpd that
supports a similar mechanism. Note that MOST users probably
want the php7.0-fpm package.
.
The following extensions are built in: Core date filter hash libxml openssl
pcntl pcre Reflection session SPL standard zlib.
.
PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used
open source general-purpose scripting language that is especially suited
for web development and can be embedded into HTML.
Description-md5: a1f2d8d3301e7b608d6c22738791d06c
Homepage: http://www.php.net/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y