Infolinks

Thursday, March 29, 2012

Install phpMyAdmin on Linux --- CentOS , Ubuntu

Here are the Steps for installing phpMyAdmin in Linux Platform...
  1. Get the latest phpMyAdmin Copy from sourceforge by typing on terminal..... wget -c http://sourceforge.net/projects/phpmyadmin/files/phpMyAdmin/3.4.10.1/phpMyAdmin-3.4.10.1-english.tar.gz
  2. Move this to /var/www directory for ubuntu or /var/www/html/ directory for centos by........ mv source_file destination eg. mv phpMyAdmin-3.4.10.1-english.tar.gz /var/www/html/
  3. Now cd to /var/www/html directory and Extract it by typing tar xvfz phpMyAdmin-3.4.10.1-english.tar.gz
  4. Now Move Extracted phpMyAdmin-3.4.10.1-english to phpmyadmin by typing...... mv phpMyAdmin-3.4.10.1-english/ phpmyadmin/
  5. Now cd /var/www/html/phpmyadmin/ directory
  6. Copy configuration file ...... cp config.sample.inc.php config.inc.php
  7. Now vi config.inc.php and change......
  8. $cfg['Servers'][$i]['auth_type']=’cookie’; to $cfg['Servers'][$i]['auth_type']=’http’;
  9. $cfg['Servers'][$i]['nopassword'] = FALSE; to $cfg['Servers'][$i]['nopassword'] = TRUE;
  10. Now Restart Apache Server and access phpmyadmin by typing your local server url .... http://localhost/phpmyadmin/