My Blog Menu

Recent
Article
Label
About

Saturday, November 28, 2026

wpAMP: A Lightweight Apache, PHP & MySQL Launcher for Windows (C++)

If you build PHP websites on Windows, you probably know the routine: install a big all-in-one package, wait for its control panel to load, and then fight with it every time a project needs a different PHP version. I wanted something smaller and faster, so I wrote my own. Meet wpAMP, a lightweight native Windows launcher for Apache, PHP and MySQL/MariaDB, written in C++.

wpAMP main window

wpAMP main window: pick a PHP version and a MySQL version, then start or stop them with one click.

What is wpAMP?

wpAMP is a small control panel for your local web server. It does not install anything into Windows. You simply download the Apache, PHP and MySQL ZIP packages you want, drop them into the bin folder, and wpAMP finds them automatically. You can keep several PHP runtimes side by side (from PHP 5.6 up to PHP 8.3) and several MySQL or MariaDB versions, then switch between them from a drop-down list.

Main Features

  • Tiny and native. Pure C++ and Win32, so it starts instantly and uses very little memory.
  • Switch PHP and MySQL versions from a drop-down, no reinstall needed.
  • One-click controls: Start/Stop All, Start/Stop Server, Start/Stop MySQL.
  • Port settings in the GUI for Apache and MySQL, with checks so both services never use the same port.
  • Config templates (*_wpamp files) that are turned into the real httpd.conf, php.ini and my.ini on every start.
  • Built-in log window with timestamps and error tags. No extra log files are written to your disk.
  • Crash monitoring. If Apache or MySQL stops unexpectedly, wpAMP tells you and shows the error output.
  • Safe MySQL shutdown using mysqladmin shutdown, so your InnoDB data is flushed properly instead of being killed.
  • Handy buttons: Clear Log, Browse www (opens your project folder) and Terminal (a Command Prompt in www with PHP, MySQL and Apache already in the PATH).
  • System tray support and single-instance protection.
  • High-DPI ready (version 1.4), so it looks sharp at 125%, 150% or 200% scaling on Windows 10 and 11.

Folder Structure

Everything lives inside the wpAMP folder, so you can even carry it on a USB drive:

wpAMP\
 ├─ bin\
 │   ├─ apache\                 (Apache HTTP Server)
 │   ├─ php\php-8.1.20\         (one folder per PHP version)
 │   ├─ php\php-8.3.20\
 │   └─ mysql\mysql-8.0.30\     (one folder per MySQL/MariaDB version)
 ├─ tmp\
 └─ www\                        (put your PHP projects here)

Configuration Templates

Instead of editing httpd.conf or php.ini directly, you edit a template whose name ends with _wpamp (for example httpd_wpamp.conf, php_wpamp.ini, my_wpamp.ini). When a service starts, wpAMP generates the real config file and replaces these placeholders for you:

  • {APACHE_PATH}, {PHP_PATH}, {MYSQL_PATH} - paths of the selected versions
  • {APACHE_PORT}, {MYSQL_PORT} - ports you set in the GUI
  • {PHP_MODULE_NAME}, {PHP_MODULE_FILE} - the right Apache module for the chosen PHP version
  • {TMP_PATH}, {WWW_PATH} - temp folder and web root

This is the trick that makes version switching painless: the same template works for PHP 7 and PHP 8, because wpAMP fills in the correct module name and DLL automatically.

Setting the Ports

Click the Config button next to Server or MySQL to change the port. The defaults are 80 for Apache and 3306 for MySQL.

wpAMP Apache port configuration

Apache port settings

wpAMP MySQL port configuration

MySQL port settings

How to Use

  1. Download wpAMP from GitHub (link below).
  2. Download the Apache, PHP and MySQL (or MariaDB) ZIP packages you need and extract them into bin\apache, bin\php\<version> and bin\mysql\<version>.
  3. Run wpAMP, choose your PHP and MySQL versions, and click Start All.
  4. Put your project in the www folder and open http://localhost in your browser.

If the MySQL data folder does not exist yet, wpAMP initializes it automatically on the first start.

Source Code

wpAMP is open source. You can find the full source code, the changelog and a ready-to-use build on GitHub:

https://github.com/faid-alfarisi/wpAMP

Feel free to try it, open an issue, or leave a comment below if you have ideas or find a bug. Happy coding!





Monday, September 21, 2020

C++ File Encryptor

 This simple C++ program can encrypt and decrypt a file with password.


Pros:

- Save password in file (so it can validate password when decrypt).

- Encryption method depend on your password (your password as encryption parameter).

Cons:

- If you understand how the password saved in file, you can easily find it.

 - Slow process. Especially with large file.




NOTE: This is the source code, if you don't have a C++ compiler, you can find the executable file in "bin\Debug\EncDecBin.exe".


Click HERE to download. Dropbox link.

Friday, September 14, 2018

VB6 File Renamer (Hide/Lock your Data)

Wanna hide your data content? just rename it all with random name from your PIN, no encryption or hide file needed.

All you need is browse the folder, create your pin and press lock. For example you create folder named "cache" and you lock it, nobody know what it was, all file and folder inside will be randomly renamed (depends on your PIN).

WARNING: Remember your PIN, you can't recover it form anywhere because your pin is your new generated file name, i'm NOT responsible if you forgot your PIN - DWYOR



Click HERE to download. Dropbox link.

Tuesday, April 10, 2018

Simple Bootstrap 3.3.7 Sidebar Navigation

A simple CSS to add sidebar navigation style for bootstrap 3.3.7

Add desktop sidebar


Fix mobile menu style


Visit my GitHub HERE to download this css.

Tuesday, July 25, 2017

Crash Bandicoot PSX 100% Save Game


This is all-region Crash Bandicoot 1, 2, 3, Crash Team Racing (CTR), and Crash Bash (CB) save game for Playstation / PSX / PSone.

This save game format is (*.MCR) which compatible with ePSXe and pSX emulator.

All-region means this save game contains:
  • USA/Canada [NTSC-U/C] Savegame
  • Europe [PAL] Savegame
  • Japan [NTSC-J] Savegame

Crash Bandicoot % Completion:
- Crash Bandicoot 100%
- Crash Bandicoot 2 100%
- Crash Bandicoot 3 105%
- Crash Team Racing 101%
- Crash Bash 200%

Click HERE to download. Dropbox link.