https://github.com/lchristmann/demo-lamp-stack
https://github.com/lchristmann/demo-lamp-stack
docker docker-compose lamp-stack
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/lchristmann/demo-lamp-stack
- Owner: lchristmann
- Created: 2023-11-14T09:20:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-14T09:26:04.000Z (over 2 years ago)
- Last Synced: 2025-02-25T10:41:34.089Z (over 1 year ago)
- Topics: docker, docker-compose, lamp-stack
- Language: PHP
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Demo LAMP Stack
This project demonstrates how to setup an application using the LAMP Stack (Linux, Apache, MySQL, PHP) using Docker Compose.
### Requirements:
- Docker
### Recommendations:
- Docker Desktop (includes Docker)
## Start, stop and destroy it
### Run it:
- execute `docker compose up` in the terminal
### Stop it and destroy it:
- press `Ctrl + C` in the terminal
- execute `docker compose down` in the terminal
## Look at it
### Administer the databse with phpMyAdmin:
- localhost:8001
### Pages of the PHP application:
- localhost or localhost:80 or localhost/index.php
- herefor you need to go in Docker Desktop into the `portal-1` container and execute `docker-php-ext-install mysqli`
- localhost/indexUsingPDO.php
- herefor you need to go in Docker Desktop into the `portal-1` container and execute `docker-php-ext-install pdo pdo_mysql`
- localhost/test.php