CentOS (minimal installation): LAMP configuration

phpMyAdmin is available in http:///phpMyAdmin.

vi /etc/sysconfig/network-scripts/ifcfg-eth0
 
DEVICE="eth0"
HWADDR=specifc mac address
NM_CONTROLLED="no"
ONBOOT="yes"
BOOTPROTO="dhcp"
 
/etc/init.d/network restart
 
yum install vim
 
yum update
 
vim /etc/selinux/config
SELINUX=disabled
 
shutdown -r now
 
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
 
yum install mysql mysql-server mysql-devel httpd php-common php-gd php-mcrypt php-pear php-pecl-memcache php-mysql php-xml php php-mcrypt php-mbstring php-devel gcc pcre-devel
 
chkconfig httpd on
chkconfig mysqld on
 
service httpd start
service mysqld start
 
/usr/bin/mysql_secure_installation
 
vim /etc/sysconfig/iptables
-A INPUT -m state --state NEW -p tcp --dport 80 -j ACCEPT
 
service iptables restart
 
yum install phpmyadmin
vim /etc/httpd/conf.d/phpMyAdmin.conf
Comment all the lines with "Deny from All"
 
vim /etc/httpd/conf/httpd.conf
Change all lines from "AllowOverride None" to "AllowOverride All"
 
service httpd restart
 
# Optional
yum install git

Leave a Reply