How to install php 7 on centos 7

PHP is a popular open-source server-side scripting language that is integral in developing dynamic webpages. PHP 8.0 is finally out và was released on November 26th, 20đôi mươi. It promises lots of improvements & optimizations which are phối to lớn streamline how developers write and interact with PHPhường code.

Bạn đang xem: How to install php 7 on centos 7

In this guide, you will learn how lớn install PHP. 8.0 on CentOS 8/7RHEL 8/7.

Step 1: Enable EPEL và Rengươi Repository on CentOS/RHEL

Right off the bat, you need to lớn enable the EPEL repository on your system. EPEL, short for Extra Packages for Enterprise Linux, is an effort from the Fedora team that provides a phối of additional packages that are not present by default on RHEL & CentOS.

Xem thêm: neutrogena rainbath

$ subởi vì dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm CentOS/RHEL 8>$ subởi dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm CentOS/RHEL 7>Remi repository is a third-buổi tiệc nhỏ repository that provides a wide range of PHP versions for RedHat Enterprise Linux. To install the Remi repository, run the command:

$ subởi dnf install -y https://rpms.remirepo.net/enterprise/remi-release-8.rpm CentOS/RHEL 8>$ sudo dnf install -y https://rpms.remirepo.net/enterprise/remi-release-7.rpm CentOS/RHEL 7>

Step 2: Install PHPhường 8 on CentOS/RHEL

Once the installation is complete, proceed và danh sách the available php module streams as shown:

$ subởi vì dnf module menu PHP
Right at the bottom, be sure to notice the remi-8.0 php module.

*
*
*
*
*
Verify PHP ExtensionIn the over, we hope that you can now comfortably install PHPhường 8.0 alongside various php extensions on CentOS/RHEL 8/7.

Xem thêm: Top 10 Các Thương Hiệu Giày Nổi Tiếng Trên Thế Giới, Top 10 Các Hãng Giày Nổi Tiếng Nhất Thế Giới


If you liked this article, then do subscribe khổng lồ gmail alerts for Linux tutorials. If you have sầu any questions or doubts? do ask for help in the comments section.

Chuyên mục: