iCode Training Solutions ← Back to the iCode course
Free Beginner Tutorial

How to Turn Your Windows Laptop Into a Web Development Server Using WAMP

Before you can build a PHP and MySQL web application on your own computer, you need a local web server. This guide shows you how to set up WAMP and confirm that Apache, PHP and MySQL are working correctly.

What is WAMP?

WAMP is a Windows development environment that gives your laptop the main components needed to run PHP web applications locally: Windows, Apache, MySQL/MariaDB and PHP.

Instead of uploading every change to an internet server, you can build and test your application directly on your own laptop using localhost.

What You Need Before You Start

iCode course students: use the installer package provided with your course so that your development environment matches the training material.

Step 1: Install the Required Visual C++ Packages

WAMP depends on Microsoft Visual C++ runtime libraries. Install the required x86 and x64 redistributable packages before installing WAMP.

  1. Run the x86 Visual C++ Redistributable installer.
  2. Complete the installation.
  3. Run the x64 Visual C++ Redistributable installer.
  4. Restart Windows if the installer requests it.

Step 2: Install WAMP Server

  1. Right-click the WAMP installer and choose Run as administrator.
  2. Accept the licence agreement.
  3. Use the default installation folder unless you have a specific reason to change it.
  4. For a standard 64-bit installation, the folder is normally C:\wamp64.
  5. Complete the installation and allow WAMP through Windows security prompts when required.
Avoid installing your web projects inside folders such as Documents, Desktop or OneDrive. For this training, keep projects under the WAMP web root so the folder structure stays simple.

Step 3: Start WAMP

Start WAMP Server from the Windows Start menu or desktop shortcut. A WAMP icon should appear in the Windows system tray.

Wait for the icon to become green. A green icon normally means the Apache web server and database service are running.

Step 4: Test Localhost

Open your web browser and enter:

http://localhost/

If the WAMP home page appears, your local web server is running successfully.

Checkpoint: If http://localhost/ opens correctly and your WAMP icon is green, the basic web server setup is working.

Step 5: Find the Web Project Folder

WAMP normally serves websites from its www directory. With a standard installation, that is:

C:\wamp64\www

Every project folder you create inside this directory can be opened through your browser using localhost.

Step 6: Create Your First PHP Page

Create a folder:

C:\wamp64\www\myfirstapp

Inside it, create a file called index.php containing:

<?php

echo "My local web server is working!";

Now open:

http://localhost/myfirstapp/

You should see:

My local web server is working!

Step 7: Open phpMyAdmin

WAMP also gives you a browser-based database administration tool called phpMyAdmin. Open:

http://localhost/phpmyadmin/

You will use phpMyAdmin later to create databases, create tables, inspect data and run SQL commands while learning MySQL.

What You Have Achieved

You now have the foundation of a local web development environment:

Common Problem: WAMP Icon Does Not Turn Green

If the WAMP icon stays orange or red, one of its services may not have started. Common causes include another program already using the web-server port, missing Visual C++ runtime packages, or a service that failed to start.

Do not continue to the application-development stage until http://localhost/ is working correctly.

Ready to Build a Real Application?

iCode Training Solutions teaches practical web application development in Vanuatu using PHP, CodeIgniter 4, MySQL and AdminLTE.

Register Your Interest