Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

docker-php

A Docker container for PHP version 5.3.29 that runs PHP in FPM (FastCGI Process Manager) mode.

Run the container

Using the docker command:

CONTAINER="httpddata" && sudo docker run \
  --name "${CONTAINER}" \
  -h "${CONTAINER}" \
  -v /httpd/data \
  simpledrupalcloud/data:latest

CONTAINER="php" && sudo docker run \
  --name "${CONTAINER}" \
  -h "${CONTAINER}" \
  -p 9000:9000 \
  --volumes-from httpddata \
  -d \
  simpledrupalcloud/php:5.3

Using the fig command

TMP="$(mktemp -d)" \
  && git clone http://git.simpledrupalcloud.com/simpledrupalcloud/docker-php.git "${TMP}" \
  && cd "${TMP}" \
  && git checkout 5.3 \
  && sudo fig up

Build the image

TMP="$(mktemp -d)" \
  && git clone http://git.simpledrupalcloud.com/simpledrupalcloud/docker-php.git "${TMP}" \
  && cd "${TMP}" \
  && git checkout 5.3 \
  && sudo docker build -t simpledrupalcloud/php:5.3 . \
  && cd -

Apache directives

<IfModule mod_fastcgi.c>
  AddHandler php .php

  Alias /php53 /httpd/php53
  FastCgiExternalServer /httpd/php53 -host 127.0.0.1:9000 -idle-timeout 300 -pass-header Authorization

  <Location /php53>
    Order deny,allow
    Deny from all
    Allow from env=REDIRECT_STATUS
  </Location>

  Action php /php53
</IfModule>

License

MIT

Docker Pull Command
Owner
martinant
Source Repository