K
K
Ken Jee2016-09-05 10:18:09
PostgreSQL
Ken Jee, 2016-09-05 10:18:09

How to set up phpPgAdmin on Centos 7?

After installing PostgreSQL 9.5 on CentOS 7 (VDS, Ru-Center) ( instructions for installing tecadmin.net/install-postgresql-on-centos-rhel-and... ) and installing phpPgAdmin ( instructions for installing tecadmin.net/how- to-install-phppgadmin-on-centos-u... ) an error is displayed (I request a URL like http:// xxxx /phpPgAdmin ):

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

Here is the content of the /etc/httpd/conf.d/phpPgAdmin.conf file :
#
# This configuration file maps the phpPgAdmin directory into the URL space. 
# By default this application is only accessible from the local host.
#

Alias /phpPgAdmin /usr/share/phpPgAdmin

<Directory /usr/share/phpPgAdmin>
   order deny,allow
   deny from all
   allow from X.X.X.X #вместо X.X.X.X IP-адрес сервера
</Directory>

I also changed the owner and group to www-root:www-root for /usr/share/phpPgAdmin and all its contents. All directories have permissions 755 and files 644.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Aitkulov, 2016-09-05
@Scarfase1989

here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question