Apache version 2.4 web-server service will not start.

Discussion in 'Apache' started by Rewillis, May 7, 2019.

  1. #1
    I am running the Apache2.4 web server in the Microsoft Windows 10 ( Home ) Edition operating system. The Apache2.4 service is stopped, and I am unable to restart it. When I access the system log, through Event Viewer, the error message is as follows:

    "The Apache2.4 service terminated with the following service-specific error:
    Incorrect function."

    Does anyone have a solution for this problem? Thank you for your help.

    Russell E. Willis
     
    Rewillis, May 7, 2019 IP
  2. dedikart

    dedikart Member

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #2
    That appears to be a configuration error in apache file. Try running an apache configuration test. You can check following command but you might have to adjust file paths according to your server.

    c:\Program Files\Apache Software Foundation\Apache 2.4\bin\httpd.exe" -t -f "c:\Program Files\Apache Software Foundation\Apache 2.4\conf\httpd.conf"
     
    dedikart, May 24, 2019 IP
  3. Rewillis

    Rewillis Greenhorn

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #3
    Dedikart, you were correct. Approximately one month ago, I tried the Apache configuration test you mentioned in your response ( above ), but adapted it to the path names on my personal computer system ( as shown below ):

    c:\Apache24\Apache24\bin\httpd.exe -t -f c:\Apache24\Apache24\conf\httpd.conf. ( Being correct with the punctuation - omit the final period ( "." ). )

    The output consisted of one error message. After locating and editing out the configuration error in the "httpd.conf" file, the "Apache2.4" service started. Thank you.

    Russell E. Willis.
     
    Rewillis, Oct 2, 2019 IP
  4. phoenixtropicals

    phoenixtropicals Active Member

    Messages:
    138
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    50
    #4
    Gotta love computers. Picky picky. I check all of my configuration files into Github. That way if something mysteriously breaks I'll have the ability to compare versions to see if I fat fingered something.
     
    phoenixtropicals, Aug 7, 2023 IP