logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Can't start service on windows server 2012
Author
entretoize



Joined: 27 Dec 2018
Posts: 2
Location: Bourg-de-Péage

PostPosted: Thu 27 Dec '18 20:33    Post subject: Can't start service on windows server 2012 Reply with quote

Hello, I downloaded apache 2.4 x64 and unzipped in c:, then I modified the configuration to set htdocs directory and vhosts.

Then I installed the service:
Code:
httpd.exe -k install -n "Apache2.4"


Which result in :
Code:
Installing the 'Apache2.4' service
The 'Apache2.4' service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.


In event log I have :
Code:
The Apache2.4 service terminated with the following service-specific error:
Incorrect function.



With
Code:
httpd.exe -t
I have
Code:
Syntax OK


I tried uninstalling and reinstalling the service, but that doesn't work.

Please tell me there's something more to try.

Thanks
Back to top
DnvrSysEngr



Joined: 15 Apr 2012
Posts: 218
Location: Denver, CO USA

PostPosted: Thu 27 Dec '18 22:05    Post subject: Reply with quote

EntreToize:

The error message you are receiving is usually a result of something not being correct in your HTTPD.CONF file.

Check your Application logs and System logs on your Windows 2012 server and it should tell you what is wrong (may be a missing module, or something mis-typed on one of the lines in HTTPD.CONF).
Back to top
DnvrSysEngr



Joined: 15 Apr 2012
Posts: 218
Location: Denver, CO USA

PostPosted: Thu 27 Dec '18 22:09    Post subject: Reply with quote

addendum to my previous post - usually in HTTPD.CONF file, but could also be in other .CONF files (vhost, security, SSL, etc.)

I mention this just incase you may have modified any .CONF files.
Back to top
entretoize



Joined: 27 Dec 2018
Posts: 2
Location: Bourg-de-Péage

PostPosted: Fri 04 Jan '19 10:25    Post subject: Reply with quote

I finally succeeding after restarted from scratch.
Thanks
Back to top
DnvrSysEngr



Joined: 15 Apr 2012
Posts: 218
Location: Denver, CO USA

PostPosted: Fri 04 Jan '19 18:36    Post subject: Reply with quote

Entretoize:

Glad to hear that you got the issue resolved.

I always make a backup of my .CONF files before I make any adjustments, so that if something goes wrong, I can put my backup .CONF files right back and bring Apache online immediately.

-S
Back to top


Reply to topic   Topic: Can't start service on windows server 2012 View previous topic :: View next topic
Post new topic   Forum Index -> Apache