restart apache with asp
is it possible to restart apache from asp?
the asp, of course, is running on the apache. it seems impossible to me, but.....of course, that is exactly what i am supposed to do.
my asp script edits the config files, and i want the changes to take place immediately after i edit the files.
please don't laugh at me if this is a stupid question....
Hey codegirl, sorry to say it but Im pretty sure it is impossible, because ASP is serverside it needs to have a server to run under, if you shut down the server, then you stop the script, or at least thats the way I see it. Although maybe you could write a perl/Python/VB etc. program that you could execute using ASP which shuts down Apache and restarts it?
Anyway just an idea,
yeah, it is impossible i've realised. i was just naively hoping that there was some funky way to do it.
i will try to do it by writing an exe.
as you suggested....
You should take a look at doing it on microsofts IIS
I'm not sure what you can and can't do, but you can do quite a lot in the way of webserver management all through asp.
I know some people have no choice of webserver because of various reasons, but if you can or may be able to swap take a look. You can manage websites, create winnt users and lots of funky stull all through asp.
take a look you may even get som ideas