Unable to set up phppgadmin on server

February 11, 2015 1.7k views

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!

2 Answers


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.

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.

Have another answer? Share your knowledge.