I've been trying to install phppgadmin on a virtual server. The server runs Ubuntu 16.04. I've followed this tutorial exactly as instructed, but I get a 404 error.
After a lot of googling I noticed there was no phppgadmin directory in my /var/www/html/ directory which I thought was odd. I used this command
ln -s /usr/share/phppgadmin /var/www/html/phppgadmin
to link directories.
I now get a 403 Forbidden error when I go to http://server_IP/phppgadmin. So while I haven't solved my problem I think I'm getting closer, but I still can't figure out why I don't have access. I've gone over the tutorial a million times and made sure I didn't miss anything.
Per Spas's request here are the contents of phppgadmin.conf: (I tried the command you suggested and I'm still getting 403)
Alias /phppgadmin /usr/share/phppgadmin
<Directory /usr/share/phppgadmin>
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
AllowOverride None
# Only allow connections from localhost:
allow from all
<IfModule mod_php.c>
php_flag magic_quotes_gpc Off
php_flag track_vars On
#php_value include_path .
</IfModule>
<IfModule !mod_php.c>
<IfModule mod_actions.c>
<IfModule mod_cgi.c>
AddType application/x-httpd-php .php
Action application/x-httpd-php /cgi-bin/php
</IfModule>
<IfModule mod_cgid.c>
AddType application/x-httpd-php .php
Action application/x-httpd-php /cgi-bin/php
</IfModule>
</IfModule>
</IfModule>
</Directory>