A ready-to-use LAMP stack (Linux, Apache, MySQL, PHP) development environment powered by GitHub Codespaces. Fork this repository, open it in Codespaces, and start building PHP web applications instantly -- no local setup required.
- Ubuntu 22.04 base image with Apache, MySQL, and PHP pre-installed
- Pre-configured Dev Container with automatic service startup
- PHP extensions included:
mysql,curl,gd,intl,mbstring,soap,xml,xmlrpc,zip - VS Code extensions for PHP IntelliSense, Xdebug, Git Graph, and Docker
- Sample landing page displaying PHP environment information
- A GitHub account
- Access to GitHub Codespaces
- Fork this repository to your own GitHub account.
- Click the green Code button and select Open with Codespaces.
- Create a new Codespace. The Dev Container will automatically:
- Build the LAMP stack Docker image
- Start Apache and MySQL services
- Forward ports 80 (HTTP) and 3306 (MySQL)
- Once the Codespace is ready, open the Ports tab and click the forwarded port 80 to view the sample page.
- Edit or add PHP files in the
public/directory. Apache serves content from this folder. - Access MySQL via the terminal using
mysql -u root. - The sample page at
public/index.phpdisplays your PHP version, server software, and document root.
codespaces-lamp/
├── .devcontainer/
│ ├── Dockerfile # Ubuntu 22.04 + Apache + MySQL + PHP
│ └── devcontainer.json # Codespaces / Dev Container configuration
├── public/
│ └── index.php # Sample landing page
├── LICENSE
└── README.md
This project is licensed under the MIT License.