Set up WAMP from scratch! Full Stack Web Developer

Опубликовано: 04 Август 2026
на канале: Flavor Of The Month
1,032
23

This tutorial explains how to set up a WAMP server from scratch. This is a fully customizable server. This differs from WAMPServer, which is a separate program that is pre-configured. Many developers at companies set up custom servers like this for security purposes, and for the customization. The tutorial will show you how to set up your server, and explain why each step is taken.

0:00 - Introduction to setting up the WAMP web stack
0:17 - Setting up Apache
2:57 - Installing Apache as a service
6:00 - Installing PHP
7:58 - Configuring PHP with Apache
12:00 - Verifying PHP setup
13:02 - Installing MySQL
15:25 - Configuring PHP to connect to MySQL
18:00 - Checking PHP and MySQL connection
20:38 - Creating a test script to verify database connection
22:44 - Final verification and conclusion

Chapter Timestamps generated with my tool, YTagent.ai. Try it free, no sign up required!

Did you like my video? Please consider buying me a coffee! :)
coff.ee/flavorofthemonth

**See pinned comment for full scripts, YouTube doesn't allow that code to be inserted into this description.

https://www.apachelounge.com

Navigate to apache in the command prompt:
cd C:\Apache24\bin

Install Apache as a service
httpd.exe -k install
hpttd.exe -k start



INSTALLING PHP

https://www.php.net/downloads

Go to the Windows Downloads section. Make sure you get the "Thread Safe" version! Example: "VS16 x64 Thread Safe" download zip

FIND THE EXTENSION DIRECTORY:
Open php.ini, press "CTRL+F" to find, then type in "extension_dir"



UPDATING HTTPD.CONF TO FIND PHP:


LoadModule php_module "C:/PHP/php8apache2_4.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/PHP"


UPDATING THE INDEX.PHP FILE TO TEST IF PHP IS WORKING:


MySQL Community Link
https://dev.mysql.com/downloads/insta...


UPDATING PHP.INI FOR MYSQL
Edit php.ini.
Uncomment extension=mysqli and extension=pdo_mysqli

DBeaver:
https://dbeaver.io/download/

Tutorial MySQL Login:
root
password

DBeaver note: if you are prompted to install mysql drivers, that's normal. Click install. This will just allow dbeaver to have what it needs to work with MySQL
Dbeaver note2: ensure the Driver Properties value "allowPublicKyeRetrieval" is set to "TRUE"

TESTING MYSQL WITH mysql-test.php. Create a new file in C:/Apache24/htdocs:
**See comments, I couldn't paste this here