I am trying to get
Apache version 1.3.22 to run as a service on
windows 2008 server.
If i start Apache.exe from the command prompt, it works fine. But when i add i start it as windows service, it throws me an error.
This is how i am adding it as windows service:
sc create Apache binpath= "F:\Program Files\Apache Group\Apache\Apache.exe"
This is what i see in the event viewer:
Faulting application Apache.exe, version 0.0.0.0, time stamp 0x3bc5ae60, faulting module ApacheCore.dll, version 0.0.0.0, time stamp 0x3bc5ae5e, exception code 0xc0000005, fault offset 0x000251c8, process id 0x1df0, application start time 0x01d0adf337a5bbaf.
What am i missing here?
Turns out that Windows 2008 has this security feature called "User Account Control" that prevents apache from installing properly as a service. This can be disabled by clicking on Control Panel-> User Accounts. Turn it off, reboot, and reinstall apache and everything is fine.
Oh, don't turn UAC back on or Apache will again refuse to start with a 1067 error. I'm sure there is a good reason and a workaround, but I don't think it is worth spending anymore time on.
So you will need to reinstall with this feature disabled, I would still suggest unless you specifically need 1.3.X install a newer version.
User contributions licensed under CC BY-SA 3.0