A lightweight, portable web development stack for Windows with Apache, PHP, MySQL, and phpMyAdmin.
- 📦 Download v0.1.1 ZIP (328 MB)
- Extract the zip file to a location of C Drive
- Rename Folder to MyWebStack
- Run
start-stack.batto launch the stack - Open your browser and navigate to http://localhost
That's it! Everything is pre-configured and ready to use.
If you prefer to build from source:
-
Clone the repository:
git clone https://github.com/techiemithlesh/mywebstack.git cd mywebstack -
Run the automated setup script (requires PowerShell):
powershell -ExecutionPolicy Bypass -File setup.ps1
This script will:
- Create all necessary directories
- Download and extract Apache, PHP, MySQL, and phpMyAdmin
- Apply configuration templates
- Create required symlinks
- Prepare the environment for use
-
Start the stack:
start-stack.bat
-
Open your browser and navigate to http://localhost
git clone https://github.com/techiemithlesh/mywebstack.git
cd mywebstackDownload and extract the following components:
Place the extracted components in the following directories:
mywebstack/
├── apache/ # Apache files (Apache24 folder)
├── php/ # PHP files
├── mysql/ # MySQL files
├── phpmyadmin/ # phpMyAdmin files (optional)
├── www/ # Your web projects go here
├── templates/ # Configuration templates
├── setup.ps1 # Automated setup script
├── start-stack.bat # Script to start the stack
└── stop-stack.bat # Script to stop the stack
Copy and customize the configuration templates:
-
Apache configuration:
templates/apache-httpd.conf.example → apache/Apache24/conf/httpd.conf -
PHP configuration:
templates/php-php.ini.example → php/php.ini -
MySQL configuration:
templates/mysql-my.ini.example → mysql/my.ini -
.htaccess file:
templates/.htaccess → Place into each project folder inside www/
- Run
start-stack.batto launch all services - Open your browser and navigate to http://localhost
- Your web projects in the
www/directory are now accessible
Run stop-stack.bat to safely shut down all services
Each project should be placed in its own directory under the www/ folder:
www/
├── project1/
│ ├── .htaccess
│ ├── index.php
│ └── ...
├── project2/
│ ├── .htaccess
│ ├── index.php
│ └── ...
└── phpmyadmin/ (symlink to ../phpmyadmin created by setup.ps1)
phpMyAdmin is available at http://localhost/phpmyadmin
- Open phpMyAdmin
- Click "New" in the left sidebar
- Enter a database name and click "Create"
- Create a new folder in the
www/directory - Copy the
.htaccessfile fromtemplates/into your project folder - Add your PHP files to the project folder
- Access your project at
http://localhost/your-project-folder
The pre-bundled release comes with everything you need:
- Zero Configuration Required - Just extract and run
- All Components Included:
- Apache 2.4.57
- PHP 7.4.33
- MySQL 8.0.36
- phpMyAdmin 5.2.1
- Pre-configured Settings - Optimized for development use
- Portable - Can be moved to any location or USB drive
- Instant Web Development Environment - No installation needed
Simply download, extract, and start developing immediately!
The setup.ps1 PowerShell script automates the setup process with these features:
- Automatic Directory Creation: Creates all necessary folders (apache, php, mysql, phpmyadmin, www, logs)
- Component Downloads: Automatically downloads and extracts the latest compatible versions of:
- Apache 2.4.57 (VS17)
- PHP 7.4.33
- MySQL 8.0.36
- phpMyAdmin 5.2.1
- Configuration: Copies template configuration files to their proper locations
- Symlink Creation: Creates a symbolic link to phpMyAdmin in the www directory
- Smart Checks: Only downloads components that aren't already present
To run the script:
powershell -ExecutionPolicy Bypass -File setup.ps1Note: You may need to run PowerShell as Administrator for symlink creation to work properly.
- This is a development stack and not recommended for production use
- Default MySQL credentials: root (no password)
- Remember to secure your installation if used on a public-facing network
- Port conflicts: Ensure ports 80 (Apache) and 3306 (MySQL) are available
- Service errors: Check the respective log files in each service directory
- Permission issues: Run the batch files as administrator if needed