1. Installation
-
Download and unzip the file
inApacheHaus
httpd.conf and open the httpd.conf file to find andDefine SRVROOT "/Apache24"
modify the actual absolute installation directory of Apache: no "/" or "" at the end, because the directory configured later already has "/" or "\" at the beginning.
then
“D:\Apache24\bin\httpd.exe” -k install -n apache
-
Uninstall
“D:\Apache24\bin\httpd.exe” -k uninstall -n apache
-
httpd -t check configuration error
D:\Apache24\bin>httpd -t
AH00526: Syntax error on line 34 of D:/Apache24/conf/extra/httpd-ahssl.conf:
SSLProtocol: Illegal protocol 'TLSv1.3'
Solution:
httpd.conf found about 46 lines and Define ENABLE_TLS13 "Yes"
commented out, it's ok
D:\Apache24\bin>httpd -t
Syntax OK