This is a basic LAMP stack environment built using Docker Compose. It consists of the following:
- PHP 7.1
- Apache 2.4
- MySQL 5.7
- phpMyAdmin
Clone this repository. Run docker-compose up -d
.
cd lamp_stack/
docker-compose up -d
Your LAMP stack is now ready to go!! You can access it via http://localhost
.
In ./www/cms
you can add your chosen CMS and access it via apache. The Document root is currently configured to look at ./www
but you can change this if you like in the docker-compose.yml
file.
Apache is configured to run on port 80. So, you can access it via http://localhost
.
The installed version of PHP is 7.1.
By default the following extensions are installed.
- mysqli
- mbstring
- zip
- intl
- mcrypt
- curl
- json
- iconv
- xml
- xmlrpc
- gd
If you want to install more extensions, update
./bin/webserver/Dockerfile
as you wish. Afterwards you have to rebuild the docker image by runningdocker-compose build
and restart the containers.
phpMyAdmin is configured to run on port 8080.
http://localhost:8080/
username: root
password: root