PHP 7 Apache MySQL

 

The latest major release of PHP version 7.0 has been released with lots of speed optimizations and security. So you should try this version for your development. This tutorial will help you to install PHP 7.0, & MySQL on CentOS | RedHat

 

CentOS/RHEL 7.x:

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

CentOS/RHEL 6.x:

rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

Update System

$ sudo yum update

Install PHP 7 (along with an opcode cache)

$ sudo yum install php70w php70w-opcache

 Install Apache

After successfully installation, lets begin installing Apache 2.4. , httpd should have installed as dependency with PHP 7 but if not you can run.

$ sudo yum install httpd

Install MySQL

Use the following commands to install or upgrade MySQL and Dependencies on your system.

$ sudo yum install mysql-server

Leave a Reply

Your email address will not be published. Required fields are marked *