How to install php on Amazon Linux
PHP scripting language for creating dynamic web sites
Availability
Compare package tracks by distribution and architecture. Checkmarks show the architectures available in each repository channel.
| Distro | Channel | x86_64 | Version |
|---|---|---|---|
| Amazon Linux 2012.03 | Base | 5.3.3 |
Description
PHP is an HTML-embedded scripting language. PHP attempts to make it easy for developers to write dynamically generated webpages. 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 which adds support for the PHP language to Apache HTTP Server.
Built for Amazon Linux.
Install
php on Amazon Linux 2012.03
sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm sudo dnf -y install php
php: Free to install; commercial production use requires a subscription. Without one, a small license notice appears on HTML pages after 30 days.
Subscribe — from $10/moFrequently asked questions
How do I install php on Amazon Linux?
Add the GetPageSpeed repository, then install the php package with your system package manager.
Which Amazon Linux versions is php available for?
php is available for Amazon Linux 2012.03.