Yesterday I installed CentOS 7 to test it out. Today, I am going to show you how to install LAMP Stack (Linux, Apache2, MySQL (MariaDB) and PHP) in CentOS 7. This tutorial should be brief and simple, and for those who are new to CentOS, should have no problem reading and applying the steps below. Installing Cherokee with PHP 5.2 and MySQL Support On CentOS 5.3. Cherokee is a very fast, flexible and easy to configure Web Server. Installing PHP 5.2 with.
- How To Install Php With Mysql Support Centos Firewall Configuration
- How To Install Php-mysql On Centos 7
- How To Install Php With Mysql Support Centos Firewall Open
The CentOS 6 official software repositories has PHP 5.3 which has reached end of life and no longer actively maintained by the developers.
To keep up with the latest features and security updates, you need a newer (probably the latest) version of PHP on your CentOS 6 system.
If you’re looking to install different versions of PHP in CentOS 6, go through the following article.
For the purpose of this guide, we will be operating the system as root, if that is not the case for you, make use of the sudo command to acquire root privileges.
Installing PHP 7 on CentOS 7
How To Install Php With Mysql Support Centos Firewall Configuration
![Php Php](https://cdn.itzgeek.com/wp-content/uploads/2017/08/Install-OpenLiteSpeed-on-CentOS-7-OpenLiteSpeed-MySQL-Support-1024x713.png)
1. To install latest PHP 7, you need to add EPEL and Remi repository to your CentOS 6 system like so.
2. Now install yum-utils, a group of useful tools that enhance yum’s default package management features.
Yum-utils can be used for manipulating package repositories and additional package management operations such as enabling or disabling packages without any manual configuration by a system administrator.
You can install it as follows:
![How to install php with mysql support centos firewall disable How to install php with mysql support centos firewall disable](/uploads/1/2/6/8/126881934/997139924.png)
3. In this step, you need to enable Remi repository using yum-config-manager utility, as the default repository for installing PHP.
If you want to install PHP 7.1 or PHP 7.2 on CentOS 6, just enable it as shown.
4. Then finally install PHP 7 on CentOS 6 with all necessary PHP modules using the following command.
If you are curious, double check the installed version of PHP on your system as follows.
Check PHP Version in CentOS 6
You might also want to check out these useful PHP articles:
How To Install Php-mysql On Centos 7
In this article, we have explained how to install PHP 7 on CentOS 6 Linux. You can send us any questions or additional thoughts via the feedback form below.
How To Install Php With Mysql Support Centos Firewall Open
Share