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: 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 (
*_wpampfiles) that are turned into the realhttpd.conf,php.iniandmy.inion 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
wwwwith 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.
Apache port settings
MySQL port settings
How to Use
- Download wpAMP from GitHub (link below).
- Download the Apache, PHP and MySQL (or MariaDB) ZIP packages you need and extract them into
bin\apache,bin\php\<version>andbin\mysql\<version>. - Run wpAMP, choose your PHP and MySQL versions, and click Start All.
- Put your project in the
wwwfolder and openhttp://localhostin 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!








