I have been trying to install the LEMP stack on Linux Mint following these instructions: https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-in-ubuntu-16-04

However, when I tried to load as the final step, I got

This site can’t be reached took too long to respond.
Checking the connection
Checking the proxy and the firewall

Everything seemed to be working fine before that.

The content of the /etc/nginx/sites-available/default file:

# Default server configuration
server {
    listen 80 default_server;
    listen [::]:80 default_server;
    root /var/www/html;

    location / {
        try_files $uri $uri/ =404;

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;

    location ~ /\.ht {
        deny all;

Any ideas?

1 Answer 1


Check if nginx is the only program listening to port 80. For example if you have apache2 running as well this is possible since both servers listen to the same port and confusion happens. Here is a useful link https://www.cyberciti.biz/faq/find-linux-what-running-on-port-80-command/ Also, depending on the browser you are using when writing the url, play a little with the url, specify the port: or try with the server domain.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .