Why?


Search This Blog

Wednesday, April 1, 2015

Install LAMP on Centos 6.6

Install LAMP on Centos 6.6

LAMP stands for Linux, Apache, MySQL and PHP. Must haves if you are going to do web hosting.

My base install has selinux=disabled, iptables off, eth0 interface setup for static , and ntp working.

login as root

Install epel repo if not already done so

## RHEL/CentOS 6 64-Bit ## 
# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm 
# rpm -ivh epel-release-6-8.noarch.rpm


Install Apache

# yum -y install httpd
# service httpd start
# chkconfig httpd on
# service httpd status

Install PHP

# yum -y install php

Install MySQL

# yum -y install mysql-server mysql
# service mysqld start
# chkconfig mysqld on
# service mysqld status

Now run secure install. Be sure and supply root password if using this through phpMyAdmin

# mysql_secure_installation

The End..

 






No comments:

Post a Comment