All Projects → joseluisq → alpine-php-fpm

joseluisq / alpine-php-fpm

Licence: Apache-2.0, MIT licenses found Licenses found Apache-2.0 LICENSE-APACHE MIT LICENSE-MIT
Lightweight and optimised PHP-FPM (PHP 7.4, 8.0, 8.1) Docker images with essential extensions on top of latest Alpine Linux.

Programming Languages

Dockerfile
14818 projects
shell
77523 projects
Makefile
30231 projects

Projects that are alternatives of or similar to alpine-php-fpm

alpine-qbittorrent-openvpn
qBittorrent docker container with OpenVPN client running as unprivileged user on alpine linux
Stars: ✭ 230 (+333.96%)
Mutual labels:  arm, alpine, alpine-linux, armv7, arm64, armv6
docker-nagios
Docker image for Nagios Core in Alpine Linux with basic plugins, available for x86, x64 , ARM v6, ARM v7 and ARM64.
Stars: ✭ 33 (-37.74%)
Mutual labels:  arm, alpine, alpine-linux, armv7, arm64, armv6
Docker Homebridge
Homebridge Docker. HomeKit support for the impatient using Docker on x86_64, Raspberry Pi (armhf) and ARM64. Includes ffmpeg + libfdk-aac.
Stars: ✭ 1,847 (+3384.91%)
Mutual labels:  arm, x86-64, alpine-linux, arm64, armv6
Corehook
A library that simplifies intercepting application function calls using managed code and the .NET Core runtime
Stars: ✭ 191 (+260.38%)
Mutual labels:  arm, x86-64, x86, arm64
Keystone
Keystone assembler framework: Core (Arm, Arm64, Hexagon, Mips, PowerPC, Sparc, SystemZ & X86) + bindings
Stars: ✭ 1,654 (+3020.75%)
Mutual labels:  arm, x86-64, x86, arm64
Mandibule
linux elf injector for x86 x86_64 arm arm64
Stars: ✭ 171 (+222.64%)
Mutual labels:  arm, x86-64, x86, arm64
Rappel
A linux-based assembly REPL for x86, amd64, armv7, and armv8
Stars: ✭ 818 (+1443.4%)
Mutual labels:  x86-64, x86, armv7, arm64
Pieman
Script for creating custom OS images for single-board computers
Stars: ✭ 149 (+181.13%)
Mutual labels:  alpine, alpine-linux, armv7, arm64
Reverse Engineering
This repository contains some of the executables that I've cracked.
Stars: ✭ 29 (-45.28%)
Mutual labels:  arm, x86-64, x86, armv7
static-web-server
A blazing fast and asynchronous web server for static files-serving. ⚡
Stars: ✭ 230 (+333.96%)
Mutual labels:  arm, x86, alpine-linux, arm64
nordvpn
NordVpn Docker Client
Stars: ✭ 475 (+796.23%)
Mutual labels:  arm, x86-64, armv7, arm64
Capstone.NET
.NET Core and .NET Framework binding for the Capstone Disassembly Framework
Stars: ✭ 108 (+103.77%)
Mutual labels:  arm, x86-64, x86, arm64
Capstone
Capstone disassembly/disassembler framework: Core (Arm, Arm64, BPF, EVM, M68K, M680X, MOS65xx, Mips, PPC, RISCV, Sparc, SystemZ, TMS320C64x, Web Assembly, X86, X86_64, XCore) + bindings.
Stars: ✭ 5,374 (+10039.62%)
Mutual labels:  arm, x86-64, x86, arm64
Unicorn
Unicorn CPU emulator framework (ARM, AArch64, M68K, Mips, Sparc, PowerPC, RiscV, X86)
Stars: ✭ 4,934 (+9209.43%)
Mutual labels:  arm, x86-64, x86, arm64
Keypatch
Multi-architecture assembler for IDA Pro. Powered by Keystone Engine.
Stars: ✭ 939 (+1671.7%)
Mutual labels:  arm, x86-64, x86, arm64
Tina
Tina is a teeny tiny, header only, coroutine and job library.
Stars: ✭ 125 (+135.85%)
Mutual labels:  arm, x86-64, arm64
Neatcc
A small arm/x86(-64) C compiler
Stars: ✭ 86 (+62.26%)
Mutual labels:  arm, x86-64, x86
Synestiaos
The Synestia Operating System
Stars: ✭ 159 (+200%)
Mutual labels:  arm, armv7, arm64
Bdvl
LD_PRELOAD Linux rootkit (x86 & ARM)
Stars: ✭ 232 (+337.74%)
Mutual labels:  arm, x86-64, x86
asm2cfg
Python command-line tool and GDB extension to view and save x86, ARM and objdump assembly files as control-flow graph (CFG) pdf files
Stars: ✭ 42 (-20.75%)
Mutual labels:  arm, x86-64, x86

Alpine PHP-FPM CI Docker Image

PHP-FPM (PHP 7.4, 8.0 and 8.1) with essential extensions on top of Alpine Linux 3.15.

PHP 7.4

Docker Image Version (tag latest semver) Docker Image Size (tag)

PHP 8.0

Docker Image Version (tag latest semver) Docker Image Size (tag)

PHP 8.1

Docker Image Version (tag latest semver) Docker Image Size (tag)

Built-in extensions

curl, ftp, hash (mhash), libedit, libsodium, mbstring, mysqlnd, openssl, password-argon2, pdo-sqlite, pear, sqlite3, zlib

Additional extensions

Extension v7.4 v8.0 v8.1
amqp
apcu
bcmath
bz2
exif
gd
gettext
gmp
imagick
imap
intl
mcrypt ?
memcache
mongodb
mysqli
oauth
pcntl
pdo_dblib
pdo_mysql
pdo_pgsql
pgsql
psr
soap
sockets
ssh2
tidy
vips
xmlrpc ? ?
xsl
yaml
swoole
sysvmsg
sysvsem
sysvshm
zip
       
Others
composer v2.1 v2.2 v2.2

Footnotes

(?) It means that this extension is obsolete/unmaintained/discourage or simply is not supported yet.

Usage

🐳 Available on Docker Hub → hub.docker.com/r/joseluisq/php-fpm

docker pull joseluisq/php-fpm:7.4
# Or
docker pull joseluisq/php-fpm:8.0
# Or
docker pull joseluisq/php-fpm:8.1

Dockerfile

FROM joseluisq/php-fpm:7.4
# Or
FROM joseluisq/php-fpm:8.0
# Or
FROM joseluisq/php-fpm:8.1

Run a container

To give it a quick try just execute any of those commands and then navigate to localhost:8088

docker run --rm -p 8088:80 joseluisq/php-fpm:8.1 sh -c "echo '<?php phpinfo();' > index.php; php -S [::]:80 -t ."
# Or
docker run --rm -p 8088:80 joseluisq/php-fpm:8.0 sh -c "echo '<?php phpinfo();' > index.php; php -S [::]:80 -t ."
# Or
docker run --rm -p 8088:80 joseluisq/php-fpm:7.4 sh -c "echo '<?php phpinfo();' > index.php; php -S [::]:80 -t ."

View Docker Compose Examples

Default Paths

  • Default Docker working directory: /var/www/html
  • Additional PHP .ini files to load: /usr/local/etc/php/conf.d
  • Custom PHP .ini file generated (only if ENV_SUBSTITUTION_ENABLE=true): /usr/local/etc/php/conf.d/default-php.ini

Configurable Environment Variables

PHP-FPM and PHP configurations can be overwritten using environment variables. To do it so, just indicates the substitution of values using ENV_SUBSTITUTION_ENABLE=true (since it is disabled by default).

Below the environment variables with their default values:

PHP-FPM

Global FPM

Settings replaced into /usr/local/etc/php-fpm.conf file.

  • PHP_FPM_ERROR_LOG=/proc/self/fd/2
  • PHP_FPM_LOG_LEVEL=error

FPM WWW Pool

Settings replaced into /usr/local/etc/php-fpm.d/www.conf file.

  • PHP_FPM_LISTEN=9000
  • PHP_FPM_USER=www-data
  • PHP_FPM_GROUP=www-data
  • PHP_FPM_LISTEN_OWNER=www-data
  • PHP_FPM_LISTEN_GROUP=www-data

PHP Config

Settings replaced into /usr/local/etc/php/conf.d/default-php.ini file (php.ini).

  • PHP_MEMORY_LIMIT=512M
  • PHP_EXPOSE_PHP=On
  • PHP_SESSION_GC_MAXLIFETIME=1440

Docker Compose Examples

docker-compose examples for Nginx and Apache servers can be found under the ./examples directory.

Nginx

docker-compose -f examples/nginx/docker-compose.yml up

Apache

docker-compose -f examples/apache/docker-compose.yml up

Contributions

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in current work by you, as defined in the Apache-2.0 license, shall be dual licensed as described below, without any additional terms or conditions.

Feel free to send some pull request or file some issue.

License

This work is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).

© 2020-present Jose Quintana

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].