The service “httpd” appears to be down?

JoeTaxpayer

Member
Registered
Joined
Sep 6, 2016
Messages
46
Points
0
I received two alerted email with the following content.

http-down.jpg

and

http-down1.jpg

How to check which causes this error and fix it? I am using cPanel and it happened any times.

Thanks
Joe
 

24x7CSM

Well-known member
Registered
Joined
Sep 27, 2016
Messages
263
Points
28
you will have to login with root to ssh , check the error logs for httpd. Looking at the error message it looks like either firewall issue or some other service is running on that port that needs to be investigated though.

I can help you to get this issue fixed.
 

JoeTaxpayer

Member
Registered
Joined
Sep 6, 2016
Messages
46
Points
0
JoeTaxpayer
There are so many errosr in httpd log file when i accessed this log

Code:
/usr/local/cpanel/logs/error_log
This is whole email I got from automated message

Server server.example.com
Primary IP Address xx.xx.xx.xxx
Service Name httpd
Service Status failed â›”
Notification The service httpd” appears to be down.
Service Check Method The system failed to connect to this service's TCP/IP port.
Reason Unable to connect to port 80 on 127.0.0.1: Connection refused: Died
Number of Restart Attempts 1
Startup Log No startup log
Memory Information Used 731 MB
Available 3.03 GB
Installed 3.74 GB

Load Information 0.00 0.03 0.09
Uptime 6 days, 15 hours, 56 minutes, and 46 seconds
IOStat Information avg-cpu: %user %nice %system %iowait %steal %idle 9.66 0.02 2.22 0.02 0.10 87.97 Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn vda 8.42 71.87 174.48 41383524 100469280
Top Processes PID Owner CPU % Memory % Command
23635 root 21.74 0.57 /usr/local/cpanel/3rdparty/bin/perl /usr/local/cpanel/bin/leechprotect
23665 root 19.23 0.34 /usr/local/cpanel/scripts/restartsrv_pureftpd --check --notconfigured-ok
23604 root 2.21 2.47 spamd child
23596 root 1.80 0.87 tailwatchd - chkservd - ftpd check
12215 mysql 1.27 7.07 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/lib/mysql/server.example.com.err --open-files-limit=10000 --pid-file=/var/lib/mysql/server.example.com.pid

The chkservd process attempts to connect to 127.0.0.1:80” in order to validate that this service is functioning. If you blocked connections with iptables or the Host Access Control” interface in WHM, this failure may be a false positive.

To resolve this issue, either open the firewall to allow connections as the root user to 127.0.0.1:80” or disable checks for this service in WHM's Service Manager” interface with the Configure Monitor Settings” link below.
Configure Monitor Settings:
Code:
https://server.example.com:2087/scripts/srvmng#service-chkservd
Configure chkservd:
Code:
https://server.example.com:2087/scripts2/tweaksettings?find=chkservd
Disable HTML notifications:
Code:
https://server.example.com:2087/scripts2/tweaksettings?find=chkservd_plaintext_notify
The system generated this notice on Sunday, December 25, 2016 at 9:27:39 PM UTC.
Service failures (ChkServd)” notifications are currently configured to have an importance of High”. You can change the importance or disable this type of notification in WHM's Contact Manager at:
Code:
https://server.example.com:2087/scripts2/editcontact?event=chkservd
 

JoeTaxpayer

Member
Registered
Joined
Sep 6, 2016
Messages
46
Points
0
Check for error_log Seems like Something blocking the Port 80 connection may be your firewall or IPtables
Which lines you saw this? how to fix?
Sometimes I still was getting this error and it noticed me via emails.

Look at what processes were using the most RAM and CPU during the outage. Start looking at those to determine where to start.
How and where to check processes?
I want to monitor these and fix this problem completely.
 

gagah

Well-known member
Registered
Joined
Jan 21, 2017
Messages
86
Points
0
lol i don't know why but this post made me laugh


Which lines you saw this? how to fix?
Sometimes I still was getting this error and it noticed me via emails.
I think he's saying that based on the cpanel message saying that error might be a false positive if you blocked localhost connection to port 80 by firewall.

How and where to check processes?
I want to monitor these and fix this problem completely.
Login with ssh, type top. There, you'll see a table listing processes currently running. If you want something more graphical (still command line, just you can click and sort the table), install htop.

By the way this part of your error log is actually an output of top command:
Top Processes PID Owner CPU % Memory % Command
23635 root 21.74 0.57 /usr/local/cpanel/3rdparty/bin/perl /usr/local/cpanel/bin/leechprotect
23665 root 19.23 0.34 /usr/local/cpanel/scripts/restartsrv_pureftpd --check --notconfigured-ok
23604 root 2.21 2.47 spamd child
23596 root 1.80 0.87 tailwatchd - chkservd - ftpd check
23596 root 1.80 0.87 tailwatchd - chkservd - ftpd check
12215 mysql 1.27 7.07 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-
The numbers on the first row is the PID, the next is the owner, and the rest is cpu consumption, memory consumption, etc. As you can see, leechprotect is consuming 20% cpu, pureftpd 19%. Try running the top command while the server is running in normal operation and monitors whether there's misconfiguration somewhere. :)
 

JoeTaxpayer

Member
Registered
Joined
Sep 6, 2016
Messages
46
Points
0
lol i don't know why but this post made me laugh
Why?

I think he's saying that based on the cpanel message saying that error might be a false positive if you blocked localhost connection to port 80 by firewall.
No i don't mean that it was a cpanel message and I was wondering how to deal with that, seem it was main reason made my httpd down.
 

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top