How to install LAMP on plane centos/RHEL server?

Started by Dipak Bhoi, May 04, 2015, 04:00:23 PM

Previous topic - Next topic

Dipak Bhoi

Hello folks,

In this post I will show you, how to install LAMP.

Install Apache HTTP Server :-

Quote#yum install httpd

Set the apache service to start after each boot.

Quote#chkconfig httpd on

Open configuration file of apache and un-comment the line, containing the text "NameVirtualHost *:80".

Quote#vi /etc/httpd/conf/httpd.conf

Install MySQL :-

Quote#yum install mysql-server

#chkconfig mysqld on

#service mysqld start

Set the root password for MySQL

Quote#mysqladmin -u root password NEWPASSWORD

Install PHP :-

Quote#yum install php php-mysql

Restart Apache service.

Quote#service httpd restart

Check php version.

Quote#php -v

That's all, you have done.

Enjoy !! :) :)
MilesWeb - 30-Day Money Back
cPanel Web Hosting - cPanel Hosting in India
Grab a Free SSL for your website.  WordPress Optimized Solution.