PHPPgAdmin not working in Ubuntu 14.04
Solution 1
Try this
sudo cp /etc/apache2/conf.d/phppgadmin /etc/apache2/conf-enabled/phppgadmin.conf
sudo /etc/init.d/apache2 restart
Solution 2
You actually want to copy it to conf-available then use a2enconf to enable it:
sudo mv /etc/apache2/conf.d/phppgadmin /etc/apache2/conf-available/phppgadmin.conf
sudo a2enconf phppgadmin
sudo service apache2 reload
Then if you like things tidy
sudo rmdir /etc/apache2/conf.d/phppgadmin
Solution 3
I installed phpPgAmin on ubuntu server and I get 404 error it was simple just create a link to phpPagAdmin folder to webserver's home folder:
ln -s /usr/share/phppgadmin /var/www/html/phppgadmin
Related videos on Youtube
Adam
I am a computer science student and a prime number theory hobbyist. I have invented a new prime sieve algorithm based on my findings and am working with a team of fellow students to isolate the patterns in the primes so that they may be found directly. I am also involved in a project I am calling CurriConnect, which focuses on bringing the best of recent web technologies to the table for teacher collaboration on curriculum plan creation and evaluation. Other projects I am working on include a simple flash card program that uses an FFT and autocorrelation to estimate pitch and teach music sight reading, a toy game based on the 2d space shooter genre, and anything else I feel like coding at the moment. I plan to work in a research capacity, though I am open to anything I can become obsessed with and enjoy. In the mean time, I am making an honest attempt to truly and completely crack the prime numbers wide open. You will likely hear about this within the next year or two.
Updated on September 18, 2022Comments
-
Adam almost 2 years
After a fresh install of Ubuntu 14.04, I've installed postgresql and phppgadmin from the Ubuntu repos. I am using the Apache2 webserver. PHP is working fine in the webserver, as is PHPMyAdmin, but PHPPgAdmin is not working. When I try to access it at localhost/phppgadmin, I get a 404 message. I've tried creating a symlink in /var/www to the phppgadmin content, but that doesn't seem to work.
How do I fix this?
EDIT: note that I am using a local proxy server (squid) through which I funnel all my online traffic. While this may be part of the problem, I would be surprised if it was, because I am still on the same machine as phppgadmin and the requests logged in the apache access log indicate that incoming requests for the page are coming from the local machine (which is allowed in the policies for phppgadmin, if I understand things correctly).
-
Admin about 10 yearsYes, this works. However this appears to be a problem with the package. conf.d is meant to contain any global configurations which the phppgadmin package appears to assume. I think the config would be more appropriately placed in conf-available and allow the user to enable it with a2enconf.
-
-
adosaiguas about 10 yearsYes, that's it, but isn't this a bug? I can't even enable it using a2enconf...
-
jnardiello almost 10 yearsin my case i had to slightly change this to ln -s /usr/share/phppgadmin /var/www/default/phppgadmin
-
Andrea Lazzarotto over 9 yearsIMHO it's cleaner to symlink it:
sudo ln -s /etc/apache2/conf.d/phppgadmin /etc/apache2/conf-enabled/phppgadmin.conf
. All other modules on my box were symlinked. -
N3sh over 8 yearsMy hero! If I find you at a pub or something, I'll offer you a cider. :D