Home > Database > Mysql Tutorial > body text

Simple steps to install phpMyAdmin on centos 6.3

伊谢尔伦
Release: 2016-11-29 11:27:13
Original
1220 people have browsed it

First, we make our CentOS system's RPMForge software repository phpMyAdmin, which is not the official CentOS 6.0 repository, import rpmforge's GPG key:

rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
Copy after login

x86_64 System installation command:

yum install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
Copy after login

i386 System installation command:

yum install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
Copy after login

Now you can Install phpMyAdmin as follows:

yum install phpmyadmin
Now, we configure phpMyAdmin. Change the configuration of Apache so that phpMyAdmin connects and comment out lines 3-8:

vi /etc/httpd/conf.d/phpmyadmin.conf
#
# Web application to manage MySQL#
#
# Order Deny,Allow
# Deny from all
# Allow from 127.0.0.1
#
Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin
Copy after login

Next, we change the authentication in phpMyAdmin and change 'cookie' to 'HTTP':

vi /usr/share/phpmyadmin/config.inc.php
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'http';
Copy after login

Restart Apache:

/etc/init.d/httpd restart
Copy after login

After that, you can manage the database by visiting phpMyAdmin http://42.168.0.100/phpmyadmin/.


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template