Web Analytics
    Home Best Of Freebies Guides Forums Sites Windows Tools About Subscribe  

Installing Apache, MySQL, and PHP in Windows [How To]

Windows Vista Guides, Windows XP Guides Add comments
Free Windows Books, Software, and Guides

If you would like to build your own website, you can do it on your own computer without putting it online. This can be useful for a number of reasons:

  1. You don’t have your own web hosting to test with
  2. You want to test a website before you put it online
  3. You want to start a website that helps you organize your life, for example, but you don’t always have access to the internet

In this guide, you’ll learn how to set up Apache, MySQL, and PHP on your computer. This will be the base for your website and will create an environment for you to develop in.

This guide is part of the Turning Your Computer into a Local Web Server series. Learn more from the main page.

Installing WAMP on Your Windows Machine

To install WAMP (Windows Apache, MySQL, and PHP) in Windows, do the following:

  1. Download WAMP here
  2. Double click on the installer
  3. Assuming you haven’t installed WAMP before, click Yes
    Installing WAMP in Windows 1
  4. Click Next
    Installing WAMP in Windows 2
  5. Accept the agreement and click Next
    Installing WAMP in Windows 3
  6. I recommend installing in c:\wamp. Click Next
    Installing WAMP in Windows 4
  7. Choose your shortcut icon preferences and click Next
    Installing WAMP in Windows 5
  8. Click Install
    Installing WAMP in Windows 6
  9. WAMP will now install
    Installing WAMP in Windows 7
  10. If prompted, click Open to choose Windows Explorer and your default browser
    Installing WAMP in Windows 8
  11. Leave the default settings unless you have a need to change them and click Next
    Installing WAMP in Windows 9
  12. Click Finish and launch WAMP Server
    Installing WAMP in Windows 10
  13. WAMP will launch. Wait for the WAMP icon to turn white in the notification area
    Installing WAMP in Windows 11
  14. Going to localhost in your browser will bring up the following admin area menu
    Installing WAMP in Windows 12

Now you’ve learned how to install Apache, MySQL, and PHP on your Windows machine, you may now install Wordpress or Drupal in ten minutes or less.


What Next?



Looking for something else?


Share/Save/Bookmark

Get free books and software from Windows Guides
www.mintywhite.com

13 Responses to Installing Apache, MySQL, and PHP in Windows [How To]

Avatar

heathrowe

Installing Apache, MySQL, and PHP in Windows [How To] http://bit.ly/TrRJx

This comment was originally posted on Twitter

Avatar

rsvr85

I’m stuck already lol
I know nothing about this sort of thing and i’m really keen to get this moving.
I’ve installed Wamp as directed above but entering localhost into firefox & IE8 it doesn’t bring up the admin area menu. Any help?!

Avatar

Rich

Ensure WAMP is running. If so, look in the notification area. If WAMP’s icon is anything but white (red or yellow), right click the icon and select “Start All Services”

Does this work?

Avatar

rsvr85

It was running and yes, it’s white. I just keep getting the wiki page of localhost when i try in FF and diagnose connection problem in IE8

Avatar

Rich

Things I would do:

1. Ensure you are trying http://localhost/
2. Restart the computer and try again
3. Check your hosts file and ensure 127.0.0.1 is set to localhost (%SYSTEMROOT%\system32\drivers\etc)
4. Ensure there are no sites running in IIS (if you have IIS installed)
5. Uninstall and reinstall WAMP
6. Create an XP VM and install WAMP on it
7. Eat an ice cream

Avatar

rsvr85

I have 2 hosts files, one hosts.msn and one just hosts. They have the same contents but the one without .msn cannot be saved. (i’ve tried taking ownership too)

Avatar

Rich

Your file should (at least) look like this:

# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a ‘#’ symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost

Avatar

rsvr85

They both do! lol

Avatar

Rich

OK. If none of the other suggestions work, I’d take this to the forums and see if anyone can help you there because I have no idea.

Trackbacks (Trackback URL)

  1. Trackback URL
  2. Turning Your Computer into a Local Web Server [How To Series] | Windows Vista Guides | Windows Tools, Help & Guides
  3. Installing Apache, MySQL, and PHP in bWindows/b [How To] | bWindows/b b…/b « Windows 7 Live Info
  4. My Bookmarks » Blog Archive » Installing Apache, MySQL, and PHP in Windows
  5. My Bookmarks » Blog Archive » Installing WAMP on Your Windows Machine

Comment Form Windows Tools, Help & Guides Comments RSS RSS

If you have a computer help question, click here to leave it on the forums instead.