Home  >  Q&A  >  body text

apache2.4 cannot be started, error (20024)

Order:
Go to the bin directory of Apache and enter httpd.exe -k start (if there is no -k start, no information will pop up and it will not end)
error message:
(20024)The given path is misformatted or contained invalid characters: AH00532: Inval
id config file path \xe2\x80\x9cC:\apache24\conf\httpd.conf

伊谢尔伦伊谢尔伦2713 days ago840

reply all(3)I'll reply

  • 天蓬老师

    天蓬老师2017-05-16 17:05:08

    Is the path name in Chinese, and the decoding format of the command line is different

    reply
    0
  • 为情所困

    为情所困2017-05-16 17:05:08

    From the error message, it appears that the path to the configuration file is incorrect.
    It may be that the path under win is inconsistent with the path under Linux.

    reply
    0
  • 天蓬老师

    天蓬老师2017-05-16 17:05:08

    Finally I found out that I was wrong when setting up the service and the right thing is

    httpd.exe -k install -n "Apache2.4" -f "c:\apache24\conf\httpd.conf"
    

    But it turns out that I copied it online, and there is a lower quotation mark missing, while the upper quotation marks are still in Chinese, that is:

    httpd.exe -k install -n "Apache2.4" -f “c:\apache24\conf\httpd.conf
    

    I reported the error in the question. Open cmd with administrator rights, sc delete apache2.4 delete the original service and create a new correct service to start

    reply
    0
  • Cancelreply