Based on: https://www.sitepoint.com/how-to-install-apache-on-windows/ (outdated)
Note apache is configured to run under c:\name_of_folder_in_zip
, if you install apache anywhere else, you should search the config file for c:\name_of_folder_in_zip
and replace with your install directory.
Find httpd.exe
in the apache folder. (Hint: install_directory/bin
)
Run httpd -k install
.
To find the correct process name of apache, you can run httpd -k start. Apache will throw it somewhere (even as, obviously, starting apache...).
Note below is a more elegant method to start/stop/restart apache.
Settings are found in serverRoot/conf/httpd.conf
.
If you didn't
Don't forget to change the virtualHost path below as well.
This enables .htaccess
files
Search for it and uncomment the line.
httpd -t
As administrator, type:
net start apache2.4
As administrator, type:
net stop apache2.4