Note those of interested in the Apache 2.0.X tutorial, it has been abandon and I'll no longer keep it updated, But it can is found here. Apache 2.2.X
- Download & Unpackgo To http://www.apache.org/dist/httpd/binaries/win32/ and Choose a mirror. You want the latest , Win32-x86-no_ssl.msi "MSI Installer package" release.
My file was named: httpd-2.2.21-win32-x86-no_ssl.msi
note about finding the download links |
apache sometimes moves the "Quick Download" link to the Win32 binary. The long officially find it is download > other files > binaries folder (not the "Binary releases" info-link at the top) > Win32 & Nbsp;folder > then the latest win32-x86-no_ssl.msi release |
- Installwhen you install Apache and you'll get a prompt for "Server information." Here is the settings I used:
Network domain:localhostserver name:localhostadmin Email: (Any email. real or fake) [checked]: to all Users, on Port, as a Service
- Starting/stopping Apacheafter installation Apache2 would automatically start. The icon in the System Tray means it started. The icon means the "Monitor Apache Servers" is running, but Apache2 isn ' t started.
You can easily start/stop/restart Apache and Apache2 via the that icon in your System Tray. If you get ' The requested operation has failed! ' error while starting Apache use the ' Test Configuration ' shortcut in the Start Menu to find the error (if the text window pops up then closes before you can read it, your config file is fine).
- Testingnow the ultimate test. To see if it ' s serving. Open your browser and head to:http://127.0.0.1/orhttp://localhost/
If It shows the it works! you have your server software installed and running.
- Making Apache point to your filesusing Notepad open c:/program Files/apache software foundation/apache2.2/conf/httpd.conf (In the Start-menu there should also is a"Apache HTTP Server 2.2 > Configure Apache server > Edit the Apache httpd.conf Configuration File"Shortcut) and search forDocumentRoot. Change it from something likedocumentroot "C:/Program files/apache software Foundation/apache2.2/htdocs"To the location where your HTML files and site is located. In my case:documentroot "c:/public_html"
NOTE |
The first time I installed Apache2, I accidentally changed serverroot. Make sure to the correct line which is DocumentRoot and which are down to line 175. |
Then scroll the About one page and the change:<directory "C:/Program files/apache software Foundation/apache2.2/htdocs" >To point-to-same location-you-documentroot-in-the-last step.
Restart Apache to make the changes take effect
How to install the Apache Server on Windows