Linux CentOs LAMP

Install update

$ sudo yum update

Install apache

Install apache

$ sudo yum install httpd

Start apache

$ sudo systemctl start httpd.service

Set apache to start on boot

$ sudo systemctl enable httpd.service

Set firewall

$ sudo firewall-cmd --add-service=http --permanent

Install MySQL

Install MySQL

$ sudo yum install mariadb-server mariadb

Start MySQL

$ sudo systemctl start mariadb

Set MySQL to start on boot

$ sudo systemctl enable mariadb.service

Finish MySQL setting installation

$ sudo mysql_secure_installation

Install PHP

Install PHP

$ cd ~
$ curl 'https://setup.ius.io/' -o setup-ius.sh
$ sudo bash setup-ius.sh
$ sudo yum install mod_php70u php70u-cli php70u-mysqlnd

Restart apache

$ sudo systemctl restart httpd.service