Results 1 to 2 of 2
Hybrid View
-
4th Sep 2011, 11:55 PM #1OPSuper Member
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
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
Code: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
-
5th Sep 2011, 12:20 PM #2MemberWebsite's:
srdelta.comThanks friend i will try this bcoz i have limited bandwidth. Hope it Works
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Automatic reboot Apache and Mysql every x min, possible?
By DoctorX in forum Server ManagementReplies: 10Last Post: 8th Jul 2011, 03:36 PM -
Help installing php with xmlrpc.mysql,apache
By lukip006 in forum Technical Help Desk SupportReplies: 8Last Post: 20th Mar 2011, 04:34 AM -
Using SSH, Apache, MySQL without Control Panel? How?
By Sponge Bob in forum Web Application/Script SupportReplies: 15Last Post: 8th Jan 2011, 04:11 AM -
Make your websites run faster, automatically -- try mod_pagespeed for Apache
By heartodark in forum Webmaster ResourcesReplies: 4Last Post: 11th Nov 2010, 04:03 PM -
Optimizing MySQL and Apache - Help
By optimushunk in forum Server ManagementReplies: 25Last Post: 16th May 2010, 07:24 PM
themaPoster - post to forums and...
Version 5.23 released. Open older version (or...