2013年9月29日 星期日

#2003-伺服器並無回應phpmyadmin install on centOS 5.5

phpMyAdmin Trouble Shooting!
#yum install mysql-server mysql php-mysql php-mbstring libmcrypt php-mcrypt
#wget http://sourceforge.net/projects/phpmyadmin/files%2FphpMyAdmin%2F2.11.11%2FphpMyAdmin-2.11.11-all-languages.tar.gz
#tar zxvf phpMyAdmin-2.11.11-all-languages.tar.gz -C /var/www/html/
# cd /var/www/html/
#mv phpMyAdmin-2.11.11-all-languages phpMyAdmin
# cd phpMyAdmin/
#chkconfig mysqld on
#service mysqld start
#mysqladmin -u root password 你的密碼
#cp ./config.sample.inc.php ./config.inc.php
#vi ./config.inc.php$cfg['Servers'][$i]['auth_type'] = 'http'; $cfg['Servers'][$i]['host'] = 'example.com.tw';
#/etc/rc.d/init.d/httpd start
#vi /etc/httpd/conf/httpd.conf391 DirectoryIndex index.html index.html.var index.php
#chmod o-w config.inc.php
#mysql -u root -p < /var/www/html/phpMyAdmin/scripts/create_tables_mysql_4_1_2+.sql
#/etc/rc.d/init.d/httpd start

$cfg['Servers'][$i]['auth_type'] = 'http' ====>執行結果



$cfg['Servers'][$i]['auth_type'] = 'cookie' ====>執行結果




解決方案:
問題在:
config.inc.php
$cfg['Servers'][$i]['auth_type'] = 'http';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'socket';







沒有留言:

張貼留言