Jump to content

Recommended Posts

Posted

Hi Guys,

 

Our Apache service keeeps stopping and we have to manually restart it. Is there a utility that we can use to force it restart instead of the stardard windows based restart feature which does not work.

 

Thank you in advance,

 

K

Posted (edited)

I'm guessing that it is hanging rather than crashing and terminating as the Windows feature does work and you can set the three actions to restart with the reset at one minute. You could try scheduling a task to kill the process and restart it every so often or make a VBS script that keept checking to see if it could get the site, if not triggering a kill and restart of the process.

 

Have you tried updating the version of Apache or using something different like IIS with PHP installed, the web platform installer makes that easier now.

Edited by SYNACK
Posted
I'm guessing that it is hanging rather than crashing and terminating as the Windows feature does work and you can set the three actions to restart with the reset at one minute. You could try scheduling a task to kill the process and restart it every so often or make a VBS script that keept checking to see if it could get the site, if not triggering a kill and restart of the process.

 

Have you tried updating the version of Apache or using something different like lighttpd fly light

 

Where can I find this VBscript? will it check, similar to pinging a host to check if its alive?, if not then it will automatically restart it?

Posted

You'd need to write it but this:

xmldom - VBScript and loadXML: Invalid at the top level of the document. How to fix it? - Stack Overflow

 

plus this

 

windows - How to terminate process using VBScript - Stack Overflow

 

plus

 

Question: How do I stop / start service in VBScript? | ITNinja

 

those three bits stuck together should do what you want

 

If you're lucky someone on here may have time to glue it all together.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...