Apache2 with php5 and MariaDB 10.0 on Ubuntu 14.04 LTS
This is a docker images mixed of nimmis/apache-php5 and nimmis/mariadb
with a little modification
mod_rewrite
enablecomposer
bash
access to the container8080
:
docker run -d -p 8080:80 inoshadi/docker-lamp
/var/www/html
with your local files in /home/inoshadi/html
:
docker run -d -p 8080:80 -v /home/inoshadi/html:/var/www/html inoshadi/docker-lamp
myrootpass
use this command:
docker run -d -p 8080:80 -v /home/inoshadi/html:/var/www/html -e DB_ROOT_PASSWORD=myrootpass inoshadi/docker-lamp
http://localhost:8080
-d
flag so it will run in the background.
docker ps
f3d960a8b31f
run:
docker exec -ti f3d960a8b31f /bin/bash
root@f3d960a8b31f:~#
_conf/000-default.conf
ServerName localhost
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/html></Directory>
Options Indexes FollowSymLinks
DirectoryIndex index.php index.html
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
trusty/source.list
# Override default mirror to http://buaya.klas.or.id/ubuntu/trusty/source.list
# Override default mirror to http://kambing.ui.ac.id/ubuntu/