我最近将我的服务器从 Debian Wheezy 升级到 Debian Jessie (Debian 8)。更新了很多包,现在我无权从http://myIP/phppgadmin 访问 phppgadmin
Forbidden
You don't have permission to access /phppgadmin/ on this server.
我尝试了很多想法来解决问题,但绝对没有任何效果......
在 /etc/apache2/conf.d/phppgadmin 中:
Alias /phppgadmin /usr/share/phppgadmin
<Directory /usr/share/phppgadmin>
DirectoryIndex index.php
AllowOverride None
order allow,deny
# deny from all
allow from 127.0.0.0/255.0.0.0 ::1/128
allow from all
在 /etc/apache2/sites-enabled/000-default.conf 我添加:
<Directory /usr/share/phppgadmin/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
我尝试更改/usr/share/phppgadmin/、/var/www 的权限...
即使我卸载了 phpgpadmin 软件包,我也会收到同样的信息!
apt-get remove phppgadmin
非常感谢您的帮助...