LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 11-19-2006, 11:36 PM   #1
princenux
LQ Newbie
 
Registered: May 2003
Location: Jakarta, Indonesia
Distribution: RedHat, Slackware
Posts: 27

Rep: Reputation: 15
Apache need regular restart ?


Dear Friend,

I use FCore5, 2.6.15-1.2054_FC5 #1 SMP.
I use default Apache Webserver. And run a single domain on VirtualHost section.

I've application and my probles is.. every two or three weeks, my server need to be restarted.

Its cannot be access trough domain name (eg. www.abc.com), but it still can be ping and traceroute.

hmm is there anyone can help..
thanks
 
Old 11-20-2006, 06:02 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Ping and traceroute have nothing to do with Apache. You most likely have network connection, just Apache stops responding. Perhaps it's a memory issue or something else. What do you logs indicate? Is this a high traffic server?

If you need to restart apache every so often, it's easy to add the apache logs to logrotate and restart it then.
 
Old 11-20-2006, 09:14 PM   #3
princenux
LQ Newbie
 
Registered: May 2003
Location: Jakarta, Indonesia
Distribution: RedHat, Slackware
Posts: 27

Original Poster
Rep: Reputation: 15
well how to check whether its memory issue or something else ?
and which logs should i check ? httpd error log ? or .. ?
 
Old 11-21-2006, 08:43 AM   #4
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
My error logs are in /var/log/apache (Slackware). Not sure where FC5 stores them.

Can you ping by name or only by IP
 
Old 11-21-2006, 08:55 AM   #5
apsivam
Member
 
Registered: Mar 2005
Location: Chennai, India
Distribution: Ubuntu, CentOS
Posts: 72

Rep: Reputation: 15
check /var/log/httpd/error.log
 
Old 11-22-2006, 08:51 PM   #6
princenux
LQ Newbie
 
Registered: May 2003
Location: Jakarta, Indonesia
Distribution: RedHat, Slackware
Posts: 27

Original Poster
Rep: Reputation: 15
well its seems that its attack...
my last check... when check for the status.. it's said http died, pid still running..

and when i check the /var/log/secure there's a lot ssh attempt...

is right that its attacked ?
 
Old 11-30-2006, 05:26 AM   #7
princenux
LQ Newbie
 
Registered: May 2003
Location: Jakarta, Indonesia
Distribution: RedHat, Slackware
Posts: 27

Original Poster
Rep: Reputation: 15
latest update :

when i check the status.. it said "httpd dead but pid file exists"
its back to normal when i restart it... but how this thing can happend ? is there any problem with the apache ? the php code ? or its under attack ?

and how to fix it ?
 
Old 11-30-2006, 05:49 AM   #8
apsivam
Member
 
Registered: Mar 2005
Location: Chennai, India
Distribution: Ubuntu, CentOS
Posts: 72

Rep: Reputation: 15
I can't just be an attack a faulty module also can break apache to die investigate you apache's access/error log file for any clue.
 
Old 12-03-2006, 11:09 PM   #9
princenux
LQ Newbie
 
Registered: May 2003
Location: Jakarta, Indonesia
Distribution: RedHat, Slackware
Posts: 27

Original Poster
Rep: Reputation: 15
hmm it seems that we got mistake in phpcode...
the error log sounds like this ...

could you take a look...

Code:
http://www.bola365.com/myerror
thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how do i apache restart? einstien Linux - General 3 03-30-2005 01:22 PM
Apache can't restart Serbulent Linux - Enterprise 2 03-16-2005 02:29 AM
apache restart problem p0rt Linux - Networking 0 06-07-2004 11:00 AM
Allowing regular user to restart network process?? carlos123 Linux - Networking 2 12-03-2003 03:44 AM
How do I restart Apache? 360 Linux - Networking 2 08-25-2001 06:26 PM


All times are GMT -5. The time now is 11:58 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration