LEMP stack - phpMyAdmin 404

June 23, 2018 371 views
Nginx Ubuntu 16.04


I have installed and configured phpMyAdmin on my new Server running Ubuntu Server 16.04, using the LEMP Stack - I have done the exact same a few days ago on a different node and that's working fine, I seem to be getting a 404 when navigating to:

My NGINX sites-enabled default file is below:

server {

    root /var/www/html;
    index index.php index.html index.htm index.nginx-debian.html;

    server_name cracknell.blacklabelhost.com;

    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;

    listen [::]:443 ssl ipv6only=on; # managed by Certbot
    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/cracknell.blacklabelhost.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/cracknell.blacklabelhost.com/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

server {
    if ($host = cracknell.blacklabelhost.com) {
        return 301 https://$host$request_uri;
    } # managed by Certbot

    listen 80 default_server;
    listen [::]:80 default_server;

    server_name cracknell.blacklabelhost.com;
    return 404; # managed by Certbot


I have removed all symlinks as far as I can see as I've tried a few but got confused haha.

Kind regards,


Be the first one to answer this question.