By aikor
I followed all instructions step by step: https://www.digitalocean.com/community/tutorials/how-to-install-configure-pgadmin4-server-mode-ru
And after all, I have an error “You don’t have permission to access this resource.”.
I can successfully create any host and all works fine but I can’t understand why I don’t have permissions for pgAdmin4. There may be something missing in the instructions… Please help me with this issue.
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!
Hi @aikor,
Can you check in your Apache Error Log, it should state the reason behind the 403 error code?
You should be able to find where your error_log is located from the vhost configuration of pgadmin4 sudo nano /etc/apache2/sites-available/pgadmin4.conf
Hi @aikor,
I went over the tutorial and can I ask you what ownership did you use, was it www-data or something else? These ownerships are used for your files and directories you need to create:
sudo mkdir -p /var/lib/pgadmin4/sessions
sudo mkdir /var/lib/pgadmin4/storage
sudo mkdir /var/log/pgadmin4
sudo chown -R sammy:sammy /var/lib/pgadmin4
sudo chown -R sammy:sammy /var/log/pgadmin4
Regards, KFSys
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.