Thursday, September 22, 2011

install PhpMyAdmin on Linux (CentOS/fedora)


--Login as a root user or

# su
--Move to your web directory

# cd /var/www/html
--Download the desired PhpMyAdmin package


--Choose either of the command depending on the version you server support. phpMyAdmin-2.11.3 is compatible with PHP 4+ and MySQL 3+ and phpMyAdmin-3.2.4 compatible with PHP 5 and MySQL 5.

# wget -c http://sourceforge.net/projects/phpmyadmin/files/phpMyAdmin/3.4.5/phpMyAdmin-3.4.5-english.tar.gz/download
--Unzip and extract the files
# tar xvfz phpMyAdmin-3.4.5-english.tar.gz
--Rename the extrcted folder to phpmyadmin
# mv phpMyAdmin-3.4.5-english phpmyadm
--Move to the new folder
# cd phpmyadmin

--copy the smaple config and make a new conig file
# cp config.sample.inc.php config.inc.php
--Edit the config.inc.php file

# nano config.inc.php

--Go to the flilowing line and change to ‘http’

………
$cfg['Servers'][$i]['auth_type'] = ‘http’; # default is cookies

……..
To save the edited file press “Ctrl+o” and press “Enter” key

To exit file press “Ctrl+x”
Restart the webserver
# /sbin/service httpd restart

No comments:

Post a Comment