I have built a full LAMP stack that comes with the following:
- PHP 7.3.3
- HTTPS Virtualhost with holding page
Here’s how you get a full LAMP stack up and running in no time at all, which will be identical on any platform.
Firstly, install Docker and Virtualbox if you don’t have them. Then create a default base VM.
docker-machine create --driver virtualbox default
OK. So, first thing you need to do is start your VM:
docker-machine start docker-machine env eval $(docker-machine env)
You should run eval $(docker-machine env) in any other terminal tabs you open too, this sets up environment vars for setting up docker. Take a note of that IP address, and edit your /etc/hosts file
Ok, lets clone the LAMP stack:
git clone https://github.com/delboy1978uk/lamp cd lamp
This is another one off, build the image.
That’s it! Now start your docker image like this
and you can finally open your browser to