Unable to set up phppgadmin on server

  • Posted February 11, 2015

I’ve been following the tutorial on:

I’m really new to Linux and I’ve had a few people try and help me out, but still haven’t solved my problem.

I’ve already installed php, postgresql, and apache utilities. However when I attempt to use: sudo htpasswd -c /etc/phpPgAdmin/.htpasswd username

I get htpasswd: cannot create file /etc/phpPgAdmin/.htpasswd

I’ve been working like crazy to try and get this set up. I’m trying to use postgreSQL for a class project and I want to use phpPgadmin to make the whole process of adding and modifying tables much easier than console commands. I’d really appreciate any help! Thanks in advance!


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Does the directory /etc/phpPgAdmin/ already exist? You’ll receive that error if it doesn’t. Try creating it first:

mkdir /etc/phpPgAdmin/

Remember, on Linux directories and filenames are case sensitive.


May be you will be better off installing pgAdmin on your local machine and accessing your server remotely? I faced similar problem recently and made a tutorial (having postgresql installed, you will have to follow it from step 4 of Postgres part)

Sorry for not answering your main question.