Add services in Windows XP

Discussion in 'Windows Desktop Systems' started by Glaanieboy, Jan 16, 2005.

  1. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    I got an Apache2 installation that went wrong due to an error on my side. I fixed the problems, but one thing remains, I want to add the apache.exe binary as a Windows XP service. I know there is some 'net ...' command for it, but I forgot what it was. I searched the net for the command, but I only could find 'sc create <appname> binPath=<binpath>', which doesn't work for some reason. Can anyone help me? I don't want to do another installation of Apache2, I just want to know what the command for adding services in XP is.
     
  2. _kC_

    _kC_ Moderator

    Messages:
    514

    Attached Files:

  3. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    Why couldn't I find anything on the MS KB? Anyway, thanks for the tool, works like a charm. Too bad Apache still refuses to work, but that's another problem :)
     
  4. Glaanieboy

    Glaanieboy Moderator

    Messages:
    2,626
    Location:
    The Netherlands
    Just found out I could have used path\to\apache\apache.exe -k install -n "Apache2" :doh: This way it autmagically installs the corrects paths etc to the service manager.