Fedora 11下7步轻松搞定LAMP安装(5)

phpMyAdmin是一个基于WEB的应用程序来管理MySQL数据库。phpMyAdmin安装如下:

yum install phpmyadmin

现在配置phpMyAdmin,我们需要更改Apache配置,用来访问phpMyAdmin应用:

建立配置文件:

vi /etc/httpd/conf.d/phpMyAdmin.conf

将以下代码复制到phpMyAdmin.conf中

Alias /phpMyAdmin /usr/share/phpMyAdmin

Alias /phpmyadmin /usr/share/phpMyAdmin

#

#   order deny,allow

#   deny from all

#   allow from 127.0.0.1

#   allow from ::1

#

# This directory does not require access over HTTP - taken from the original

# phpMyAdmin upstream tarball

#

Order Deny,Allow

Deny from All

Allow from None

# This configuration prevents mod_security at phpMyAdmin directories from

# filtering SQL etc.  This may break your mod_security implementation.

#

#

#

#        SecRuleInheritance Off

#

#

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wyjxpg.html