Skip to content

Latest commit

 

History

History
355 lines (271 loc) · 17.4 KB

README.md

File metadata and controls

355 lines (271 loc) · 17.4 KB

PHP-FPM 5.2

Tag lint build nightly License

Discord Discourse

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.

Upstream Project Reference Implementation
Streamlined PHP-FPM images The Devilbox

🐋 Available Docker tags

latest jessie stretch

docker pull devilbox/php-fpm-5.2

Rolling releases

The following Docker image tags are rolling releases and are built and updated every night.

nightly

Docker Tag Git Ref Available Architectures
latest master amd64, i386
jessie master amd64, i386
stretch master amd64, i386

Point in time releases

The following Docker image tags are built once and can be used for reproducible builds. Its version never changes so you will have to update tags in your pipelines from time to time in order to stay up-to-date.

build

Docker Tag Git Ref Available Architectures
<tag> git: <tag> amd64, i386
jessie-<tag> git: <tag> amd64, i386
stretch-<tag> git: <tag> amd64, i386

🛈 Where <tag> refers to the chosen git tag from this repository.

∑ Environment Variables

None

🖧 Exposed Ports

PHP-FPM listening port 9000

📂 Volumes

None

✰ Available Extensions

If you need a dockerized version of PHP 5.2 or PHP-FPM 5.2 which provides a vast amount of extensions enabled by default visit: devilbox/docker-php-fpm

🛈 Click below listed extensions for details:

Extension 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

∢ Build

Build the Docker image locally

make build

Rebuild the Docker image locally without cache

make rebuild

Test the Docker image after building

make test

🖳 Usage

Add the following FROM line into your Dockerfile:

FROM devilbox/php-fpm-5.2:latest

💡 Examples

Create a temporary directory, navigate into it and copy/paste the commands below to get started.

1. Setup hello world webpage

mkdir htdocs
echo "<?php echo 'hello world';" > htdocs/index.php

2. Start PHP container

docker run -d --rm --name devilbox-php-fpm-5.2 \
  -v $(pwd)/htdocs:/var/www/default/htdocs devilbox/php-fpm-5.2

3. Start Nginx container

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

4. Open browser

Open up your browser at http://127.0.0.1:8080

⚠ Limitations

Currently it does not work with Apache 2.2. See matrix below for usage.

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

🔁 Similar Base Images

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: PHP-FPM

🛈 For details see Documentation: Base Images

🖤 Sister Projects

Show some love for the following sister projects.

🖤 Project 🐱 GitHub 🐋 DockerHub
Devilbox
docker-php-fpm devilbox/php-fpm
docker-php-fpm-community devilbox/php-fpm-community
docker-mysql devilbox/mysql
docker-apache-2.2
docker-apache-2.4
docker-nginx-stable
docker-nginx-mainline
devilbox/apache-2.2
devilbox/apache-2.4
devilbox/nginx-stable
devilbox/nginx-mainline

👫 Community

In case you seek help, go and visit the community pages.

devilbox.readthedocs.io discord/devilbox devilbox.discourse.group

🧘 Maintainer

@cytopia

I try to keep up with literally over 100 projects besides a full-time job. If my work is making your life easier, consider contributing. 🖤

Findme: 🐱 cytopia / devilbox | 🐋 cytopia / devilbox | 🐦 everythingcli / devilbox | 📖 everythingcli.org

Contrib: PyPI: cytopia · Terraform: cytopia · Ansible: cytopia

🗎 License

MIT License

Copyright (c) 2022 cytopia