MilesWeb
MilesWeb Hosting Forum

Please login or register.

Login with username, password and session length

 

News:

SMF - Just Installed!


Author Topic: How to install LAMP on plane centos/RHEL server?  (Read 3268 times)

0 Members and 1 Guest are viewing this topic.

Offline Dipak Bhoi

  • MilesWeb Team Member
  • Full Member
  • ***
  • Posts: 208
  • Karma: +5/-0
    • View Profile
    • MilesWeb Internet Services
How to install LAMP on plane centos/RHEL server?
« 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 !! :) :)
MilesWeb.com
cPanel Hosting in India - cPanel Hosting in India.

Grab an SSL for your website and SAVE 20% now. Coupon Code SSLSAVE20.

MilesWeb Hosting Forum

How to install LAMP on plane centos/RHEL server?
« on: May 04, 2015, 04:00:23 PM »