Setup Apache, MySQL, PHP & PHPMyAdmin on CentOS 6


Command to know list of group install
# yum grouplist
# yum grouplist my*
bla bla bla..

-Install Apache using groupinstall
# yum groupinstall "Web Server"

Start Apache and set it to start on boot:
# service httpd start
# chkconfig httpd on

-Install MySQL server
# yum groupinstall "MySQL Database server"

Start MySQL and set it to start at boot time:
# service mysqld start
# chkconfig mysqld on

Set root’s password to MySQL and get MySQL production-ready:
# /usr/bin/mysql_secure_installation

-Install PHP
# yum install php

-Install phpmyadmin from epel repository
# yum --enablerepo=epel install phpmyadmin

click here how to install epel & rpmforge repository

Edit /etc/httpd/conf.d/phpMyAdmin.conf
# vi /etc/httpd/conf.d/phpMyAdmin.conf

Note: add IP address you permit

-Open port http
# system-config-firewall-tui

Restart httpd service
# service httpd restart

Test:

Related posts:

1 Comment

Leave a Reply

Your email address will not be published. Required fields are marked *