Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

And you go to http://localhost, are you supposed to see a message that says "It works!"

If not, how do you fix this?
Operating system: Windows 7
Apache Web Server:Win32 Binary including OpenSSL 0.9.8r (MSI Installer): httpd-2.2.19-win32-x86-openssl-0.9.8r.msi

Thanks for your time!

share|improve this question

migrated from Jul 26 '11 at 12:06

This question came from our site for professional and enthusiast programmers.

Testing - To check and see if Apache 2 is serving. Open your browser and head to: or http://localhost/

If it shows the "It works!" you have your server software installed and running.

Now it's time to make Apache point to your files:

Using Notepad open C:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf (in the start-menu there should also be a "Apache HTTP Server 2.2 > Configure Apache Server > Edit the Apache httpd.conf Configuration File" shortcut) and search for DocumentRoot. Change it from something like DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs" to the location where your HTML files and site are located. In my case: DocumentRoot "C:/public_html"

Then scroll down about one page and change: to point to the same location you set DocumentRoot to in the last step.

Restart apache to make the changes take effect

share|improve this answer
Thank you very much! – Amy Dee Jul 26 '11 at 3:59
Of course! If this answer helped you make sure to accept my answer with the checkmark. Thanks! – Garrett Smallwood Jul 26 '11 at 4:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.