How to install phpMyadmin from tar.gz

Posted by Md. Mahidul Hasan on 1:07 AM with No comments
How to install phpMyadmin from tar.gz   

Install Dependency(php and mysql):
[root@nccsc ~]# yum install -y php* mysql-server
[root@nccsc ~]# wget ftp://mirror.switch.ch/pool/1/mirror/scientificlinux/6.4/x86_64/os/Packages/php-mbstring-5.3.3-22.el6.x86_64.rpm
[root@nccsc ~]# rpm -ivh php-mbstring-5.3.3-22.el6.x86_64.rpm

Install phpMyAdmin:
First download the latest tar from http://www.phpmyadmin.net/home_page/downloads.php.
[root@nccsc ~]# wget http://garr.dl.sourceforge.net/project/phpmyadmin/phpMyAdmin/4.1.4/phpMyAdmin-4.1.4-all-languages.tar.gz
[root@nccsc ~]# tar -zxvf phpMyAdmin-4.1.4-all-languages.tar.gz
[root@nccsc ~]# mv phpMyAdmin-4.1.4-all-languages /var/www/html/phpmyadmin
[root@nccsc ~]# chmod 755 -R /var/www/html/phpmyadmin/
[root@nccsc ~]# service httpd restart

Checking logs for error detection:
[root@nccsc ~]# tail -f /var/log/httpd/error_log

Lets check from a browser and login with your mysql database username and password.
http://your_ip_address/phpmyadmin

Troubleshooting:
PHP Fatal error:  Call to undefined function mb_detect_encoding() in /var/www/html/phpmyadmin/libraries/php-gettext/gettext.inc on line 177

Solution: you need the "php-mbstring" packages. Here my redhat php system is rhel6 5.3.3-22. thats why I have download the php-mbstring-5.3.3-22.el6.x86_64.rpm packages at first.