How to Install and Uninstall php.x86_64 Package on Amazon Linux 2

Last updated: May 06,2024

1. Install "php.x86_64" package

This guide let you learn how to install php.x86_64 on Amazon Linux 2

$ sudo yum makecache $ sudo yum install php.x86_64

2. Uninstall "php.x86_64" package

This guide covers the steps necessary to uninstall php.x86_64 on Amazon Linux 2:

$ sudo yum remove php.x86_64 $ sudo yum autoremove

3. Information about the php.x86_64 package on Amazon Linux 2

Loaded plugins: ovl, priorities
Installed Packages
Name : php
Arch : x86_64
Version : 7.4.28
Release : 1.amzn2
Size : 9.7 M
Repo : installed
From repo : amzn2extra-php7.4
Summary : PHP scripting language for creating dynamic web sites
URL : http://www.php.net/
License : PHP and Zend and BSD and MIT and ASL 1.0
Description : PHP is an HTML-embedded scripting language. PHP attempts to make
: it easy for developers to write dynamically generated web pages.
: PHP also offers built-in database integration for several
: commercial and non-commercial database management systems, so
: writing a database-enabled webpage with PHP is fairly simple. The
: most common use of PHP coding is probably as a replacement for CGI
: scripts.
:
: The php package contains the module (often referred to as mod_php)
: which adds support for the PHP language to Apache HTTP Server.
: This is not the supported way of running PHP, the php-fpm package
: should be used instead.