Forum Moderators: phranque

Message Too Old, No Replies

How to restart apache automatically?

I have a VPS

         

lady6

1:06 am on Mar 25, 2006 (gmt 0)

10+ Year Member



hello I have a VPS, sometimes I try to access to my site but it doenst work... and I have to restart Apache .. and then it works fine ..
normaly I restart my apache server once a day ,

I want to go to a travel, and I dont want my site to be down, just becasue there isnt somebody to restart its apache ...

is there any way to restart apache automaticly?

Nutter

3:18 pm on Mar 25, 2006 (gmt 0)

10+ Year Member



You could do a cron job of 'service httpd restart', but why do you need to? I'm thinking you'd be better off finding the cause of your daily crashes.

lady6

8:02 pm on Mar 25, 2006 (gmt 0)

10+ Year Member



can you please tell me how to do a cron job?

I have found the scripts that cause my server crush, and I tried to limit using them...

but you know I am going to go to a trip for a week, and I dont want my site be down while I am away ... so I better have my Apache restarted automaticly once a day ,

please give me the cron job Script to do that. thanks

jdMorgan

2:20 am on Mar 26, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's not that simple...
Details will depend on your server.

The best advice I can give is:

Contact your host, and pay them to check your server hourly while you are away
-or-
postpone your trip, and fix those scripts.

Jim