Phpmyadmin不工作

Phpmyadmin不工作

我最近使用以下方法将 phpmyadmin 安装在 ubuntu server 10.04 上

sudo apt-get install phpmyadmin

安装顺利,一切正常,包括 phpmyadmin。然后我重新启动了服务器,现在 apache2 启动了,但是当我导航到

http://192.168.1.72/phpmyadmin/

我收到 403 错误。我已将 /etc/phpmyadmin/apache.conf 文件包含在 /etc/apahe2/apache2.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 启动它就应该可以工作了?

答案1

我已经能够解决我的问题。我遗漏了

order deny,allow
#deny from all
allow from all

/etc/phpmyadmin/apache.conf

我从一个超级用户问题中找到了这个问题的解决方案:

相关内容