Hestia 1.9.1 - Fix duplicate location "/phpmyadmin"

If Nginx fails to start after updating to the disastrous HestiaCP 1.9.1 and you see the following errors when running: nginx -t

nginx: [emerg] duplicate location "/phpmyadmin" in /etc/nginx/conf.d/phppgadmin.inc:1
nginx: configuration file /etc/nginx/nginx.conf test failed

Remove the Duplicate /phpmyadmin Block. Open the file /etc/nginx/conf.d/phppgadmin.inc in a text editor:
nano /etc/nginx/conf.d/phppgadmin.inc

Locate the location /phpmyadmin { ... } block. Comment it out by adding # before each line, or delete it entirely.

After making changes, test the Nginx configuration: nginx -t

If the test is successful, you should see: nginx: configuration file /etc/nginx/nginx.conf test is successful

Restart Nginx: systemctl restart nginx

What for?
You can simply go to the CP settings
and change the entry point from phpPgAdmin.

1 Like

Oh, I see. The 1.9.1 update changed the alias for phpPgAdmin into phpmyadmin and I didn’t realise that it could be corrected in the settings.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.