To install PhpMyadmin, 1st download the latest edition from Sites.
Command which i used for Download under /opt folder.
1) wget http://sourceforge.net/projects/phpmyadmin/files/phpMyAdmin/3.5.2.2/phpMyAdmin-3.5.2.2-english.zip/download
After that Unzip the download file.
2) unzip phpMyAdmin-3.5.2.2-english.zip
Move this folder under your web server setting with name change.
3) mv phpMyAdmin-3.5.2.2-english /var/www/html/phpmyadmin
Now change the group owner permission, make sure same as your web.
4) chown -R apache.apache phpmyadmin/
Change Dir for configuartion.
5) cd /var/www/html/phpmyadmin
Copy the configuration file.
6) cp config.sample.inc.php config.inc.php
Do the following changes under config.inc.php
7) vi config.inc.php
line number 29
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
Change to
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'http';
Save file
Now restart web services.
8) /etc/init.d/httpd restart
Now open Browser and open this url.
http://10.131.11.123/phpmyadmin/
P.S = 10.131.11.123 is my local server where i install phpmyadmin.
Now its pop-up for login username/password.
Enter your Database credential for login.
Imporatnat point need to note:-
1) check your Iptabels. (no firewall)
2) Selinux should be disabled.
0 comments:
Post a Comment