LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-09-2010, 09:42 AM   #1
bbrian017
Member
 
Registered: Dec 2009
Posts: 59

Rep: Reputation: 15
Server was down this morning


My Dedicated Server was down this morning and I was hoping someone would be willing to help be find out why.

I have root su - access so if you tell me what you need I will post it.

Operating System: CentOS 5
Processor: Intel Pentium 4 - 3.0 GHz
RAM: 2 GB
Total Disk Space: 120 GB
RAID: None
Bandwidth Quota: 500 GB


Please and thanks,

Brian

Last edited by bbrian017; 04-09-2010 at 10:13 AM.
 
Old 04-09-2010, 10:03 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
You couldn't connect at all, or just some services stopped working?

Have you asked your host if they know anything about it? That seems like the most obvious first move.
 
Old 04-09-2010, 10:11 AM   #3
bbrian017
Member
 
Registered: Dec 2009
Posts: 59

Original Poster
Rep: Reputation: 15
I was able to login using SSH but all my websites were down.

Perhaps it was a mysql issue and not a server issue?

I did a reboot and my websites went back up.

I have not talked with my host they provide very limited support as this is a self managed dedicated server.

Operating System: CentOS 5
Processor: Intel Pentium 4 - 3.0 GHz
RAM: 2 GB
Total Disk Space: 120 GB
RAID: None
Bandwidth Quota: 500 GB

Last edited by bbrian017; 04-09-2010 at 10:13 AM.
 
Old 04-09-2010, 10:14 AM   #4
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
So then the server itself was up, there was just some problem with Apache (which I will assume is your web server). Have you checked the Apache logs right before and during the downtime?
 
Old 04-09-2010, 10:16 AM   #5
bbrian017
Member
 
Registered: Dec 2009
Posts: 59

Original Poster
Rep: Reputation: 15
No I haven't checked the apache logs.

Are they also in /var/log/

Thanks so much for the help.
 
Old 04-09-2010, 10:21 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,921

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by bbrian017 View Post
No I haven't checked the apache logs.

Are they also in /var/log/

Thanks so much for the help.
They're wherever you set them up to be, but usually in /var/log/apache2. Have you checked uptime on the server?? Perhaps it got powered off.
 
Old 04-09-2010, 10:29 AM   #7
bbrian017
Member
 
Registered: Dec 2009
Posts: 59

Original Poster
Rep: Reputation: 15
I don't see the apache2 in the log folder.

This is what I see.

Also how do I check the up time I think it has been reset since my reboot.
Attached Thumbnails
Click image for larger version

Name:	root.jpg
Views:	15
Size:	87.2 KB
ID:	3297  
 
Old 04-09-2010, 11:25 AM   #8
karlochacon
Member
 
Registered: Dec 2006
Posts: 107

Rep: Reputation: 17
go to httpd folder and check the logs there

http://www.cyberciti.biz/faq/apache-logs/

also in /var/log you could check messages file
 
Old 04-09-2010, 11:30 AM   #9
bbrian017
Member
 
Registered: Dec 2009
Posts: 59

Original Poster
Rep: Reputation: 15
Does anyone know how I can get a copy of that file so I can upload it here? It's so big I cannot highlight it all fdor some reason.

This was in my httpd folder.

Last edited by bbrian017; 06-05-2010 at 01:20 PM.
 
Old 04-09-2010, 01:23 PM   #10
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
You don't need to post it all here, you just need to find the lines that tell you what the problem is/was.

Perhaps we need to step back a little here. What exactly is your skill level with Linux in general, and services like Apache? Figuring out what happened is not going to be as easy as running a command and it telling you exactly what is wrong, you will likely need to get your hands a little dirty.
 
Old 04-09-2010, 01:42 PM   #11
bbrian017
Member
 
Registered: Dec 2009
Posts: 59

Original Poster
Rep: Reputation: 15
My Skill level is as low as they get. I simply had a popular website and needed a dedicated server to handle the traffic load.

I know basic commands but nothing that would help me determine what is wrong and why apache stopped running.
 
Old 04-09-2010, 04:47 PM   #12
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
Install Logwatch. It's good for weeding out the noise and showing you the "interesting" parts of logs efficiently as a report. Anyone who runs any (Internet-facing) services should run Logwatch or equivalent. (Maybe patch Logwatch with this and then) run logwatch as 'logwatch --numeric --detail High --archives --range All --save /var/log/logwatch.report && bzip2 /var/log/logwatch.txt'. Then if all went OK you can copy /var/log/logwatch.txt.bz2 to your local system, decompress it and attach it to this thread.
 
Old 04-09-2010, 06:37 PM   #13
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
Webmin may already be in it. It might be a usable tool for you.
http://www.webmin.com/index.html
 
0 members found this post helpful.
Old 04-09-2010, 08:34 PM   #14
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
Quote:
Originally Posted by jefro View Post
Webmin may already be in it. It might be a usable tool for you.
Forgive me my ignorance but what could it actually do to help him diagnose his problems?
 
Old 04-10-2010, 07:35 AM   #15
nonamenobody
Member
 
Registered: Oct 2002
Posts: 138

Rep: Reputation: 22
Quote:
Originally Posted by unSpawn View Post
Forgive me my ignorance but what could it actually do to help him diagnose his problems?
I suppose it might give him an 'easy' way to perform certain admin. activities - such as seeing what services are running and restart services which have failed for some reason, if it happens again. However, as he is renting a dedicated server, he probably already has cPanel or Plesk - which will overlap with Webmin and cause problems. And ofcourse, if his webserver (or services it depends on) is failing, Webmin might not be there when he needs it most.
 
  


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
Good morning linenoise88 LinuxQuestions.org Member Intro 2 06-12-2009 05:18 PM
Morning chrisdudeperson LinuxQuestions.org Member Intro 1 05-03-2008 07:28 AM
Good Morning biasakhu LinuxQuestions.org Member Intro 1 04-06-2008 08:31 AM
Morning all! Lordandmaker LinuxQuestions.org Member Intro 2 09-28-2005 02:40 PM
Server crashes between 3am and 5am every morning abefroman Fedora - Installation 4 12-05-2004 07:30 PM


All times are GMT -5. The time now is 06:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration