Skip to content

Instantly share code, notes, and snippets.

@c0d0g3n
Last active January 5, 2017 18:26
Show Gist options
  • Save c0d0g3n/08b1be7443b62986da7b013b9d21e1c2 to your computer and use it in GitHub Desktop.
Save c0d0g3n/08b1be7443b62986da7b013b9d21e1c2 to your computer and use it in GitHub Desktop.
Apache manual install on Windows: Checklist

Based on: https://www.sitepoint.com/how-to-install-apache-on-windows/ (outdated)

Install Apache

Donwload binary and requirements

Unzip the binary anywhere you want apache installed

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.

Install as a windows process

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.

Update settings

Settings are found in serverRoot/conf/httpd.conf. If you didn't

Change documentRoot (e.g. to a folder on your Desktop)

Don't forget to change the virtualHost path below as well.

Set AllowOverride to all

This enables .htaccess files

Enable modRewrite

Search for it and uncomment the line.

Check your settings (and solve errors)

httpd -t

Run apache

Start

As administrator, type:

net start apache2.4

Stop

As administrator, type:

net stop apache2.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment