Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/houaryx/php_server_setup
Docker setup to quickly web server environment with Apache, PHP, MySQL, phpMyAdmin, Node.js, Npm, Composer, and Laravel. It also includes a simple PHP dashboard for managing directories
https://github.com/houaryx/php_server_setup
apache2 backend dashboard docker docker-compose full-stack laravel linux node php8 windows wsl
Last synced: 21 days ago
JSON representation
Docker setup to quickly web server environment with Apache, PHP, MySQL, phpMyAdmin, Node.js, Npm, Composer, and Laravel. It also includes a simple PHP dashboard for managing directories
- Host: GitHub
- URL: https://github.com/houaryx/php_server_setup
- Owner: houaryx
- Created: 2024-09-17T11:08:04.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-17T22:13:37.000Z (4 months ago)
- Last Synced: 2024-10-31T05:21:34.126Z (2 months ago)
- Topics: apache2, backend, dashboard, docker, docker-compose, full-stack, laravel, linux, node, php8, windows, wsl
- Language: PHP
- Homepage:
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP & MySQL Docker Setup
This repository provides a Docker setup to quickly deploy a web server environment with Apache, PHP, MySQL, phpMyAdmin, Node.js, npm, Composer, and Laravel. It also includes a simple PHP dashboard for managing directories.
## Prerequisites
- Unix Env or WSL for Windows
```
git clone https://github.com/houaryx/devops
```
- Docker installed on your machine
- Docker Compose (optional, but recommended for managing multi-container applications)## Setup
### 1. Clone the Repository
```bash
git clone https://github.com/houaryx/php_server_setup.git
cd php_server_setup
chmod +x wsl_server.sh
./wsl_server.sh
`````
### 2. Build the Docker Image
- To build the Docker image, run:
```bash
docker build -t my-php-app .
```
### 3. Run the Docker Container
- To run the Docker container with port mappings:
```bash
docker run -p 8080:80 -p 3306:3306 --name my-running-app my-php-app```
- Port 8080 will be used for accessing the web server.
- Port 3306 will be used for accessing the MySQL database.### 3. Accessing Services
- PHP Dashboard: http://localhost:8080/
- phpMyAdmin: http://localhost:8080/phpmyadmin
- PHP Info: http://localhost:8080/info.php### 4. Using the PHP Dashboard
- The PHP dashboard at http://localhost:8080/ allows you to:
- Create New Directories: Enter a name and click "Create Directory."
- Delete Directories: Enter the name of an existing directory and click "Delete Directory."
- View Existing Directories: The list of directories under /var/www/html will be displayed.
### MySQL Credentials
- Username: root
- Password: yourpassword (replace with your desired password in the Dockerfile or through environment variables)