setup Phpmyadmin on Centos 6.4

Now install phpMyAdmin
# yum install phpmyadmin -y
Configure phpMyAdmin
Edit the phpmyadmin.conf file.
# vi /etc/httpd/conf.d/phpMyAdmin.conf
Find and comment the whole /<Directory> section as shown below:
[...]
Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin

#<Directory /usr/share/phpMyAdmin/>
#   <IfModule mod_authz_core.c>
#     # Apache 2.4
#     Require local
#   </IfModule>
#   <IfModule !mod_authz_core.c>
#     # Apache 2.2
#     Order Deny,Allow
#     Deny from All
#     Allow from 127.0.0.1
#     Allow from ::1
#   </IfModule>
#</Directory>
[...]
Open “config.inc.php” file and change from “cookie” to “http” to change the authentication in phpMyAdmin:
# 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.
[...] 
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'http';
[...]
Restart the Apache service:
# service httpd restart
Now you can access the phpmyadmin console by navigating to http://server-ip-address/phpmyadmin/ from your browser.
Enter your MySQL username and password which you have given in previous steps. In my case its “root” and “centos”.
Now you will be redirected to the phpmyadmin dashboard.page as shown below.
Now you will able to manage your MariaDB databases from phpMyAdmin web interface.

Copyright : http://ask.unixmen.com/

Post a Comment for "setup Phpmyadmin on Centos 6.4"