Sign inSign up

maurosoft1973/debian-php-fpm

By maurosoft1973

•Updated over 5 years ago

PHP-FPM Docker image running on Alpine Linux

Image
0

1.1K

maurosoft1973/debian-php-fpm repository overview

⁠PHP FPM Docker image running on Debian Linux

Docker Automated build Docker Pulls Docker Stars

PHP FPM Version

This Docker image (maurosoft1973/debian-php-fpm)⁠ is based on the Debian distribution with PHP Version v7.4.15⁠.

⁠Debian Version 10.9 (Released Mar 27, 2021)
⁠PHP FPM Version 7.4.15 (Released Feb 04, 2021)

⁠What is FPM?

FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional features (mostly) useful for heavy-loaded sites.

These features include:

  • advanced process management with graceful stop/start;
  • ability to start workers with different uid/gid/chroot/environment, listening on different ports and using different php.ini (replaces safe_mode);
  • stdout and stderr logging;
  • emergency restart in case of accidental opcode cache destruction;
  • accelerated upload support;
  • "slowlog" - logging scripts (not just their names, but their PHP backtraces too, using ptrace and similar things to read remote process' execute_data) that are executed unusually slow;
  • fastcgi_finish_request() - special function to finish request and flush all data while continuing to do something time-consuming (video converting, stats processing etc.);
  • dynamic/static child spawning;
  • basic SAPI status info (similar to Apache mod_status);
  • php.ini-based config file.

⁠PHP Modules

  • apcu
  • core
  • ctype
  • curl
  • date
  • dom
  • fileinfo
  • filter
  • gd
  • hash
  • iconv
  • imagick
  • imap
  • intl
  • json
  • libxml
  • mbstring
  • mcrypt
  • mysqli
  • mysqlnd
  • openssl
  • pcre
  • PDO
  • Phar
  • posix
  • readline
  • Reflection
  • session
  • SimpleXML
  • SPL
  • ssh2
  • standard
  • tokenizer
  • xdebug
  • xml
  • xmlwriter
  • Zend OPcache
  • zip
  • zlib

⁠Zend Modules

  • Xdebug
  • Zend OPcache

⁠Architectures

  • :amd64, :x86_64 - 64 bit Intel/AMD (x86_64/amd64)

⁠Tags

  • :latest latest branch based (Automatic Architecture Selection)
  • :amd64, :x86_64 amd64 based on latest tag but amd64 architecture

⁠Layers & Sizes

Version MicroBadger Layers (tag) MicroBadger Size (tag)

⁠Environment Variables:

⁠Main Php FPM parameters:
  • LC_ALL: default locale (en_GB.UTF-8)
  • TIMEZONE: default timezone (Europe/Brussels)
  • IP: address ip listen (default 0.0.0.0)
  • PORT: listen port (default 7000)
  • WWW_DATA: specify the path of the website
  • WWW_USER: specify the user ownership (default www)
  • WWW_USER_ID: specify the user identifier (uid) associate at WWW_USER (default 5001)
  • WWW_GROUP: specify the group ownership (default www-data)
  • WWW_GROUP_ID: specify the user group identifier (gid) associate as WWW_GROUP (default 33)
  • PHP_POOL_PM_MODE: Choose how the process manager will control the number of child processes. Possible values: static, ondemand, dynamic (default dynamic)
  • PHP_POOL_MAX_CHILDREN: The number of child processes to be created when pm is set to static and the maximum number of child processes to be created when pm is set to dynamic. (default 5)
  • PHP_POOL_START_SERVERS: The number of child processes created on startup. Used only when pm is set to dynamic (default 2)
  • PHP_POOL_MIN_SPARE_SERVERS: The desired minimum number of idle server processes. Used only when pm is set to dynamic (default 1)
  • PHP_POOL_MAX_SPARE_SERVERS: The desired maximum number of idle server processes. Used only when pm is set to dynamic (default 3)
  • PHP_POOL_REQUEST_TERMINATE_TIMEOUT: The timeout for serving a single request after which the worker process will be killed. This option should be used when the 'max_execution_time' ini option does not stop script execution for some reason. A value of '0' means 'Off'. Available units: s(econds)(default), m(inutes), h(ours), or d(ays). (default 300).
  • PHP_XDEBUG_ENABLED: Enabled (1) or disabled (0) xdebug extension (default 1)
  • PHP_XDEBUG_CLIENT_PORT: (default 9000)
  • PHP_XDEBUG_DISCOVER_CLIENT_HOST: (default 1)
  • PHP_XDEBUG_START_WITH_REQUEST: (default yes)
  • PHP_XDEBUG_LOG: (default /tmp/xdebug.log)
  • PHP_XDEBUG_MODE: (default debug,develop)

⁠Last Update 19.04.2021 13:44:31

Tag summary

Content type

Image

Digest

Size

252.5 MB

Last updated

over 5 years ago

docker pull maurosoft1973/debian-php-fpm