An Apache-MariaDB-PHP-phpMyAdmin Setup with Docker.
Make sure to have Docker and Docker Compose installed.
First you have to change the ownership of the public directory to the www-data group.
groupadd -g 33 www-data
sudo chown -R "$(whoami)":www-data ./public/Then set the password for the root user of the database by changing the value of MYSQL_ROOT_PASSWORD in the .env file.
Start DAMPP with docker-compose (You might need to run the command as root).
docker-compose up -dPut all your files for the web server in the public directory.
You can access phpMyAdmin on localhost:8080.