How to Install and Uninstall php-cgi Package on Debian 12 (Bookworm)

Last updated: May 15,2024

1. Install "php-cgi" package

Please follow the step by step instructions below to install php-cgi on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install php-cgi

2. Uninstall "php-cgi" package

This guide covers the steps necessary to uninstall php-cgi on Debian 12 (Bookworm):

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

3. Information about the php-cgi package on Debian 12 (Bookworm)

Package: php-cgi
Source: php-defaults (94+0~20240205.51+debian12~1.gbp6faa2e)
Version: 2:8.3+94+0~20240205.51+debian12~1.gbp6faa2e
Architecture: all
Maintainer: Debian PHP Maintainers
Installed-Size: 20
Depends: php8.3-cgi
Priority: optional
Section: php
Filename: pool/main/p/php-defaults/php-cgi_8.3+94+0~20240205.51+debian12~1.gbp6faa2e_all.deb
Size: 4372
SHA256: f214f0268952c44bd62b27917a8ecf4d5c0c96a1522a618dd6bd831862c1781f
SHA1: 312f42b11950051ca0d9e4a6973884a420d1673d
MD5sum: d653f5a20be155d170bcda8191bd55d9
Description: 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 latest stable
PHP version (currently 8.3).
Description-md5: c2d411a125412ad9e227c7490c3ea2cc

Package: php-cgi
Source: php-defaults (93)
Version: 2:8.2+93
Installed-Size: 20
Maintainer: Debian PHP Maintainers
Architecture: all
Depends: php8.2-cgi
Description: server-side, HTML-embedded scripting language (CGI binary) (default)
Description-md5: 98c430c91118a21052cf27fe079507cc
Section: php
Priority: optional
Filename: pool/main/p/php-defaults/php-cgi_8.2+93_all.deb
Size: 4164
MD5sum: e27c4a6b704a6574082c98dcce23ec83
SHA256: 228d73004bdd3d27c4ad155ac4af53171660b84f2820d8812067bd4bcbab0fa5