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