Results 1 to 20 of 20

Thread: [Resolved] One more Apache ?

  1. #1

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    [Resolved] One more Apache ?

    Is there a way to have the server running with having the Dos Prompt window open all the time?
    Last edited by The Hobo; Jul 1st, 2002 at 11:26 PM.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  2. #2
    Do you mean without? Run it as a service then.

  3. #3
    PowerPoster cafeenman's Avatar
    Join Date
    Mar 2002
    Location
    Florida
    Posts
    2,819
    I don't have a DOS window. It's running as a service on my computer. That's how it got setup by default. I just have a little feather in my system tray.

  4. #4

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by filburt1
    Do you mean without? Run it as a service then.
    How?
    My evil laugh has a squeak in it.

    kristopherwilson.com

  5. #5
    scoutt
    Guest
    what os are you using hobo?

  6. #6

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Windows ME
    My evil laugh has a squeak in it.

    kristopherwilson.com

  7. #7
    scoutt
    Guest
    I'm going to say not because you can only have it as a console on win2000 and XP, you just don't get the option at install to choose console. on 95/98/me

  8. #8
    In the install there's an option to run as a service but services are crap in 9x/Me (I'm running 98 on my work lappy with Apache and it's horrible). Reinstalling doesn't overwrite your httpd.conf so that would be the easiest. The command line for installing the service is something along the lines of apache -k install or apache -k or apache --install...

  9. #9

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by scoutt
    I'm going to say not because you can only have it as a console on win2000 and XP, you just don't get the option at install to choose console. on 95/98/me
    If I change the word console to service, I understand your post.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  10. #10
    scoutt
    Guest
    yeah sorry, I always get those mixed up.

  11. #11

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    I still knew what you mean
    My evil laugh has a squeak in it.

    kristopherwilson.com

  12. #12
    matthewralston
    Guest
    I used to run Apache on Win98 a few years ago. And it is (sort of) possible to run it as an invisible service...

    First off Apache will always run in a console window (DOS Prompt), however you can make it invisible...white yourself a small VB app that launches Apache with the Shell command...

    Code:
    Shell "Path\To\Apache.exe", vbHide
    Now, you can have Windows 9X (ME) launch it like a service... open up regedit then navigate to:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunServices

    Add yourself an entry with a path matching where you compiled the above VB app.

    Reboot and...(fingers crossed) voila! You should have yourself a little daemon listening to port 80, but where is it!?!

  13. #13
    matthewralston
    Guest
    PS...

    I had to do that registry path from memory (it doesn't exist in XP), but I think it should be correct.

    If it's not there put it in:

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

    or create a shortcut in the Startup folder and accept that you'll need be logged in for it to run.

  14. #14

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    I don't want it to run everytime I start windows up, but I'll steal that "create an app to start it" idea from you. Thanks!
    My evil laugh has a squeak in it.

    kristopherwilson.com

  15. #15
    matthewralston
    Guest
    No probs. That was just if you wanted it to startup just like a true service would.

  16. #16
    scoutt
    Guest
    actually that isn't a bad idea. can have one exe open apache and mysql, good job matthewralston

  17. #17
    matthewralston
    Guest

  18. #18
    Junior Member
    Join Date
    Jul 2002
    Location
    San Diego, CA, U.S.A
    Posts
    30
    here is how without all that junk...


    apache.exe -k install

    it will install as a service, and when your computer boots you will see the prompt really quick and it will dissapear

  19. #19

    Thread Starter
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by Iamryan2002
    here is how without all that junk...


    apache.exe -k install

    it will install as a service, and when your computer boots you will see the prompt really quick and it will dissapear
    I've already stated that I don't want it to run everytime my computer does. But thanks for not reading all the posts and taking a stab at it anyways.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  20. #20
    Junior Member
    Join Date
    Jul 2002
    Location
    San Diego, CA, U.S.A
    Posts
    30
    your welcome

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width