Is there a way to have the server running with having the Dos Prompt window open all the time?
Printable View
Is there a way to have the server running with having the Dos Prompt window open all the time?
Do you mean without? Run it as a service then.
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.
How?Quote:
Originally posted by filburt1
Do you mean without? Run it as a service then.
what os are you using hobo?
Windows ME
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
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...
If I change the word console to service, I understand your post.Quote:
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
yeah sorry, I always get those mixed up. :p
I still knew what you mean :)
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...
Now, you can have Windows 9X (ME) launch it like a service... open up regedit then navigate to:Code:Shell "Path\To\Apache.exe", vbHide
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!?! :)
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.
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!
No probs. That was just if you wanted it to startup just like a true service would. :)
actually that isn't a bad idea. can have one exe open apache and mysql, good job matthewralston ;)
:p
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.Quote:
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
your welcome