LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-28-2005, 04:19 PM   #1
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Rep: Reputation: 78
Unhappy apache is barfing!


I've been developing a really large site on a LAMP setup. Last nite at 4AM apache puked and stopped serving pages. then, it stops responding to apachectl commands. Here are the last few entries from the apache log:

Code:
[Tue Sep 27 13:40:53 2005] [notice] httpdmon: httpdmon_init
[Tue Sep 27 13:40:53 2005] [notice] bandwidth monitoring enabled (mapping file: /etc/virtualhosting/mappings/apache.domainmap)
[Tue Sep 27 13:40:54 2005] [notice] Apache configured -- resuming normal operations
exclog: signal received 15
[Wed Sep 28 04:02:18 2005] [notice] SIGHUP received.  Attempting to restart
[Wed Sep 28 04:02:20 2005] [notice] seg fault or similar nasty error detected in the parent process
 
Old 09-28-2005, 04:28 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
What apache version are you using?

Is there anything in the access logs to suggest a buffer overflow or other attack?

Do you have snort running?

To get it restarted try making sure it is fully stopped then start it:
killall -9 httpd
apachectl start
 
Old 09-28-2005, 05:28 PM   #3
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Original Poster
Rep: Reputation: 78
Code:
Server version: Apache/2.0.50
Server built:   Jul  1 2004 08:49:07
The apache access logs are actually empty from 03:00 until 15:30 today when i discovered the problem. this is really uncommon. we usually have a smattering of traffic all night long.

i think the problem is lack of RAM, but i can't figure it out for sure. The webstats get processed at 4:10 AM and the crash happened shortly after.

Why the SIGHUP? What does that mean? Is that specific to apache or is it a lower level system thing?
 
Old 09-28-2005, 07:54 PM   #4
dmellem
Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 42

Rep: Reputation: 15
I don't know if this is what you're asking, but SIGHUP is the hangup signal and is used to tell the server to reload its configuration file. By default, kill sends SIGTERM to terminate.

-Dan
 
Old 09-28-2005, 08:50 PM   #5
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Original Poster
Rep: Reputation: 78
thanks for the info.

when you say 'server to reload the config file' do you mean apache config or the whole box's linux config? what could have caused the SIGHUP?
 
Old 09-28-2005, 09:28 PM   #6
dmellem
Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 42

Rep: Reputation: 15
In this case, it's Apache. You can send several programs that signal to reload their configuration file and continue on. It's usually quicker then restarting the entire application.

kill -HUP <id>
or
killall -HUP <name>

-Dan
 
Old 09-29-2005, 05:46 AM   #7
deoren
Member
 
Registered: Oct 2003
Location: USA
Distribution: Ubuntu
Posts: 216

Rep: Reputation: 30
Perhaps this post will be useful to you:
http://forums.gentoo.org/viewtopic-p...9.html#2744199
 
Old 09-29-2005, 02:38 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
The SIGHUP is probably being sent after you do some kind of log rotation I'd guess.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail from Apache being rejected - Cannot route to sender apache@localhost.localdomain jimwillsher Linux - Networking 2 01-19-2006 12:41 AM
Apache 1.3.33 (debian built) and Apache SSL does not respond to the proper ports lqorg_user Linux - Networking 0 11-06-2005 04:11 PM
Strange apache trailing / problem - Slack-current, apache 1.3.33 vamp Linux - Networking 1 01-30-2005 07:28 PM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 05:30 AM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration