devilbox/php-fpm-5.2

By devilbox

โ€ขUpdated about 3 years ago

Devilbox PHP-FPM 5.2 (base image) [multi-arch]

Image
3

10K+

devilbox/php-fpm-5.2 repository overview

โ 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 ProjectReference Implementation
Streamlined PHP-FPMโ  imagesThe 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 TagGit RefAvailable Architectures
latestโ masteramd64, i386
jessieโ masteramd64, i386
stretchโ masteramd64, 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 TagGit RefAvailable 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:

โ โˆข 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 serverStatusComments
Apache 2.2Fails with no input file specified-
Apache 2.4worksAccess/Error log via stdout/stderr or file works
Nginx stableworksAccess/Error log via stdout/stderr or file works
Nginx mainlineworksAccess/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.

โ ๐Ÿ‘ซ Community

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

โ ๐Ÿง˜ 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โ 

Tag summary

Content type

Image

Digest

sha256:92c190d6eโ€ฆ

Size

72.1 MB

Last updated

about 3 years ago

docker pull devilbox/php-fpm-5.2:jessie