日期:2014-05-17  浏览次数:20463 次

通过Alias来修改phpMyAdmin的默认访问路径

?

phpMyAdmin的配置文件phpMyAdmin.conf文件位于/etc/httpd/conf.d/目录下,所有位于/etc/httpd/conf.d/目录中的配置文件都是httpd的子配置文件,任何一个子配置文件的语法错误都可能导致httpd启动失败。

?

[root@fedora?log]#?httpd?-t????//该命令可用于检查与httpd相关的配置文件的语法是否正确

?

phpMyAdminweb访问方式:

phpMyAdmin.conf中的Alias行决定了phpMyAdminweb访问路径:

[root@fedora?log]#?cat?/etc/httpd/conf.d/phpMyAdmin.conf

#?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