Websites not loading but server and Cpanel up

mag2grid

Registered
Feb 28, 2020
4
0
1
UK
cPanel Access Level
Root Administrator
Good evening,
I am looking for some assistance if possible.

I have a Centos 7.9 server that hosts two websites.

Since this morning the websites are not being displayed, I can access the server via cpanel, putty and ftp.

I have restarted HTTP Server (Apache) and even rebooted the server.

When navigating to the sites all I get is: This site can’t be reached - website unexpectedly closed the connection.

Any help would be appreciated.
 

mag2grid

Registered
Feb 28, 2020
4
0
1
UK
cPanel Access Level
Root Administrator
Hey there! I'm sorry to hear about this issue with the sites. Can you post the output of the following command?

Code:
apachectl status
That would show us what Apache is doing on the machine and get us more details.
Thanks for getting back to me:

apachectl status
Apache Server Status for localhost (via ::1)

Server Version: Apache/2.4.46 (cPanel) OpenSSL/1.1.1j mod_bwlimited/1.4

Server MPM: prefork

Server Built: Feb 23 2021 20:21:11

--------------------------------------------------------------------------

Current Time: Monday, 01-Mar-2021 20:06:31 GMT

Restart Time: Monday, 01-Mar-2021 19:43:51 GMT

Parent Server Config. Generation: 1

Parent Server MPM Generation: 0

Server uptime: 22 minutes 39 seconds

Server load: 0.02 0.02 0.05

Total accesses: 25 - Total Traffic: 62 kB - Total Duration: 33

CPU Usage: u.04 s.04 cu0 cs0 - .00589% CPU load

.0184 requests/sec - 46 B/second - 2539 B/request - 1.32 ms/request

1 requests currently being processed, 4 idle workers

W____...........................................................
................................................................
......................

Scoreboard Key:
"_" Waiting for Connection, "S" Starting up, "R" Reading Request,
"W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
"C" Closing connection, "L" Logging, "G" Gracefully finishing,
"I" Idle cleanup of worker, "." Open slot with no current process
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
4,399
553
273
cPanel Access Level
Root Administrator
Thanks for those details - that shows that Apache is up and running at least, so that's a good sign.

Can you connect to port 80 on the system? You can try running this command from your local computer to connect to the server and see if that port is open:

Code:
telnet x.x.x.x 80
Just replace the "x.x.x.x" with your server's IP address, and you may have to install telnet if your local machine doesn't have it.
 

mag2grid

Registered
Feb 28, 2020
4
0
1
UK
cPanel Access Level
Root Administrator
Thanks for those details - that shows that Apache is up and running at least, so that's a good sign.

Can you connect to port 80 on the system? You can try running this command from your local computer to connect to the server and see if that port is open:

Code:
telnet x.x.x.x 80
Just replace the "x.x.x.x" with your server's IP address, and you may have to install telnet if your local machine doesn't have it.
Good morning,

ran a telnet and got:

"Connecting To IPaddress ...Could not open connection to the host, on port 80: Connect failed"

I have looked at the ports on the firewall.


80tcp4/6-8006root/usr/sbin/httpd -k start/usr/sbin/httpd
80tcp4/6-8010nobody/usr/sbin/httpd -k start/usr/sbin/httpd
80tcp4/6-8011nobody/usr/sbin/httpd -k start/usr/sbin/httpd
80tcp4/6-8012nobody/usr/sbin/httpd -k start/usr/sbin/httpd
80tcp4/6-8013nobody/usr/sbin/httpd -k start/usr/sbin/httpd
80tcp4/6-8014nobody/usr/sbin/httpd -k start/usr/sbin/httpd
80tcp4/6-24293nobody/usr/sbin/httpd -k start/usr/sbin/httpd
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
4,399
553
273
cPanel Access Level
Root Administrator
Thanks for the additional details. It sounds like there could be a higher level firewall at your host that you may need the ports opened. You'll want to make sure all the following ports are opened both on the server and on any external firewall tools that may be present: