Installing on Windows
For performance reasons, we recommend using WSL2 on Windows hosts with Ubuntu 20.04 installed
Docker Desktop with WSL2 enabled. All
docker-compose commands should be run inside
Ubuntu 20.04 in WSL. You will be able to access a bash shell for Ubuntu 20.04 from the Windows
Installing magicLAMP is easy.
Run the following commands on your host system.
git clone https://github.com/chrisnharvey/magicLAMP cd magicLAMP cp .env.example .env
Now modify the .env file to suit your needs.
.env already provides sane defaults, but you may want to change these to suit
For Windows users, we recommend storing your projects directory inside WSL2.
See here for more information.
Run the following commands to pull down the containers and start them:
docker-compose pull docker-compose up -d
Step 4 (optional)
See their respective documentation for information on how to set them up.
If you have Automatic DNS setup, you can now visit any of your projects
using any PHP version by visiting
<project-name>.<php-version>.localhost in your browser
You can also access the magicLAMP shell which by typing
.\shell.cmd on Windows).