- 在phpMyAdmin可以下載相關的程式和資訊
- CentOS中配置方法可參考這篇教學
# yum -y install php-mbstring
# yum --enablerepo=centosplus install php-mcrypt
(若無法順利安裝php-mcrypt套件,可以改用底下方式試試:
# wget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/libmcrypt/libmcrypt-2.5.7.tar.gz
# rpmbuild -ta libmcrypt-2.5.7.tar.gz
# rpm -ivh /usr/src/redhat/RPMS/i386/libmcrypt-2.5.7-1.i386.rpm /usr/src/redhat/RPMS/i386/libmcrypt-devel-2.5.7-1.i386.rpm
# yum --enablerepo=centosplus install php-mcrypt )
※phpmyadmin參數設定:
#cp /var/www/phpmyadmin/config.sample.php /var/www/phpmyadmin/config.inc.php#chmod 660 /var/www/phpmyadmin/config.inc.php
#vi /var/www/phpmyadmin/config.inc.php
$cfg['blowfish_secret'] = '填入任何字串';
#chown -R root.apache /var/www/phpmyadmin/
#vi /etc/httpd/conf.d/phpmyadmin.conf
Alias /phpmyadmin /var/www/phpmyadmin
//此句設定可限制外部網路連接phpmyadmin
< Location /phpmyadmin >
Order deny,allow
Deny from all
Allow from 127.0.0.1
Allow from 192.168.0
< /location >
沒有留言:
張貼留言