Windows Guides Feed

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.



About Rich

Rich is the owner and creator of Windows Guides; he spends his time breaking things on his PC so he can write how-to guides to fix the problems he creates.

Free PC tips by email

Search Windows Guides




Comments

  • Turning Your Computer into a L

    […] Installing Apache, MySQL, and PHP in Windows […]

  • Installing Apache, MySQL, and

    […] Rich wrote an interesting post today onInstalling Apache, MySQL, and PHP in bWindows/b [How To] | bWindows/b b#8230/bHere#8217s a quick excerpt […]

  • Pingback: Installing Apache, MySQL, and PHP in bWindows/b [How To] | bWindows/b b…/b « Windows 7 Live Info()

  • Pingback: My Bookmarks » Blog Archive » Installing WAMP on Your Windows Machine()

  • My Bookmarks » B

    […] Read more at windows guides blog.. […]

  • My Bookmarks » B

    […] Read more at windows guides blog.. […]

  • 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?!

  • 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?!

    • 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?

  • 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?!

    • 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?

  • 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?

  • 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

  • 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

    • 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%system32driversetc)
      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

  • 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

    • 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

  • 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%system32driversetc)
    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

  • 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)

  • 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)

    • 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

  • 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)

    • 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

  • 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

  • rsvr85

    They both do! lol

  • They both do! lol

    • 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.

  • They both do! lol

    • 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.

  • 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.

  • Install Apache, MySQL, and PHP

    […] Installing Apache, MySQL, and PHP in Windows […]

  • Pingback: Install Apache, MySQL, and PHP in Windows : Windows Vista Weblog - Windows Vista and IE7 News - Tips for Using Windows Vista()

  • SVGK Kishore

    Hi,
    The above WAMP integration for installation on Windows Computer was great.

    Keep it up.

    SVGK Kishore

  • SVGK Kishore

    Hi,
    The above WAMP integration for installation on Windows Computer was great.

    Keep it up.

    SVGK Kishore

  • SVGK Kishore

    Hi,
    The above WAMP integration for installation on Windows Computer was great.

    Keep it up.

    SVGK Kishore

  • morph

    Wamp is ok but you may also want to install each application as a seperate install and may really want to know what really the configuration looks like because after knowing it you can install it anywhere without worrying about configuration here’s a good link.
    Install php on windows

  • morph

    Wamp is ok but you may also want to install each application as a seperate install and may really want to know what really the configuration looks like because after knowing it you can install it anywhere without worrying about configuration here’s a good link.
    Install php on windows

  • morph

    Wamp is ok but you may also want to install each application as a seperate install and may really want to know what really the configuration looks like because after knowing it you can install it anywhere without worrying about configuration here’s a good link.
    Install php on windows

  • Arlandi Landjono

    Another option is to use UniformServer. It uses the unzip and run approach, so no installation is necessary and you can have several different websites ready to run anytime you want to test them. Just google “UniformServer” for more info and where to download it.

  • Arlandi Landjono

    Another option is to use UniformServer. It uses the unzip and run approach, so no installation is necessary and you can have several different websites ready to run anytime you want to test them. Just google “UniformServer” for more info and where to download it.

  • Arlandi Landjono

    Another option is to use UniformServer. It uses the unzip and run approach, so no installation is necessary and you can have several different websites ready to run anytime you want to test them. Just google “UniformServer” for more info and where to download it.

  • Rich

    Thanks for the tip Arlandi

  • Rich

    Thanks for the tip Arlandi

  • Rich

    Thanks for the tip Arlandi

  • Alex

    hi,
    thanks so much for the tip, it really works fine.
    I have two name servers, after installing wamp server, where should I input them, so my website can be accessible in the internet?

    thanks,
    Alex


Computer tips in your inbox
Sign up for the Windows Guides newsletter to get PC tips and access to free Windows books (More details)

Enter your email address:
 

Popular Guides

See which sites have been visited on your PC (even if private browsing mode is used)

Create a Windows 7 System Repair Disc

Best Free Anti-malware

Hibernate vs. Sleep vs. Shut-Down

i3, i5, and i7; Dual, Quad, Hexa Core Processors. How to they Differ?

Intel's Ivy Bridge Processor: new Features

Submit Your Tip
Submit your computer tip to us; receive full credit for all published tips

Windows Guides on Facebook