How to Install and Uninstall php-cgi Package on Kali Linux

Last updated: May 16,2024

1. Install "php-cgi" package

This guide let you learn how to install php-cgi on Kali Linux

$ sudo apt update $ sudo apt install php-cgi

2. Uninstall "php-cgi" package

Please follow the guidance below to uninstall php-cgi on Kali Linux:

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

3. Information about the php-cgi package on Kali Linux

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
Size: 4164
SHA256: 228d73004bdd3d27c4ad155ac4af53171660b84f2820d8812067bd4bcbab0fa5
SHA1: 0f2751aee86ff4f6258e16dfa9259f9387724397
MD5sum: e27c4a6b704a6574082c98dcce23ec83
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.2).
Description-md5:
Section: php
Priority: optional
Filename: pool/main/p/php-defaults/php-cgi_8.2+93_all.deb