我最近在ubuntu服务器10.04上安装了phpmyadmin
sudo apt-get install phpmyadmin安装进行得很好,一切正常,包括phpmyadmin。然后我重新启动了服务器,现在apache2启动了,但是当我导航到
http://192.168.1.72/phpmyadmin/我收到了403个错误。我在/etc/apahe2 2/apache2.conf文件中包含了/etc/phpmyadmin/apache.conf文件。
/etc/phpmyadmin/apache.conf
# phpMyAdmin default Apache configuration
Alias /phpmyadmin /usr/share/phpmyadmin
<Directory /usr/share/phpmyadmin>
Options FollowSymLinks
DirectoryIndex index.php
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_value include_path .
</IfModule>
</Directory>
# Authorize for setup
<Directory /usr/share/phpmyadmin/setup>
<IfModule mod_authn_file.c>
AuthType Basic
AuthName "phpMyAdmin Setup"
AuthUserFile /etc/phpmyadmin/htpasswd.setup
</IfModule>
Require valid-user
</Directory>
#Disallow web access to directories that don't need it
<Directory /usr/share/phpmyadmin/libraries>
Order Deny,Allow
Deny from All
</Directory>
<Directory /usr/share/phpmyadmin/setup/lib>
Order Deny,Allow
Deny from All
</Directory>自安装phpmyadmin以来所做的唯一更改就是安装了timetrex。是否存在手动启动phpmyadmin的问题,或者一旦apache启动,它是否已经开始工作了?
发布于 2012-06-08 09:29:40
我已经解决了我的问题。我漏掉了
order deny,allow
#deny from all
allow from all来自/etc/phpmyadmin/apache.conf。
我从超级用户的一个问题中找到了解决这个问题的方法:
https://askubuntu.com/questions/143185
复制相似问题