Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 315
  • Last Modified:

Troubleshooting Linux Website Downtime - Cause?

I have a group of php websites / different domains that run off a single linux server (Centos).  All of the sites are forums for the most part that run off a single mysql database.  For some reason, one of the sites goes down multiple times a day.  The others don't.  The site that goes down receives the second most traffic but not the most.  So the server should be able to handle the load.  All of the sites are very similar in structure but not content.  I bought the sites so don't know the intricacies of all of the code.  I'm not a linux guy by any means (Windows guy) but have a tiny bit of linux experience that I've picked up during my troubleshooting.  I've tried looking at logs but haven't figured out what's causing it.  Any tips or suggestions on how to troubleshoot this?  Step by step directions / commands would be greatly appreciated.
0
adrian78
Asked:
adrian78
3 Solutions
 
GaryCommented:
sites goes down
What exactly happens?
What error messages?
Have you enabled error reporting on the site?
0
 
Dave BaldwinFixer of ProblemsCommented:
Not enough info.  Details are required.
0
 
ThomasMcA2Commented:
Right after the server goes down, look at recently modified logs in the /var/log directory on the server. Sometimes mysql has its own log folder (/var/log/mysql), so look for that, too.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Ray PaseurCommented:
In PHP, make sure you have error_reporting(E_ALL) set, as well as log_errors.  This will give you some diagnostic information if, in fact, PHP errors are causing a problem.

If you want us to be able to help, we will need to know exactly what you mean by "site goes down multiple times a day."  We would need to see the actual URL of the site, the contents of the log files and any error messages, the most recent requests to the site immediately prior to the failure.
0
 
adrian78Author Commented:
Hi Guys,

Thanks for the replies.

Thomas, I'll go ahead and check those log files and report back.

Ray, I have error_reporting already on but it's not a PHP error (as far as I know) that's causing it.

There are no errors reported - the site just doesn't load (progress icon keeps spinning - almost like the resources are getting max'd).  The problem is it happens a handful of times during the day and I'm not usually on the computer when it happens.  I have a ping service (monastic) that checks every 30 min and emails me… so I don't know exactly when it happens but I know it's within 30 minutes.

I'll look into those logs a bit more and will update this thread.

Thanks again!
0
 
GaryCommented:
Is it one particular page do you know? Or any page...
Is it MySQL getting maxed out and just showing up under this one site as it has the second most traffic.
What kinda of memory does the server have, and what is allocated to MySQL and to Apache.
Maybe you are running out of processes - how many visitors/page loads are you getting for all sites.
0
 
adrian78Author Commented:
Thanks guys.  Your tips were helpful but I decided to switch to a cloud solution so I don't need to worry about this :)
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now