Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ahmeda's avatar

This site can’t be reached Laravel and Digitalocean

I run the app on Digitalocean and simply when I visit the IP the first page is working, but when I go to any other pages the page is reloading then show this message:

This site can’t be reached

XXXXIPXX106 took too long to respond.

I'm sorry but I don't where is the error to check it out, please provide me something to see and get the error and see what happened?

0 likes
9 replies
ahmeda's avatar

@jlrdw I got this error when I run this command:

systemctl status apache2.service


● apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Fri 2020-10-02 08:32:15 UTC; 9s ago
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 47667 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

Oct 02 08:32:14 ip-172-31-20-216 systemd[1]: Starting The Apache HTTP Server...
Oct 02 08:32:15 ip-172-31-20-216 apachectl[47680]: (98)Address already in use: AH00072: make_sock: could no>
Oct 02 08:32:15 ip-172-31-20-216 apachectl[47680]: (98)Address already in use: AH00072: make_sock: could no>
Oct 02 08:32:15 ip-172-31-20-216 apachectl[47680]: no listening sockets available, shutting down
Oct 02 08:32:15 ip-172-31-20-216 apachectl[47680]: AH00015: Unable to open logs
Oct 02 08:32:15 ip-172-31-20-216 apachectl[47667]: Action 'start' failed.
Oct 02 08:32:15 ip-172-31-20-216 apachectl[47667]: The Apache error log may have more information.
Oct 02 08:32:15 ip-172-31-20-216 systemd[1]: apache2.service: Control process exited, code=exited, status=1>
Oct 02 08:32:15 ip-172-31-20-216 systemd[1]: apache2.service: Failed with result 'exit-code'.
Oct 02 08:32:15 ip-172-31-20-216 systemd[1]: Failed to start The Apache HTTP Server.


Sinnbeck's avatar

Seems you are trying to use a port that is already in use. I assume port 80?

Address already in use

ahmeda's avatar

@sinnbeck my nginx config:


server {
    listen 80;
    listen [::]:80;

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

    server_name 18.XXXXX5.172;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

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

    location ~ /\.ht {
            deny all;
    }
}


Sinnbeck's avatar

So you have both apache2 and nginx installed? Choose one, and remove the other :)

Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

Ok. Seems that the server already has apache2 installed

This will remove it.

sudo apt purge apache2
1 like
Sinnbeck's avatar

Good to hear :) And happy to help

1 like

Please or to participate in this conversation.