Apache installation and uninstallation

1. Installation

  1. Download and unzip the file
    in ApacheHaushttpd.conf and open the httpd.conf file to find and Define 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

  2. Uninstall
    “D:\Apache24\bin\httpd.exe” -k uninstall -n apache

  3. 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

Guess you like

Origin blog.csdn.net/curtis0730/article/details/99577505