Wednesday, January 27, 2016

How to Install WampServer on Windows — Step-by-Step Guide

WAMP (Windows, Apache, MySQL, PHP) is an all-in-one package that installs the basic programs required to run a localhost and build PHP applications. Once installation completes, WampServer provides a tray icon for managing services and settings.

Prerequisites

  • A Windows machine (choose the appropriate 32-bit or 64-bit package depending on your OS).
  • Internet access to download the installer.

Download

Download WampServer from the official site:

Step-by-step installation

  1. Select the correct installer (32-bit or 64-bit) for your Windows installation and download the package. You will see a WampServer installer file at your download location.

  2. Double-click the installation package. Windows may show a security warning — this is expected when running third-party installers. Click Run to proceed.

WampServer installer icon

  1. You will see the standard Windows setup wizard. Proceed through the initial dialogs.

Setup wizard screenshot

  1. Agree to the WampServer license to continue.

License agreement screenshot

  1. Choose the installation location. The author recommends installing WampServer on a drive other than the Windows system drive (for example, D: or E: instead of C:). After selecting the folder, click Next.

Choose installation location

  1. Select additional tasks (optional):
  • Create a Quick Launch icon
  • Create a Desktop icon

Select additional tasks

  1. Click Install to begin the installation.

Installing WampServer progress

  1. The installer copies files and configures bundled services (Apache, MySQL, PHP, phpMyAdmin, SqlBuddy).

Installation progress screenshot

  1. During installation you may be prompted to select a default browser for WampServer (used by some WampServer utilities). If unsure, click Open; Internet Explorer will be the default choice if none is selected.

Choose default browser dialog

  1. After the installer finishes copying files, setup continues with Apache configuration. Windows Firewall may prompt for access. Leave the default options and click "Allow Access" so Apache can accept local connections (this dialog may not appear if Windows Firewall is disabled).

Windows Firewall allow access dialog

  1. You will be prompted for SMTP settings used by PHP's mail() function. The author recommends the following default values during installation:
SMTP: localhost
Email: your-email@example.com

(You can change these later to point to a real SMTP server if required.)

SMTP configuration dialog

  1. Finish the installation and leave "Launch Wamp Server now" checked to start the services immediately.

Installation finished - click Finish

WampServer tray icon states

WampServer adds a tray icon that reflects service status:

  • Red: WampServer is offline; Apache, PHP and MySQL services are not started.
  • Yellow: WampServer is partially offline; one or more services failed to start.
  • Green: All services are running and the development server is ready to use.

WampServer icon states

Yellow state screenshot

Green state screenshot

Testing WampServer

  1. Ensure the WampServer tray icon is green.
  2. Open your web browser and navigate to:
http://127.0.0.1/

or

http://localhost/
  1. If the installation was successful you will see the WampServer welcome screen and server configuration options.

WampServer welcome screen

Final notes

  • After successful installation you will have Apache, MySQL, PHP, phpMyAdmin and SqlBuddy available locally.
  • You are now ready to develop PHP/MySQL applications on your machine.

If you maintain other tutorials on this blog, link from here to:

  • a phpMyAdmin guide,
  • a first PHP page tutorial using localhost,
  • a troubleshooting guide for WampServer service start failures.

These help readers go from installation to practical usage without leaving the site.

No comments: