gpt4 book ai didi

postgresql -/phppgadmin Forbidden 您没有权限访问此服务器上的/phppgadmin/

转载 作者:行者123 更新时间:2023-11-29 11:22:54 24 4
gpt4 key购买 nike

我最近将我的服务器从 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

非常感谢您的帮助...

最佳答案

在 Debian 8 中,apache2 配置现在位于 /etc/apache2/conf-available 中,启用时从 /etc/apache2/conf-enabled 进行软链接(soft link),就像虚拟主机或模块一样。

最新版本的 phppgadmin 包带有一个预定义的配置文件:
/etc/apache2/conf-available/phppgadmin.conf

这个配置应该默认激活,否则可以用a2enconf phppgadmin激活

你的旧配置 /etc/apache2/conf.d/phppgadmin 应该被删除,以及 /etc/apache2/sites-enabled/000-default.conf 中提到的添加

然后编辑 phppgadmin.conf 并删除您不需要的 Require local 指令,如果您之前有 Allow from all

关于postgresql -/phppgadmin Forbidden 您没有权限访问此服务器上的/phppgadmin/,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29970054/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com