Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/devilbox/docker-php-fpm-5.2

PHP-FPM 5.2 Docker Image (base image) [multi-arch]
https://github.com/devilbox/docker-php-fpm-5.2

devilbox docker docker-image dockerfile php php-fpm php-fpm52 php5 php52

Last synced: about 13 hours ago
JSON representation

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

Awesome Lists containing this project

README

        

# PHP-FPM 5.2

[![Tag](https://img.shields.io/github/tag/devilbox/docker-php-fpm-5.2.svg)](https://github.com/devilbox/docker-php-fpm-5.2/releases)
[![](https://img.shields.io/badge/github-devilbox%2Fdocker--php--fpm--5.2-red.svg)](https://github.com/devilbox/docker-php-fpm-5.2 "github.com/devilbox/docker-php-fpm-5.2")
[![lint](https://github.com/devilbox/docker-php-fpm-5.2/workflows/lint/badge.svg)](https://github.com/devilbox/docker-php-fpm-5.2/actions?query=workflow%3Alint)
[![build](https://github.com/devilbox/docker-php-fpm-5.2/workflows/build/badge.svg)](https://github.com/devilbox/docker-php-fpm-5.2/actions?query=workflow%3Abuild)
[![nightly](https://github.com/devilbox/docker-php-fpm-5.2/workflows/nightly/badge.svg)](https://github.com/devilbox/docker-php-fpm-5.2/actions?query=workflow%3Anightly)
[![License](https://img.shields.io/badge/license-MIT-%233DA639.svg)](https://opensource.org/licenses/MIT)

[![Discord](https://img.shields.io/discord/1051541389256704091?color=8c9eff&label=Discord&logo=discord)](https://discord.gg/2wP3V6kBj4)
[![Discourse](https://img.shields.io/discourse/https/devilbox.discourse.group/status.svg?colorB=%234CB697&label=Discourse&logo=discourse)](https://devilbox.discourse.group)

**Available Architectures:** `amd64`, `i386`

[![](https://img.shields.io/docker/pulls/devilbox/php-fpm-5.2.svg)](https://hub.docker.com/r/devilbox/php-fpm-5.2)

This repository will provide you a fully functional PHP-FPM 5.2.17 Docker image built from [official sources](http://museum.php.net) nightly. Additional patches have been applied to enable FPM functionality. PHP 5.2 [reached EOL](https://secure.php.net/eol.php) on 06 Jan 2011 and thus, official docker support was dropped. It provides the base for [Devilbox PHP-FPM Docker images](https://github.com/devilbox/docker-php-fpm).

> ##### ๐Ÿฑ GitHub: [devilbox/docker-php-fpm-5.2](https://github.com/devilbox/docker-php-fpm-5.2)

| Upstream Project | Reference Implementation |
|:----------------:|:------------------------:|
| | |
| Streamlined [PHP-FPM](https://github.com/devilbox/docker-php-fpm) images | The [Devilbox](https://github.com/cytopia/devilbox) |

## ๐Ÿ‹ Available Docker tags

[![](https://img.shields.io/docker/pulls/devilbox/php-fpm-5.2.svg)](https://hub.docker.com/r/devilbox/php-fpm-5.2)

[`latest`][tag_latest] [`jessie`][tag_jessie] [`stretch`][tag_stretch]

```bash
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](https://github.com/devilbox/docker-php-fpm-5.2/workflows/nightly/badge.svg)](https://github.com/devilbox/docker-php-fpm-5.2/actions?query=workflow%3Anightly)

| Docker Tag | Git Ref | Available Architectures |
|---------------------------------|--------------|-----------------------------------|
| **[`latest`][tag_latest]** | master | `amd64`, `i386` |
| [`jessie`][tag_jessie] | master | `amd64`, `i386` |
| [`stretch`][tag_stretch] | master | `amd64`, `i386` |

[tag_latest]: https://github.com/devilbox/docker-php-fpm-5.2/blob/master/Dockerfiles/Dockerfile.latest
[tag_jessie]: https://github.com/devilbox/docker-php-fpm-5.2/blob/master/Dockerfiles/Dockerfile.jessie
[tag_stretch]: https://github.com/devilbox/docker-php-fpm-5.2/blob/master/Dockerfiles/Dockerfile.stretch

#### 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](https://github.com/devilbox/docker-php-fpm-5.2/workflows/build/badge.svg)](https://github.com/devilbox/docker-php-fpm-5.2/actions?query=workflow%3Abuild)

| Docker Tag | Git Ref | Available Architectures |
|---------------------------------|--------------|-----------------------------------|
| **[``][tag_latest]** | git: `` | `amd64`, `i386` |
| [`jessie-`][tag_jessie] | git: `` | `amd64`, `i386` |
| [`stretch-`][tag_stretch] | git: `` | `amd64`, `i386` |

> ๐Ÿ›ˆ Where `` 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](https://github.com/devilbox/docker-php-fpm)**

> ๐Ÿ›ˆ Click below listed extensions for details:

| Extension | Built-in |
|--------------------------------|-----------|
| [ctype][lnk_ctype] | โœ“ |
| [curl][lnk_curl] | โœ“ |
| [date][lnk_date] | โœ“ |
| [dom][lnk_dom] | โœ“ |
| [filter][lnk_filter] | โœ“ |
| [ftp][lnk_ftp] | โœ“ |
| [hash][lnk_hash] | โœ“ |
| [iconv][lnk_iconv] | โœ“ |
| [json][lnk_json] | โœ“ |
| [libxml][lnk_libxml] | โœ“ |
| [mbstring][lnk_mbstring] | โœ“ |
| [mhash][lnk_mhash] | โœ“ |
| [openssl][lnk_openssl] | โœ“ |
| [pcre][lnk_pcre] | โœ“ |
| [PDO][lnk_pdo] | โœ“ |
| [pdo_sqlite][lnk_pdo_sqlite] | โœ“ |
| [posix][lnk_posix] | โœ“ |
| [readline][lnk_readline] | โœ“ |
| [recode][lnk_recode] | โœ“ |
| [Reflection][lnk_reflection] | โœ“ |
| [session][lnk_session] | โœ“ |
| [SimpleXML][lnk_simplexml] | โœ“ |
| [SPL][lnk_spl] | โœ“ |
| [SQLite][lnk_sqlite] | โœ“ |
| [standard][lnk_standard] | โœ“ |
| [tokenizer][lnk_tokenizer] | โœ“ |
| [xml][lnk_xml] | โœ“ |
| [xmlreader][lnk_xmlreader] | โœ“ |
| [xmlwriter][lnk_xmlwriter] | โœ“ |
| [zlib][lnk_zlib] | โœ“ |

[lnk_ctype]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/ctype
[lnk_curl]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/curl
[lnk_date]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/date
[lnk_dom]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/dom
[lnk_filter]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/filter
[lnk_ftp]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/ftp
[lnk_hash]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/hash
[lnk_iconv]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/iconv
[lnk_json]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/json
[lnk_libxml]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/libxml
[lnk_mbstring]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/mbstring
[lnk_mhash]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/mhash
[lnk_openssl]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/openssl
[lnk_pcre]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/pcre
[lnk_pdo]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/pdo
[lnk_pdo_sqlite]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/pdo_sqlite
[lnk_posix]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/posix
[lnk_readline]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/readline
[lnk_recode]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/recode
[lnk_reflection]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/reflection
[lnk_session]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/session
[lnk_simplexml]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/simplexml
[lnk_spl]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/spl
[lnk_sqlite]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/sqlite
[lnk_standard]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/standard
[lnk_tokenizer]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/tokenizer
[lnk_xml]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/xml
[lnk_xmlreader]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/xmlreader
[lnk_xmlwriter]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/xmlwriter
[lnk_zlib]: https://github.com/devilbox/docker-php-fpm/tree/master/php_modules/zlib

## โˆข Build

Build the Docker image locally
```bash
make build
```
Rebuild the Docker image locally without cache
```bash
make rebuild
```
Test the Docker image after building
```bash
make test
```

## ๐Ÿ–ณ Usage

Add the following `FROM` line into your Dockerfile:

```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
```bash
mkdir htdocs
echo " htdocs/index.php
```

#### 2. Start PHP container
```bash
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
```bash
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:

* **[`PHP-FPM 5.2`](https://github.com/devilbox/docker-php-fpm-5.2)** **[`PHP-FPM 5.3`](https://github.com/devilbox/docker-php-fpm-5.3)** **[`PHP-FPM 5.4`](https://github.com/devilbox/docker-php-fpm-5.4)** **[`PHP-FPM 5.5`](https://github.com/devilbox/docker-php-fpm-5.5)**
* **[`PHP-FPM 8.0`](https://github.com/devilbox/docker-php-fpm-8.0)** **[`PHP-FPM 8.1`](https://github.com/devilbox/docker-php-fpm-8.1)** **[`PHP-FPM 8.2`](https://github.com/devilbox/docker-php-fpm-8.2)** **[`PHP-FPM 8.3`](https://github.com/devilbox/docker-php-fpm-8.3)**

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](https://github.com/devilbox/docker-php-fpm)**

> ๐Ÿ›ˆ For details see **[Documentation: Base Images](https://github.com/devilbox/docker-php-fpm/blob/master/doc/base-images.md)**

## ๐Ÿ–ค 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.



๐Ÿ“˜ Documentation


๐ŸŽฎ Discord


๐Ÿ—ช Forum























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

## ๐Ÿง˜ Maintainer

**[@cytopia](https://github.com/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. ๐Ÿ–ค

* [GitHub Sponsorship](https://github.com/sponsors/cytopia)
* [Patreon](https://www.patreon.com/devilbox)
* [Open Collective](https://opencollective.com/devilbox)

**Findme:**
**๐Ÿฑ** [cytopia](https://github.com/cytopia) / [devilbox](https://github.com/devilbox) |
**๐Ÿ‹** [cytopia](https://hub.docker.com/r/cytopia/) / [devilbox](https://hub.docker.com/r/devilbox/) |
**๐Ÿฆ** [everythingcli](https://twitter.com/everythingcli) / [devilbox](https://twitter.com/devilbox) |
**๐Ÿ“–** [everythingcli.org](http://www.everythingcli.org/)

**Contrib:** PyPI: [cytopia](https://pypi.org/user/cytopia/) **ยท**
Terraform: [cytopia](https://registry.terraform.io/namespaces/cytopia) **ยท**
Ansible: [cytopia](https://galaxy.ansible.com/cytopia)

## ๐Ÿ—Ž License

**[MIT License](LICENSE)**

Copyright (c) 2022 [cytopia](https://github.com/cytopia)