Unable to set up phppgadmin on server

  • Posted on February 11, 2015
  • DarkDrethAsked by DarkDreth

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

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.