TECHIES WORLD

For Techs.... Techniques.... Technologies....

ApacheLinuxMysqlPHP

How to install LAMP in Centos7

LAMP stack is a popular open source web platform commonly used to run dynamic web sites and servers. It includes Linux, Apache, MySQL, and PHP/Python/Perl and is considered by many the platform of choice for development and deployment of high performance web applications which require a solid and reliable foundation.

This tutorial explains the detailed steps to configure LAMP in Cenos7 server.

Step1: Install Apache

#yum install httpd

Step2: Start Apache service

#systemctl start httpd

Step3: Enable Apache to run in startup

#systemctl enable httpd

Step4: Install Mysql server

#yum install mysql-server mysql

Step5: Start Mysql service

#systemctl start mysql

Step6: Set Mysql root password and reload the privileges

#mysql_secure_installation

Step7: Enable Mysql to run in startup

#systemctl enable mariadb

Step8: Install PHP

#yum install php

Step9: Install required php modules.

To see the available options for PHP modules and libraries, you can type this into your system:

#yum search php-

The results are all optional components that you can install.

Step10: Restart Apache service

#systemctl restart httpd

 

That's all....

 

Leave a Reply