Install PHPmyadmin on Centos 6.3

How to install PHPmyadmin on Centos 6.3

PHPMyAdmin used to handle mysql via HTTP.

Install phpmyadmin by yum on CentOS.

[root@Centos6 ~]# yum install phpmyadmin
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.vonline.vn
* extras: mirrors.vonline.vn
* rpmforge: mirror-fpt-telecom.fpt.net
* updates: mirrors.vonline.vn
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package phpmyadmin.noarch 0:2.11.11.3-2.el6.rf will be installed
–> Processing Dependency: php-mysql >= 4.1.0 for package: phpmyadmin-2.11.11.3-2.el6.rf.noarch
–> Processing Dependency: php-mbstring >= 4.1.0 for package: phpmyadmin-2.11.11.3-2.el6.rf.noarch
–> Running transaction check
—> Package php-mbstring.i686 0:5.3.3-14.el6_3 will be installed
—> Package php-mysql.i686 0:5.3.3-14.el6_3 will be installed
–> Processing Dependency: php-pdo for package: php-mysql-5.3.3-14.el6_3.i686
–> Running transaction check
—> Package php-pdo.i686 0:5.3.3-14.el6_3 will be installed
–> Finished Dependency ResolutionDependencies Resolved=====================================================================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================================================================
Installing:
phpmyadmin noarch 2.11.11.3-2.el6.rf rpmforge 2.7 M
Installing for dependencies:
php-mbstring i686 5.3.3-14.el6_3 updates 453 k
php-mysql i686 5.3.3-14.el6_3 updates 77 k
php-pdo i686 5.3.3-14.el6_3 updates 72 kTransaction Summary
=====================================================================================================================================================================================================
Install 4 Package(s)Total download size: 3.2 M
Installed size: 15 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): php-mbstring-5.3.3-14.el6_3.i686.rpm | 453 kB 00:01
(2/4): php-mysql-5.3.3-14.el6_3.i686.rpm | 77 kB 00:00
(3/4): php-pdo-5.3.3-14.el6_3.i686.rpm | 72 kB 00:00
(4/4): phpmyadmin-2.11.11.3-2.el6.rf.noarch.rpm | 2.7 MB 00:15
—————————————————————————————————————————————————————————————————–
Total 176 kB/s | 3.2 MB 00:18
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : php-mbstring-5.3.3-14.el6_3.i686 1/4
Installing : php-pdo-5.3.3-14.el6_3.i686 2/4
Installing : php-mysql-5.3.3-14.el6_3.i686 3/4
Installing : phpmyadmin-2.11.11.3-2.el6.rf.noarch 4/4
Verifying : php-pdo-5.3.3-14.el6_3.i686 1/4
Verifying : php-mysql-5.3.3-14.el6_3.i686 2/4
Verifying : php-mbstring-5.3.3-14.el6_3.i686 3/4
Verifying : phpmyadmin-2.11.11.3-2.el6.rf.noarch 4/4Installed:
phpmyadmin.noarch 0:2.11.11.3-2.el6.rf

Dependency Installed:
php-mbstring.i686 0:5.3.3-14.el6_3 php-mysql.i686 0:5.3.3-14.el6_3 php-pdo.i686 0:5.3.3-14.el6_3

Complete!
[root@Centos6 ~]#

Restart httpd service.

[root@Centos6 html]# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: httpd: apr_sockaddr_info_get() failed for Centos6.3
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
[ OK ]

Allow Firewall to access port 80 (phpmyadmin)

iptables -I INPUT 1 -p tcp -m tcp –dport 80 -m state –state NEW,ESTABLISHED -j ACCEPT
iptables -I INPUT 1 -p tcp -m tcp –dport 443 -m state –state NEW,ESTABLISHED -j ACCEPT
iptables -I INPUT 1 -m state –state RELATED,ESTABLISHED -j ACCEPT

Now you can access to phpmyadmin: http://x.x.x.x/phpmyadmin/

That’s all. Thanks for using IThelpblog.com

Tags:  

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>