CentOS下载配置phpMyAdmin

1. 下载和加压文件到/var/www/,并重命名文件夹为/var/www/phpmyadmin/

cd /var/www/
wget http://www.***.com/phpmyadmin.zip
unzip -q phpmyadmin.zip /var/www/

2. 在apache配置文件增加虚拟目录“phpmyadmin”

cd /etc/httpd/conf.d/
touch phpmyadmin.conf
vi /etc/httpd/conf.d/phpmyadmin.conf

在文件中加入这一行

Alias /phpmyadmin /var/www/phpmyadminOptions ExecCGI
AllowOverride None
Order allow,deny
Allow from all

3. 重新启动Apache服务

service httpd restart


3