Public Repository

Last pushed: 2 years ago
Short Description
Apache 2 with PHP 5.3
Full Description

Dockerfile

FROM abilashgt/apache2php53

MAINTAINER Abilash George Thomas

EXPOSE 80

CMD /usr/sbin/apache2ctl -D FOREGROUND

Build

sudo docker.io build -t temp-apache2php53 .

Run

sudo docker.io run -d -P –name a-apache2php53 \

-p 80:80 \

-v <web-path>/www:/App/www \

-v <apache2-config-path>/apache2/sites:/App/apache2.conf \

-v <apache2-log-path>/apache2/log:/App/apache2.log \

temp-apache2php53

Connect

docker exec -it a-apache2php53 bash

Notes

Important Locations:

/App/www - for storing website files

/App/apache2.conf - for storing apache site configurations

/App/apache2.log - for apache logs

Change-log

  1. Installed Apache2, PHP53
  2. Additional PHP Extensions
    a. php-pear
    b. php5-mysql
    c. php5-gd
  3. Additional PHP-Pear extensions:
    a. mongo.so
    b. apc.so
  4. Apache Modules:
    a. Rewrite
  5. PHP ini
Docker Pull Command
Owner
abilashgt