https://mid.as/kb/00143/install-configure-apache-on-windows

 

Step 1 - Download Apache for Windows

Apache for Windows may be freely downloaded from ApacheLounge.

 

Step 2 - Unzip

Once the download has completed, open the downloaded "httpd-2.4.58-win64-VC17.zip" file, and extract its contents to a suitable location on your server i.e. C:\Apache24 

 

Step 3 -  edit file "httpd.conf"

Define SRVROOT "C:/Apache24"
 
ServerRoot "C:/Apache24" 
DocumentRoot "C:/Apache24/htdocs"
<Directory "C:/Apache24/htdocs">
ScriptAlias /cgi-bin/ "C:/Apache24/cgi-bin/" 
 
 
 

Step 4 - add these 2 lines

AddHandler cgi-script .cgi
AddHandler cgi-script .pl
 
 

Step 5 - add this line at the end of file 

riptInterpreterSource Registry
 
 

Step 6 - open cmd window, start apache, don't close this window since apache isn't install as service yet, if close this window, apache will down

 
C:\Users\jhu>cd C:\Apache24\bin
 
C:\Apache24\bin>httpd.exe
 
 
by

Please log in or register