sexta-feira, 27 de junho de 2014

Source

Install Apache:
# yum install httpd -y
 
Start the Apache service and let it to start automatically on every reboot:
# service httpd start
# chkconfig httpd on
 
Install MySQL
# yum install mysql mysql-server -y
 
Start the MySQL service and make to start automatically on every reboot.
# service mysqld start
# chkconfig mysqld on 

Setup MySQL root password
By default, mysql root user doesn’t has password. To secure mysql, we have to setup mysql root user password.
# mysql_secure_installation


Install PHP
# yum install php -y
 
Restart httpd service:
# service httpd restart
# yum install php-mysql -y



Install EPEL (Extra Packages for Enterprise Linux.)
# wget http://epel.mirror.net.in/epel/6/i386/epel-release-6-8.noarch.rpm
# rpm -Uvh epel-release-6-8.noarch.rpm
# yum repolist
 
Now install phpMyAdmin
# yum install phpmyadmin -y 

Edit the phpmyadmin.conf file.
# vi /etc/httpd/conf.d/phpMyAdmin.conf
Find and comment the whole /<Directory> section as shown below:


# cp /usr/share/phpMyAdmin/config.sample.inc.php /usr/share/phpMyAdmin/config.inc.php 
# vi /usr/share/phpMyAdmin/config.inc.php

Change cookie to http.

Restart the Apache service:
# service httpd restart