Available Architectures: amd64
, i386
This repository will provide you a fully functional PHP-FPM 5.2.17 Docker image built from official sources nightly. Additional patches have been applied to enable FPM functionality. PHP 5.2 reached EOL on 06 Jan 2011 and thus, official docker support was dropped. It provides the base for Devilbox PHP-FPM Docker images.
Docker Hub | Upstream Project |
---|---|
Docker Tag | Description |
---|---|
latest |
Latest Debian Jessie image (default) |
jessie |
Latest Debian Jessie image |
stretch |
Latest Debian Stretch image |
[0-9]\.[0-9]+ |
Git tagged Debian Jessie image. E.g: 0.53 |
jessie-[0-9]\.[0-9]+ |
Git tagged Debian Jessie image. E.g: jessie-0.53 |
stretch-[0-9]\.[0-9]+ |
Git tagged Debian Stretch image. E.g: stretch-0.53 |
release-[0-9]\.[0-9]+ |
Git branch Debian Jessie image. E.g: release-0.53 |
jessie-release-[0-9]\.[0-9]+ |
Git branch Debian Jessie image. E.g: jessie-release-0.53 |
stretch-release-[0-9]\.[0-9]+ |
Git branch Debian Stretch image. E.g: stretch-release-0.53 |
Have a look at the following similar Devilbox base images for which no official versions exist yet:
In case you are looking for development and production ready PHP-FPM images for all versions, which have a vast amount of modules enabled by default go here:
In case you seek help, go and visit the community pages.
devilbox.readthedocs.io | gitter.im/devilbox | devilbox.discourse.group |
# Build the Docker image locally
make build
# Rebuild the Docker image locally without cache
make rebuild
# Test the Docker image after building
make test
Add the following FROM
line into your Dockerfile:
FROM devilbox/php-fpm-5.2:latest
If you need a dockerized version of PHP 5.2 or PHP-FPM 5.2 which provides a vast amount of modules enabled by default visit: devilbox/docker-php-fpm
Module | Built-in |
---|---|
ctype | ✔ |
curl | ✔ |
date | ✔ |
dom | ✔ |
filter | ✔ |
ftp | ✔ |
hash | ✔ |
iconv | ✔ |
json | ✔ |
libxml | ✔ |
mbstring | ✔ |
mhash | ✔ |
openssl | ✔ |
pcre | ✔ |
PDO | ✔ |
pdo_sqlite | ✔ |
posix | ✔ |
readline | ✔ |
recode | ✔ |
Reflection | ✔ |
session | ✔ |
SimpleXML | ✔ |
SPL | ✔ |
SQLite | ✔ |
standard | ✔ |
tokenizer | ✔ |
xml | ✔ |
xmlreader | ✔ |
xmlwriter | ✔ |
zlib | ✔ |
Create a temporary directory, navigate into it and copy/paste the commands below to get started.
mkdir htdocs
echo "<?php echo 'hello world';" > htdocs/index.php
docker run -d --rm --name devilbox-php-fpm-5-2 \
-v $(pwd)/htdocs:/var/www/default/htdocs devilbox/php-fpm-5.2
docker run -d --rm --name devilbox-nginx-stable \
-v $(pwd)/htdocs:/var/www/default/htdocs \
-e PHP_FPM_ENABLE=1 \
-e PHP_FPM_SERVER_ADDR=devilbox-php-fpm-5-2 \
-p 8080:80 \
--link devilbox-php-fpm-5-2 \
devilbox/nginx-stable
Open up your browser at http://127.0.0.1:8080
Web server | Status | Comments |
---|---|---|
Apache 2.2 | Fails with no input file specified |
- |
Apache 2.4 | works | Access/Error log via stdout/stderr or file works |
Nginx stable | works | Access/Error log via stdout/stderr or file works |
Nginx mainline | works | Access/Error log via stdout/stderr or file works |
- Make PHP-FPM 5.2 work with Apache 2.2
Copyright (c) 2022 cytopia