Quick and Dirty install below!

Install HTTPD

sudo yum install httpd

Start and Enable Boot-Startup of httpd

sudo systemctl start httpd.service
sudo systemctl enable httpd.service

Install & Start / Boot-Start MariaDB ( A drop-in mysql replacement )

sudo yum install mariadb-server mariadb
sudo systemctl start mariadb
sudo systemctl enable mariadb.service

Secure Your MySQL Installation

sudo mysql_secure_installation

Add PHP & Mysql Support – Restart HTTPD

sudo yum install php php-mysql
sudo systemctl restart httpd.service

Optional Package Install – You can add PHP Extensions by using the ‘yum search’ command to find and

‘yum install’ to install.

yum search php-
sudo yum install pkg1 pkg2 etc.

Finally , Open up ports on FirewallD

sudo firewall-cmd --permanent --zone=public --add-service=http 
sudo firewall-cmd --permanent --zone=public --add-service=https
sudo firewall-cmd --reload

Optional – mcrypt and imagemagick support

yum install ImageMagick ImageMagick-devel
yum install php-mcrypt*
Howto :: LAMP Stack on Centos 7
Tagged on:                         

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.