Public Repository

Last pushed: 6 months ago
Short Description
ready to use container with apache2 + php7 running
Full Description

Note: PDO_MYSQL is NOT installed with this image.
To enable it:
apt-get install php7.0-mysql
service apache2 restart

Note: MOD REWRITE for apache is NOT installed with this image.
To enable it:
cd /etc/apache2/mods-enabled
ln -s ../mods-available/rewrite.load rewrite.load
service apache2 restart

A suggested way of running this is with the command below:

docker run -it --name APP_NAME -p 80:80 -v /path/to/files/on/host/:/var/www/html -v /path/to/project/vhosts/file/on/host/:/etc/apache2/sites-available/ --link mariadb:mariadb -d simonmallet/apache-php7-tpl:1.0 /bin/bash

View simonmallet/mariadb:1.0 to get the mariadb image.

-p 80:80 is for port mapping between host and container
-v is to map folders from host to container
--link will tell your container to link itself to the mariadb container.
-d means the RUN command will detach itself from the container after it has been executed
simonmallet/apache-php7-tpl:1.0 /bin/bash => which image to install + execute BASH at run time.

Docker Pull Command
Owner
simonmallet

Comments (0)