MilesWeb Hosting Forum

Web Hosting Technical Support => How To's => Topic started by: Dipak Bhoi on May 04, 2015, 04:00:23 PM

Title: How to install LAMP on plane centos/RHEL server?
Post by: Dipak Bhoi on May 04, 2015, 04:00:23 PM
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 !! :) :)