Sign inSign up

infobipcth/php-fpm

By infobipcth

•Updated 29 days ago

PHP-FPM image based on Debian stable release and PHP packages built by Ondřej Surý

Image
Web servers
1

2.9K

infobipcth/php-fpm repository overview

⁠PHP-FPM

⁠User and group ID

PHP-FPM daemon in this image runs as user and group php with UID 1005 and GID 1005.

⁠Application directory

By default, PHP-FPM in this image expects the application code to be mounted in /app directory within the container.

⁠Exposed ports

By default, this image exposes two ports:

  • 9000/TCP - PHP-FPM pool listen port.
  • 9001/TCP - PHP-FPM pool pm.status_listen port.

⁠Environment variables

⁠PHP_INI_

Environment variables with PHP_INI_ name prefix are used to set new or update existing PHP-FPM parameters within the [PHP] section of /etc/php/fpm/php.ini configuration file.

For example, variable defined as

PHP_INI_MEMORY_LIMIT=2G
PHP_INI_MAX_INPUT_VARS=5000

will be translated as:

memory_limit=2G
max_input_vars=5000
⁠PHP_FPM_GLOBAL_

Environment variables with PHP_FPM_GLOBAL_ name prefix are used to set new or update existing PHP-FPM parameters within the [global] section of the /etc/php/fpm/php-fpm.conf configuration file.

For example, variable defined as

PHP_FPM_GLOBAL_LOG_LIMIT=8192

will be translated as:

log_limit=8192
⁠PHP_FPM_POOL_

Environment variables with PHP_FPM_POOL_ name prefix are used to set new or update existing PHP-FPM parameters within default www PHP-FPM pool in /etc/php/fpm/pool.d/www.conf configuration file.

For example, variable defined as

PHP_FPM_POOL_LISTEN=/sock/php.sock

will be translated as:

listen=/sock/php.sock
⁠PHP_DISABLED_EXT

Pre-installed PHP extensions⁠ can be disabled with PHP_DISABLED_EXT environment variable. This variable can contain a comma-separated list of extensions. E.g.:

PHP_DISABLED_EXT=opcache,excimer

⁠Available extensions

This image comes with the following PHP extensions enabled by default:

[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
excimer
exif
FFI
fileinfo
filter
ftp
gd
gettext
hash
iconv
igbinary
intl
json
libxml
mbstring
memcache
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
random
readline
redis
Reflection
session
shmop
SimpleXML
soap
sockets
sodium
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
xml
xmlreader
xmlwriter
xsl
yaml
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

Tag summary

Content type

Image

Digest

sha256:3c02b9d57…

Size

105.3 MB

Last updated

29 days ago

docker pull infobipcth/php-fpm