Sign inSign up

cs2ag/php5.6-devtest

By cs2ag

•Updated about 9 years ago

A Docker container with PHP-FPM 5.6 based on php:5.6-fpm-alpine.

Image
6

100K+

cs2ag/php5.6-devtest repository overview

⁠PHP-FPM 5.6 Docker container

A Docker container with PHP-FPM 5.6 based on php:5.6-fpm-alpine.

⁠Important information

PHP-FPM is running with uid/gid 1008.

⁠PHP-FM 5.6 Docker container

Alpine 3.4

PHP-FPM 5.6

⁠Following PHP extensions are available:

curl

gd

geoip (pecl)

iconv

imagick (pecl)

imap

intl

ldap

memcache (pecl)

mcrypt

mysqli

opcache

pdo

pdo_mysql

redis (pecl)

soap

xdebug (pecl)

xsl

⁠php.ini

A custom php.ini file is added to the image (/usr/local/etc/php/php.ini). If you want/need, you can either overwrite it with a mount or rebuild the image with an adapted php.ini.

⁠Usage

You need to define a host directory with php files (usually document root) which will be mounted into the container. You need to set the mount point to the same directory as on host computer, as otherwise PHP-FPM won't find the files. Please note, that mounting a php.ini file is optional and not required.

docker run -d \
  -v SOME_HOST_DIRECTORY_WITH_PHP_FILES:SAME_DIRECTORY_AS_ON_HOST \
  -v PATH_TO_PHP_INI_FILE:/usr/local/etc/php/php.ini \
  --name cs2php56 \
  -p 9000:9000 \
  cs2ag/php5.6-devtest

⁠Exposing ports

The following ports can be exposed in order to use Varnish on container host:

9000 PHP-FPM port

⁠Author


Tag summary

Content type

Image

Digest

Size

151.2 MB

Last updated

about 9 years ago

docker pull cs2ag/php5.6-devtest