Php web server integrated with a mysql database
This is a guide for the deployment of this php server, no support will be provided
Check-out Installation for more information.
Needed programs
docker
docker-compose
Execute the following commands
git clone https://github.com/Javiito32/php-server.git
cd php-server
docker-compose up
Instead of docker-compose up you can use docker-compose up -d to start it in detached mode.
After the installation you can start and stop it with docker-compose start and docker-compose stop
Use docker-compose down to remove the php server, mysql server, and docker network's
docker-compose up is not recommended, check Start ✔️ and Stop 🛑 instead
✔️ This won't remove the workdir www or the data of the database mysql.
🧹 To clean the database, remove all the contents of the mysql folder.
Now the WebServer should be available at localhost:80
Use the www folder as your web workdir
cd www
The connection between PhP and MySQL is made via the created docker's network, you can also access it with this connection string
Server=localhost;Port=3306;Database=mainDB;Uid=root;Pwd=contrasenya;
You can modify the password and database name on docker-compose, make sure to change connection.php too.
This project is under AGPL-3.0-only - Checkout LICENSE for more detail
⌨️ with ❤️ by Javiito32 😊