newest gadget info
 

PhpMyAdmin in centos

Install PhpMyadmin: yum search phpMyAdmin  ; if there is no showing phpMyAdmin packet we must install epel.

phpMyAdmin - Web based MySQL browser written in php
Allows only localhost by default
But allowing phpMyAdmin to anyone other than localhost should be considered
dangerous unless properly secured by SSL
Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin
Directory /usr/share/phpMyAdmin/
  order deny,allow
  #deny from all
  allow from 127.0.0.1
  allow from 192.168.2.0/24
  allow from ::1
/Directory
  • Edit the file ; [root@poseidon home]#
vi /etc/phpMyAdmin/config.inc.php
  • Edit the part of: insert the password
This is needed for cookie based authentication to encrypt password in cookie
/
$cfg['blowfish_secret'] = 'password'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH!
/
  • And the part: change from “http” into “cookie”

$cfg['Servers'][$i]['auth_type'] = ‘cookie’; // Authentication method (( config, http or cookie based)?

  • Share/Bookmark

This entry was posted on Wednesday, March 10th, 2010 at 1:36 am and is filed under anything, programming, technology. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply

 

Switch to our mobile site