var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
Auto Restart Apache.
Is there any easy Tutorial of making Apache Restarting every Hour Once .
Has to be Done auto by Crontab.
Please i'm Begginer with VPS servers. and i have Centos 5.3
you could always toss in a bash script killall followed by apachectl, but that would probably be putting a bandage on a bigger problem.. why do you need to restart apache constantly?
Sometime , For some reason the apache Eats My memory when there only 2 or 3 visitors in site .. until i restart it ..
Originally Posted by
So i wanted Some codeing to restart it auto while i'm not there to monitor it
echo '/etc/init.d/httpd restart' > /etc/cron.hourly/httpd
Windows/Linux Expert; Plesk/Cpanel/Ensim Guru.
..and an expert spam tracker.
I'm not Good in Just Copy Commands .. can you Excplain wht to do with this command . like i said i'm begginer.
Is ther way to do it from SIM (System Integrity Monitor) on CentOS.
How if yes?
As quantumphysics has already told you, something is very wrong if you need to restart Apache every hour...
Anyway, login to your server and paste the command samurai7 told you into the terminal window, easy :-)
Exceptional VPS Hosting.
SIM will auto check service and restart as required.
Its fairly easy to install and asks a basic questions that should get you up and running.
- Buying up websites, side-projects and companies - PM Me! -
Thank you , i already have it .. and so the PRM (Process Resource Monitor)
Originally Posted by
As samurai7 says echo '/etc/init.d/httpd restart' > /etc/cron.hourly/httpd
it will create a httpd "cron" file which will be executed every hour and will restart your apache service every hour. Do not forget to do this "chmod 755 /etc/cron.hourly/httpd" so that the cron daemon can execute it.
But that is not a solution, if you need to restart your apache service every hour, than there si something wrong with your server or apache service. Why do you have to restart it? Is it hitting the memory limit, I/O, or what?
By sharmaine1111 in forum Hosting Security and Technology
Last Post: 10-30-2009, 04:16 PM
By sakibin in forum Hosting Security and Technology
Last Post: 11-14-2008, 03:12 PM
By NWSTech in forum Hosting Security and Technology
Last Post: 05-23-2007, 04:18 AM
By solyalex in forum Hosting Security and Technology
Last Post: 09-21-2004, 04:54 PM
By justbenice in forum Hosting Security and Technology
Last Post: 02-28-2004, 07:22 PM