Skip to content
PHP-FPM 7.4 Docker Image (base image only)
Dockerfile Shell Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data Convert to PHP 7.4 Nov 2, 2018
tests
.dockerignore Convert to PHP 7.4 Nov 2, 2018
.gitignore Initial commit Oct 22, 2017
.travis.yml Reflect Modules in README Feb 9, 2019
Dockerfile Fix build of sodium May 4, 2019
LICENSE Ensure repository is well documented Nov 5, 2018
Makefile Reflect Modules in README Feb 9, 2019
README.md

README.md

PHP-FPM 7.4

Build Status Tag Gitter Discourse License

This repository will provide you a fully functional PHP-FPM 7.4 Docker image built from official sources nightly. It provides the base for Devilbox PHP-FPM Docker images.

Docker Hub Upstream Project

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:

Documentation

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

Documentation

Chat

Forum

devilbox.readthedocs.io gitter.im/devilbox devilbox.discourse.group

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-7.4:latest

Available Modules

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

Module Built-in
Core
ctype
curl
date
dom
fileinfo
filter
ftp
hash
iconv
json
libxml
mbstring
mysqlnd
openssl
pcre
PDO
pdo_sqlite
Phar
posix
readline
Reflection
session
SimpleXML
sodium
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
zlib

Example

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-7-4 \
  -v $(pwd)/htdocs:/var/www/default/htdocs devilbox/php-fpm-7.4

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-7-4 \
  -p 8080:80 \
  --link devilbox-php-fpm-7-4 \
  devilbox/nginx-stable

4. Open browser

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

License

MIT License

Copyright (c) 2018 cytopia

You can’t perform that action at this time.