Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 10 of 10

This is a discussion on Why is my server keep on going down?! in the VPS & Dedicated forum
Every single day, at around 4 PM EST, my server goes down. A few hours later, when I get back from class, I have to ...

  1. #1
    JPC Member
    Join Date
    Oct 2007
    Posts
    14

    Why is my server keep on going down?!

    Every single day, at around 4 PM EST, my server goes down. A few hours later, when I get back from class, I have to manually reboot the VPS from Virtuozzo. I think it may have something to do with the Apache, as I had a similar problem in my old Plesk server. Is there any way to find out why this is happening? Are there any way to prevent this? This is getting annoying... several hours of downtime in the middle of the day isn't very satisfying at all. =/

    Also, for you SSH guru's, is there any way to reboot the server using SSH?

  2. #2
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  3. #3
    I didn't do it! Daniel_DBS's Avatar
    Join Date
    Aug 2007
    Location
    Mars
    Posts
    1,204
    as vin quoted my previous post.. that will restart apache from SSH... the process outlined in that link is for CentOS/Fedora... if you are referring to rebooting the entire VPS VE itself using SSH, I am not sure.
    -Daniel

    If the automobile had followed the same development cycle as the computer, a Rolls-Royce today would cost $100, get a million miles to the gallon, and explode once every few weeks.

    My scripts never have bugs. They just develop random features.

  4. #4
    JPC Member
    Join Date
    Oct 2007
    Posts
    14
    Okay thanks, but is there any reason why it crashes? Can I take any precautions to prevent this?

  5. #5
    I didn't do it! Daniel_DBS's Avatar
    Join Date
    Aug 2007
    Location
    Mars
    Posts
    1,204
    yes.. there are several reasons why this could be happening... could be a script issue, could be that you have way to much traffic for a VPS... could be a corrupt system file.. really could be several things... check your server error logs to see if there is anything that sticks out and if you cannot figure it out, submit a ticket to support
    -Daniel

    If the automobile had followed the same development cycle as the computer, a Rolls-Royce today would cost $100, get a million miles to the gallon, and explode once every few weeks.

    My scripts never have bugs. They just develop random features.

  6. #6
    Loyal Client ethix's Avatar
    Join Date
    Jul 2007
    Location
    Australia
    Posts
    88
    this is taken from a thread at cpanel http://forums.cpanel.net/showthread.php?t=69476 written by ddeans

    ######################################## ##########
    Code:
    #!/bin/sh
    #
    # Apache Process Monitor
    #
    checkapache=`ps ax | grep -v grep | grep -c httpd`
    if [ $checkapache -le 0 ]
    then
    /usr/local/apache/bin/apachectl startssl
    fi
    Name the file apachemonitor.sh and place it under the /etc directory

    Set cron to run this:
    Code:
    */1 * * * * sh /etc/monitor-apache.sh > /dev/null 2>&1
    It will check apache every minute to ensure that it is running. I am using it on one of my boxes that has cPanel 11 and it keeps it going, but again, this is only a temporary fix.
    ######################################## ###########

  7. #7
    JPC Member
    Join Date
    Oct 2007
    Posts
    14
    Hrm, will this work with Plesk? Very clever, btw. Thanks a bunch.

  8. #8
    I didn't do it! Daniel_DBS's Avatar
    Join Date
    Aug 2007
    Location
    Mars
    Posts
    1,204
    good question.. i believe with plesk the path to apache is different.. but i am FAR away from being plesk savvy as i really dislike it and havnt used it in several months
    -Daniel

    If the automobile had followed the same development cycle as the computer, a Rolls-Royce today would cost $100, get a million miles to the gallon, and explode once every few weeks.

    My scripts never have bugs. They just develop random features.

  9. #9
    Loyal Client ethix's Avatar
    Join Date
    Jul 2007
    Location
    Australia
    Posts
    88
    i dont use Plesk so i cant say, but if it dosnt work you would only have to change the path to Apache

  10. #10
    Loyal Client thisisit3's Avatar
    Join Date
    Mar 2007
    Posts
    642
    that doesn't solve the problem!

    if your apache is crashing, then something is wrong and instead of restarting apache you should find out whats wrong and fix that, then apache won't crash anymore and you won't need scripts like that.

    btw, cPanel already does process monitoring and will restart apache and other services if they go down.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •