Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apache Example (LAMP Stack on Gitpod)

Dockerfile HTML5 License: MIT Last Commit

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.

Features

  • 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

Prerequisites

  • A Gitpod account (free tier available)
  • A web browser

Getting Started

  1. Click the button below to open this project in Gitpod:

    Open in Gitpod

  2. 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

Usage

Terminal Commands

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

Project Structure

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

Customisation

  • Web content: Place your HTML, PHP, and other files in the www/ directory.
  • Apache config: Modify apache/apache.conf to change server behaviour.
  • MySQL config: Modify mysql/mysql.cnf to adjust database settings.

Screenshot

Screenshot

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

LAMP stack (Apache, MySQL, PHP) development environment configured for Gitpod cloud workspaces

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages