#1
  1. No Profile Picture
    beep
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Posts
    7
    Rep Power
    0

    Unhappy 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....

  2. #2
  3. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69

    UhO!


    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,

    Mark
  4. #3
  5. No Profile Picture
    beep
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Posts
    7
    Rep Power
    0

    arrrrr


    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....
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Posts
    138
    Rep Power
    12
    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

    http://msdn.microsoft.com/library/de...SIProvider.asp
    --

    ngibsonau

IMN logo majestic logo threadwatch logo seochat tools logo