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

Last updated: May 15,2024

1. Install "php-cgi" package

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

$ sudo apt update $ sudo apt install php-cgi

2. Uninstall "php-cgi" package

Please follow the guidance below to uninstall php-cgi on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove php-cgi $ sudo apt autoclean && sudo apt autoremove

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

Package: php-cgi
Architecture: all
Version: 1:7.0+35ubuntu6.1
Priority: optional
Section: php
Source: php-defaults (35ubuntu6.1)
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 11
Depends: php7.0-cgi
Filename: pool/main/p/php-defaults/php-cgi_7.0+35ubuntu6.1_all.deb
Size: 3032
MD5sum: f9197bc9b03d2391b89aff61a80fb5bd
SHA1: 0ed5f037dfe19ef359c583b7725f0dbe0553eb8e
SHA256: a5a0aae91eab8eed70654517f8d03df5d1a71d268e4d32e411a89ff021d3ca88
SHA512: 7b3a124dbd1a30a018267abaa907d9e01d7e74e1ba5407460c2724f118be82b29268346e39dd13492ecf96c49c5c49253650920483a95d9ff077c13815f7ff72
Description-en: server-side, HTML-embedded scripting language (CGI binary) (default)
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 php-fpm package that provide FastCGI support.
.
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.
.
This package is a dependency package, which depends on Debian's default
PHP version (currently 7.0).
Description-md5: 2c62d4426b2131a06b9db84c6ded1a5b
Supported: 5y

Package: php-cgi
Priority: optional
Section: php
Installed-Size: 11
Maintainer: Ubuntu Developers
Original-Maintainer: Debian PHP Maintainers
Architecture: all
Source: php-defaults (35ubuntu6)
Version: 1:7.0+35ubuntu6
Depends: php7.0-cgi
Filename: pool/main/p/php-defaults/php-cgi_7.0+35ubuntu6_all.deb
Size: 3004
MD5sum: 8eb280bd2e834c59f08c0131ad11e533
SHA1: 3dcf8b0656bf32e2dd7aaf49798aafbd812b7904
SHA256: ffbea0f2227a813b333fa2a1a387c57a6b28618e5a3b8368425a8304075ceeab
Description-en: server-side, HTML-embedded scripting language (CGI binary) (default)
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 php-fpm package that provide FastCGI support.
.
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.
.
This package is a dependency package, which depends on Debian's default
PHP version (currently 7.0).
Description-md5: 2c62d4426b2131a06b9db84c6ded1a5b
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y