/ phppgadmin Forbidden You do not have permissions / phppgadmin / on this server

I recently upgraded my server from Debian Wheezy to Debian Jessie (Debian 8). A lot of packages have been updated, and now I do not have permission to access phppgadmin from http: // myIP / phppgadmin

Forbidden You don't have permission to access /phppgadmin/ on this server. 

I try to think a lot to solve the problem, but absolutely nothing works ...

In / 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 

In / etc / apache2 / sites-enabled / 000-default.conf I add:

  <Directory /usr/share/phppgadmin/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all </Directory> 

I am trying to change the permissions of / usr / share / phppgadmin /, / var / www ...

And I have the same message even if I remove the phpgpadmin package!

 apt-get remove phppgadmin 

Thank you for help...

+6
source share
2 answers

On Debian 8, apache2 configurations are now located in /etc/apache2/conf-available and are soft-bound from /etc/apache2/conf-enabled when they are enabled as virtual hosts or modules.

The phppgadmin package in its latest version comes with a predefined configuration file:
/etc/apache2/conf-available/phppgadmin.conf

This configuration should be activated by default, but otherwise it can be activated using a2enconf phppgadmin

Your previous configuration /etc/apache2/conf.d/phppgadmin should be removed, as well as the specified addition in /etc/apache2/sites-enabled/000-default.conf .

Then edit phppgadmin.conf and remove the Require local directive, which you don't want if you had Allow from all before.

+13
source

you can easily solve this problem by replacing the Require local directive with Allow everything in the configuration file /etc/apache2/conf-available/phppgadmin.conf

0
source

Source: https://habr.com/ru/post/986303/


All Articles