A ready-to-use LAMP stack (Linux, Apache, MySQL, PHP) development environment configured for Gitpod. This project provides a Dockerized Apache web server setup with MySQL and PHP support, allowing you to spin up a full web development environment in the cloud with a single click.
Note: This repository is a fork of gitpod-io/apache-example.
- Pre-configured Apache 2.4 web server running on port 8080
- MySQL database server with custom configuration
- PHP support via
libapache2-mod-php - Custom minimal Apache configuration
- Automatic log tailing with
multitail - One-click Gitpod workspace launch
- A Gitpod account (free tier available)
- A web browser
-
Click the button below to open this project in Gitpod:
-
Gitpod will automatically:
- Build the Docker image with Apache, MySQL, and PHP
- Start the Apache web server
- Start the MySQL database
- Open a preview of the running site
| Command | Description |
|---|---|
apachectl start |
Start the Apache web server |
apachectl stop |
Stop the Apache web server |
gp open /var/log/apache2/access.log |
Open the Apache access log in the editor |
gp open /var/log/apache2/error.log |
Open the Apache error log in the editor |
multitail /var/log/apache2/access.log -I /var/log/apache2/error.log |
Follow logs in the terminal |
apache-example/
├── apache/
│ └── apache.conf # Custom Apache configuration
├── mysql/
│ └── mysql.cnf # MySQL server configuration
├── www/
│ └── index.html # Document root (served files)
├── .gitpod.dockerfile # Docker image definition for Gitpod
└── .gitpod.yml # Gitpod workspace configuration
- Web content: Place your HTML, PHP, and other files in the
www/directory. - Apache config: Modify
apache/apache.confto change server behaviour. - MySQL config: Modify
mysql/mysql.cnfto adjust database settings.
This project is licensed under the MIT License. See the LICENSE file for details.
