Install phpMyAdmin on Server CentOS 5.5
Install repository from rpmforge to server
# cd /tmp
On Centos x86 (i386)
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
# rpm -Uvh rpmforge-release-0.5.1-1.el5.rf.i386.rpm
On Centos x64 (x86_64)
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpmCommand to view version of CentOS is x86 (32bit) or x86_64 (64bit)
# rpm -Uvh rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
# uname -i
Install phpMyAdmin
# yum -y install phpmyadminedit file phpmyadmin.conf
# vi /etc/httpd/conf.d/phpmyadmin.confdelete the other settings and leave only the following:
Alias /phpmyadmin /usr/share/phpmyadminsave (press key "Esc" and then type ":wq")
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin
edit file config.inc.php
# vi /usr/share/phpmyadmin/config.inc.phpfind the following line
$cfg['Servers'][$i]['auth_type'] = 'cookie';and replace 'cookie' with 'http'
Restart Apache
# service httpd restart
go to http://ServerIPaddress/phpmyadmin and you'll find a page like this after login with user and password mysqladmin which was created when installing MySQL.
No comments:
Post a Comment