Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I have a droplet serving five websites using Nginx reverse proxy. Everything is working fine, however after installing PhpMyAdmin I’m getting a 404 Not Found error. (http://mysite.com/phpmyadmin)
My nginx error log looks like this:
root@lamp-tor1-01:/usr/share# tail -f /var/log/nginx/error.log
2020/05/09 14:20:33 [error] 32547#32547: *57 directory index of “/var/www/” is forbidden, client: 198.84.238.174, server: 165.227.46.52, request: “GET / HTTP/1.1”, host: “165.227.46.52” 165.227.46.52, request: “GET /phpmyadmin HTTP/1.1”, host: “165.227.46.52” 2020/05/09 14:44:34 [error] 32547#32547: *124 open() “/usr/share/phpMyAdmin” failed (2: No such file or directory), client: 198.84.238.174, server: 165.227.46.52, request: “GET /phpmyadmin HTTP/1.1”, host: “165.227.46.52” 2020/05/09 14:46:37 [error] 32547#32547: *129 open() “/usr/share/phpMyAdmin”
My /etc/nginx/sites-available/default Server Block is as follows:
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www;
index index.php index.html index.htm index.nginx-debian.html;
server_name 165.227.46.52;
location / {
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
location ~ /\.ht {
deny all;
}
}
My symbolic link looks like this:
lrwxrwxrwx 1 root root 21 May 9 15:01 phpmyadmin -> /usr/share/phpmyadmin
–
All of my sites are working fine with their domains, however if I try and access my ip i get a 403 forbidden error. Maybe this is related, I don’t know.
I know that this is not a new topic, but I have gone through all examples on this message board, and I’m unable to fix it. I have reset my symbolic link, and I have tried a few different configurations of my default server block. I also contacted customer support, but they are responding every 4 days now, and they just give me a link to a tutorial on how to install PhpMyAdmin, which I’ve obviously tried a few times. Any help would be appreciated.
Thanks!
Georgy Nepotachev
004d858977ad4c85bea111ad25fe8c
George Chanturidze
SwimmingTealEel
LEMP_newb
clayrain
Prabhupad
c4d4ee9a3201418b9612e07f964253
jmzeph
ashokvde59
testrunner666
tylerrutt17