This tutorial for Apache / Windows installation, and does not cover installing Apache on Linux. These instructions are for a windows pc for testing and web development purposes.
First - Check md5 hash and File Name
Before starting an installation make sure that the file that you downloaded has not been corrupted since it left Apache's servers.At the time of writing this document -- This is done with what is called an md5 hash. An md5 hash is a 32-character number. Much like an human fingerprint, a hash is unique. It lets you know that the file arrived unaltered. To ensure that you got the correct file, and that it was not intercepted or replaced midstream, it is always a good idea to check for a file's original hash before you open it. When you download your copy of Apache, you will see a link that looks like this: apache_2.2.4-win32-x86-no_ssl.msi.md5
Check the authenticity of the Apache file you downloaded
There are several programs on the net that produce md5 hash. If you want to, you can download this one:
WhitSoft Development and Matt Whitlock. It has a graphical interface and is easy to use. Download it, look for a file called md5.exe, and open it. When it opens it will give you the option to navigate to a file that you want to hash. Go to where you extracted your Apache server and click it. You will get a little gray box on your desktop with a number in the box - that is the hash.
Now if all has gone well, you have downloaded your Apache web server software, produced a hash. IF the hash does not match...
If for some reason you cannot ever get your file's hash numbers to match then you may need to check for things like firewalls, worms and viruses. Delete the file if the hash is wrong, it could contain malicious software. If your hash numbers all add up, however, then it's time to install Apache On Windows.
Installing the Apache web server on Windows is very easy. The instructions here were written for Windows xp, and they have been tested with Windows 7. Apache comes with an auto-installer that guides the user through the process. In this example I will simply follow the prompts and install my server with default values. This will be the quickest and easiest way for me to get started. 1)I will navigate to where you have extracted my Apache Web server, click and open it.
You should see a window that looks like this:
Open whatever web-browser you are using and type "http://localhost" into the address bar. You can also use http://127.0.0.1. If your server is online and working, you should see something similar to this.
Look to the bottom-right hand side of you desktop. You should see a little icon that looks like:
If you click on it you will see the status of your server.
Q and A
Q)I typed in "localhost" and got a page saying "cannot find server." What does that mean? A)It probably means that your server is not running.
Try rebooting. If that does not help, try this:
That should fix your problem. If it does not, try un-installing and reinstalling again.
I typed in localhost and got a 404 error page not found. What is that?
That means that whatever page you asked for does not exist and your server returned a 404 error to your browser. If you are requesting http://localhost/ and not a specific file, go through the steps from the previous answer.