Skip to content

Instantly share code, notes, and snippets.

@acbilimoria
Created March 1, 2017 18:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acbilimoria/73de19743600141711e6fce09d7924fc to your computer and use it in GitHub Desktop.
Save acbilimoria/73de19743600141711e6fce09d7924fc to your computer and use it in GitHub Desktop.
Install PHP 5.6:
sudo yum -y update
sudo yum -y install epel-release
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
wget https://centos7.iuscommunity.org/ius-release.rpm
sudo rpm -Uvh ius-release*.rpm
sudo yum -y update
sudo yum -y install php56u php56u-opcache php56u-xml php56u-mcrypt php56u-gd php56u-devel php56u-mysql php56u-intl php56u-mbstring php56u-bcmath
sudo service httpd restart
sudo yum install httpd
sudo systemctl start httpd.service
sudo systemctl enable httpd.service
sudo vim /etc/httpd/conf/httpd.conf
sudo yum install mariadb-server mariadb
sudo systemctl start mariadb.service
sudo systemctl enable mariadb.service
sudo mysql_secure_installation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment