Skip to content

Commit 10d51ac

Browse files
committed
Initial commit
0 parents  commit 10d51ac

File tree

1 file changed

+177
-0
lines changed

1 file changed

+177
-0
lines changed

README.md

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
# PHP-FPM 5.4
2+
3+
[![lint](https://github.com/devilbox/docker-php-fpm-5.4/workflows/lint/badge.svg)](https://github.com/devilbox/docker-php-fpm-5.4/actions?query=workflow%3Alint)
4+
[![build](https://github.com/devilbox/docker-php-fpm-5.4/workflows/build/badge.svg)](https://github.com/devilbox/docker-php-fpm-5.4/actions?query=workflow%3Abuild)
5+
[![nightly](https://github.com/devilbox/docker-php-fpm-5.4/workflows/nightly/badge.svg)](https://github.com/devilbox/docker-php-fpm-5.4/actions?query=workflow%3Anightly)
6+
7+
[![Tag](https://img.shields.io/github/tag/devilbox/docker-php-fpm-5.4.svg)](https://github.com/devilbox/docker-php-fpm-5.4/releases)
8+
[![Gitter](https://badges.gitter.im/devilbox/Lobby.svg)](https://gitter.im/devilbox/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
9+
[![Discourse](https://img.shields.io/discourse/https/devilbox.discourse.group/status.svg?colorB=%234CB697)](https://devilbox.discourse.group)
10+
[![](https://images.microbadger.com/badges/version/devilbox/php-fpm-5.4.svg)](https://microbadger.com/images/devilbox/php-fpm-5.4 "php-fpm-5.4")
11+
[![](https://images.microbadger.com/badges/image/devilbox/php-fpm-5.4.svg)](https://microbadger.com/images/devilbox/php-fpm-5.4 "php-fpm-5.4")
12+
[![License](https://img.shields.io/badge/license-MIT-%233DA639.svg)](https://opensource.org/licenses/MIT)
13+
14+
**Available Architectures:** `amd64`, `i386`, `arm64`, `arm/v7`, `arm/v6`, `ppc64le`, `s390x`, `mips64le`
15+
16+
This repository will provide you a fully functional PHP-FPM 5.4 Docker image built from [official sources](http://php.net) nightly. PHP 5.4 [reached EOL](http://php.net/eol.php) on 3 Sep 2015. It provides the base for [Devilbox PHP-FPM Docker images](https://github.com/devilbox/docker-php-fpm).
17+
18+
| Docker Hub | Upstream Project |
19+
|------------|------------------|
20+
| <a href="https://hub.docker.com/r/devilbox/php-fpm-5.4"><img height="82px" src="http://dockeri.co/image/devilbox/php-fpm-5.4" /></a> | <a href="https://github.com/cytopia/devilbox" ><img height="82px" src="https://raw.githubusercontent.com/devilbox/artwork/master/submissions_banner/cytopia/01/png/banner_256_trans.png" /></a> |
21+
22+
## Similar Base Images
23+
24+
Have a look at the following similar Devilbox base images for which no official versions exist yet:
25+
26+
* [PHP-FPM 5.2](https://github.com/devilbox/docker-php-fpm-5.2)
27+
* [PHP-FPM 5.3](https://github.com/devilbox/docker-php-fpm-5.3)
28+
* [PHP-FPM 5.4](https://github.com/devilbox/docker-php-fpm-5.4)
29+
* [PHP-FPM 5.5](https://github.com/devilbox/docker-php-fpm-5.5)
30+
* [PHP-FPM 7.4](https://github.com/devilbox/docker-php-fpm-7.4)
31+
* [PHP-FPM 8.0](https://github.com/devilbox/docker-php-fpm-8.0)
32+
* [PHP-FPM 8.1](https://github.com/devilbox/docker-php-fpm-8.1)
33+
* [PHP-FPM 8.2](https://github.com/devilbox/docker-php-fpm-8.2)
34+
35+
In case you are looking for development and production ready PHP-FPM images for all versions,
36+
which have a vast amount of modules enabled by default go here:
37+
38+
* [PHP-FPM](https://github.com/devilbox/docker-php-fpm)
39+
40+
## Documentation
41+
42+
In case you seek help, go and visit the community pages.
43+
44+
<table width="100%" style="width:100%; display:table;">
45+
<thead>
46+
<tr>
47+
<th width="33%" style="width:33%;"><h3><a target="_blank" href="https://devilbox.readthedocs.io">Documentation</a></h3></th>
48+
<th width="33%" style="width:33%;"><h3><a target="_blank" href="https://gitter.im/devilbox/Lobby">Chat</a></h3></th>
49+
<th width="33%" style="width:33%;"><h3><a target="_blank" href="https://devilbox.discourse.group">Forum</a></h3></th>
50+
</tr>
51+
</thead>
52+
<tbody style="vertical-align: middle; text-align: center;">
53+
<tr>
54+
<td>
55+
<a target="_blank" href="https://devilbox.readthedocs.io">
56+
<img title="Documentation" name="Documentation" src="https://raw.githubusercontent.com/cytopia/icons/master/400x400/readthedocs.png" />
57+
</a>
58+
</td>
59+
<td>
60+
<a target="_blank" href="https://gitter.im/devilbox/Lobby">
61+
<img title="Chat on Gitter" name="Chat on Gitter" src="https://raw.githubusercontent.com/cytopia/icons/master/400x400/gitter.png" />
62+
</a>
63+
</td>
64+
<td>
65+
<a target="_blank" href="https://devilbox.discourse.group">
66+
<img title="Devilbox Forums" name="Forum" src="https://raw.githubusercontent.com/cytopia/icons/master/400x400/discourse.png" />
67+
</a>
68+
</td>
69+
</tr>
70+
<tr>
71+
<td><a target="_blank" href="https://devilbox.readthedocs.io">devilbox.readthedocs.io</a></td>
72+
<td><a target="_blank" href="https://gitter.im/devilbox/Lobby">gitter.im/devilbox</a></td>
73+
<td><a target="_blank" href="https://devilbox.discourse.group">devilbox.discourse.group</a></td>
74+
</tr>
75+
</tbody>
76+
</table>
77+
78+
## Build
79+
80+
```bash
81+
# Build the Docker image locally
82+
make build
83+
84+
# Rebuild the Docker image locally without cache
85+
make rebuild
86+
87+
# Test the Docker image after building
88+
make test
89+
```
90+
91+
## Usage
92+
93+
Add the following `FROM` line into your Dockerfile:
94+
95+
```dockerfile
96+
FROM devilbox/php-fpm-5.4:latest
97+
```
98+
99+
## Available Modules
100+
101+
If you need a dockerized version of **PHP 5.4** or **PHP-FPM 5.4** which provides a vast amount of
102+
modules enabled by default visit: **[devilbox/docker-php-fpm](https://github.com/devilbox/docker-php-fpm)**
103+
104+
<!-- modules -->
105+
| Module | Built-in |
106+
|--------------|-----------|
107+
| Core ||
108+
| ctype ||
109+
| curl ||
110+
| date ||
111+
| dom ||
112+
| ereg ||
113+
| fileinfo ||
114+
| filter ||
115+
| hash ||
116+
| iconv ||
117+
| json ||
118+
| libxml ||
119+
| mysql ||
120+
| mysqlnd ||
121+
| openssl ||
122+
| pcre ||
123+
| PDO ||
124+
| pdo_sqlite ||
125+
| Phar ||
126+
| posix ||
127+
| readline ||
128+
| recode ||
129+
| Reflection ||
130+
| session ||
131+
| SimpleXML ||
132+
| SPL ||
133+
| sqlite3 ||
134+
| standard ||
135+
| tokenizer ||
136+
| xml ||
137+
| xmlreader ||
138+
| xmlwriter ||
139+
| zlib ||
140+
<!-- /modules -->
141+
142+
## Example
143+
144+
Create a temporary directory, navigate into it and copy/paste the commands below to get started.
145+
146+
#### 1. Setup hello world webpage
147+
```bash
148+
mkdir htdocs
149+
echo "<?php echo 'hello world';" > htdocs/index.php
150+
```
151+
152+
#### 2. Start PHP container
153+
```bash
154+
docker run -d --rm --name devilbox-php-fpm-5-3 \
155+
-v $(pwd)/htdocs:/var/www/default/htdocs devilbox/php-fpm-5.4
156+
```
157+
158+
#### 3. Start Nginx container
159+
```bash
160+
docker run -d --rm --name devilbox-nginx-stable \
161+
-v $(pwd)/htdocs:/var/www/default/htdocs \
162+
-e PHP_FPM_ENABLE=1 \
163+
-e PHP_FPM_SERVER_ADDR=devilbox-php-fpm-5-3 \
164+
-p 8080:80 \
165+
--link devilbox-php-fpm-5-3 \
166+
devilbox/nginx-stable
167+
```
168+
169+
#### 4. Open browser
170+
171+
Open up your browser at http://127.0.0.1:8080
172+
173+
## License
174+
175+
**[MIT License](LICENSE)**
176+
177+
Copyright (c) 2022 [cytopia](https://github.com/cytopia)

0 commit comments

Comments
 (0)