Question

unable to connect

Hi everyone,

I configured my server yesterday, and today I got “Unable to connect” message. I followed the one click WordPress install tutorial.

I got this message:

Firefox can’t establish a connection to the server at 128.199.207.182.

    The site could be temporarily unavailable or too busy. Try again in a few moments.
    If you are unable to load any pages, check your computer’s network connection.
    If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.

So I performed:

1). Apache’s error.log, and got this message:

root@wordpress-1gb-sgp1-01:~# tail -50 /var/log/apache2/error.log
[Sat Dec 09 14:34:33.070859 2017] [mpm_prefork:notice] [pid 1738] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Sat Dec 09 14:34:33.071034 2017] [core:notice] [pid 1738] AH00094: Command line: '/usr/sbin/apache2'

2). System Logs, and got this message:

root@wordpress-1gb-sgp1-01:~# tail -50 /var/log/systemlog
tail: cannot open '/var/log/systemlog' for reading: No such file or directory

3). PHP Logs, and got this message:

root@wordpress-1gb-sgp1-01:~# tail -50 /var/log/php*.log
tail: cannot open '/var/log/php*.log' for reading: No such file or directory
  1. I run top as well and got this:
top - 18:27:53 up 1 day,  3:53,  1 user,  load average: 0.00, 0.00, 0.00
Tasks: 122 total,   1 running, 121 sleeping,   0 stopped,   0 zombie
%Cpu(s):  1.3 us,  0.0 sy,  0.0 ni, 98.7 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem :  1016120 total,    86592 free,   424684 used,   504844 buff/cache
KiB Swap:        0 total,        0 free,        0 used.   337480 avail Mem 
  PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND     
 1751 root      20   0  519448  18512   5364 S  1.7  1.8   1:55.78 fail2ban-se+
  599 root      20   0   28356   2656   2320 S  0.3  0.3   0:08.07 systemd-jou+
 1596 mysql     20   0 1118060 184976  10420 S  0.3 18.2   2:17.56 mysqld      
29070 root      20   0   95400   6924   5988 S  0.3  0.7   0:00.11 sshd        
29151 root      20   0   40496   3736   3164 R  0.3  0.4   0:00.10 top         
    1 root      20   0   37696   5112   3352 S  0.0  0.5   0:08.11 systemd     
    2 root      20   0       0      0      0 S  0.0  0.0   0:00.01 kthreadd    
    3 root      20   0       0      0      0 S  0.0  0.0   0:01.21 ksoftirqd/0 
    5 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 kworker/0:0H
    7 root      20   0       0      0      0 R  0.0  0.0   0:24.78 rcu_sched   
    8 root      20   0       0      0      0 S  0.0  0.0   0:00.00 rcu_bh      
    9 root      rt   0       0      0      0 S  0.0  0.0   0:00.00 migration/0 
   10 root      rt   0       0      0      0 S  0.0  0.0   0:01.09 watchdog/0  
   11 root      20   0       0      0      0 S  0.0  0.0   0:00.00 kdevtmpfs   
   12 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 netns       
   13 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 perf        
   14 root      20   0       0      0      0 S  0.0  0.0   0:00.46 khungtaskd  

What can I do now?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

From what I can see Apache is not running. You should try to start it with:

systemctl start apache2

I could suggest following the steps here on how to gather more useful information in order to be able to further troubleshoot the problem:

https://www.digitalocean.com/community/questions/how-to-troubleshoot-common-apache-issues-on-linux-server

Regards, Bobby