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

Last updated: November 14,2024

1. Install "php7.1-cgi" package

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

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

2. Uninstall "php7.1-cgi" package

Please follow the steps below to uninstall php7.1-cgi on Ubuntu 16.04 LTS (Xenial Xerus):

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

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

Package: php7.1-cgi
Source: php7.1
Priority: optional
Section: php
Installed-Size: 8712
Maintainer: Debian PHP Maintainers
Architecture: amd64
Version: 7.1.33-37+ubuntu16.04.1+deb.sury.org+1
Suggests: php-pear
Provides: php-cgi, phpapi-20160303
Depends: libmagic1, libpcre3 (>= 2:8.41), mime-support, php7.1-cli, php7.1-common (= 7.1.33-37+ubuntu16.04.1+deb.sury.org+1), php7.1-json, php7.1-opcache, tzdata, ucf, libc6 (>= 2.15), libssl1.1 (>= 1.1.0), libxml2 (>= 2.8.0), zlib1g (>= 1:1.1.4)
Filename: pool/main/p/php7.1/php7.1-cgi_7.1.33-37+ubuntu16.04.1+deb.sury.org+1_amd64.deb
Size: 1287346
MD5sum: 0afc920b393aba87ebeb12c9b9cd77bb
SHA1: 2edfd223fe5916be7d5d582de682a4f83e576398
SHA256: 860c6711bf9e84a15877e684531e749d6e08066157371e574037331c287bc5f8
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.1-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: 215ea9954cc861d8f3858738c70921ad