Unable to get apache.exe working as windows service

0

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?

windows-server-2008
apache-1.3
asked on Server Fault Jun 24, 2015 by Asdfg

1 Answer

0

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.

http://justin.greene.com/2011/11/apache-1341-on-windows-2008.html

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.

answered on Server Fault Jun 24, 2015 by chrisw9808 • edited Jun 25, 2015 by chrisw9808

User contributions licensed under CC BY-SA 3.0