Activity Stream
48,167 MEMBERS
61757 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 2 of 2
  1.     
    #1
    Super Member

    Default Automatically restart Apache & MySQL

    This is pretty useful for people who are lazy and don't want to fix an underlying problem (usually a script that has a memory leak or if you want your website to run more efficient but don't want to pay more)

    Login as root via SSH and do the following (These commands designed for Ubuntu/Linux with nano installed):

    Code: 
    cd /
    mkdir commands
    cd commands
    nano reboot.sh
    Paste:
    Code: 
    #!/bin/sh
    /etc/init.d/apache2 restart
    /etc/init.d/mysql restart
    Code: 
    ctrl + x
    y
    return button/enter button
    chmod +x reboot.sh
    crontab -e
    Paste:
    Code: 
    59 * * * * /commands/reboot.sh
    59 * * * * /commands/reboot.sh

    59 is for minutes, second (*) is for hours, third (*) is for days and fourth (*) is for months and fifth (*) is for day in the week (0 = sunday, 6 = saturday)
    Sp32 Reviewed by Sp32 on . Automatically restart Apache & MySQL This is pretty useful for people who are lazy and don't want to fix an underlying problem (usually a script that has a memory leak or if you want your website to run more efficient but don't want to pay more) Login as root via SSH and do the following (These commands designed for Ubuntu/Linux with nano installed): cd / mkdir commands cd commands nano reboot.sh Paste: Rating: 5

    So kiss me and smile for me, say that you'll wait for me <'3

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    srdelta.com
    Thanks friend i will try this bcoz i have limited bandwidth. Hope it Works
    My Tech Blog
    www.SRDelta.Com

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Automatic reboot Apache and Mysql every x min, possible?
    By DoctorX in forum Server Management
    Replies: 10
    Last Post: 8th Jul 2011, 03:36 PM
  2. Help installing php with xmlrpc.mysql,apache
    By lukip006 in forum Technical Help Desk Support
    Replies: 8
    Last Post: 20th Mar 2011, 04:34 AM
  3. Using SSH, Apache, MySQL without Control Panel? How?
    By Sponge Bob in forum Web Application/Script Support
    Replies: 15
    Last Post: 8th Jan 2011, 04:11 AM
  4. Replies: 4
    Last Post: 11th Nov 2010, 04:03 PM
  5. Optimizing MySQL and Apache - Help
    By optimushunk in forum Server Management
    Replies: 25
    Last Post: 16th May 2010, 07:24 PM

Tags for this Thread

BE SOCIAL