php-fpm custom images loaded with extensions based on alpine
10K+
Optimized PHP-FPM Alpine images with comprehensive extensions for web hosting.
Use the provided build script to build images locally:
./build.sh 8.4
This will:
fatk/php:8.4 and fatk/php:8.4.3| Extension | Description |
|---|---|
xdebug | A PHP extension for debugging and profiling PHP scripts. (PHP 8.0+ only) |
gd | A library for creating and manipulating images, with support for various image formats such as JPEG, PNG, WebP, and more. |
exif | Reads and processes EXIF information from images, commonly used with JPEG and TIFF image files. |
zip | Adds the ability to create and read ZIP compressed archives in PHP scripts. |
mysqli | An improved extension for interacting with MySQL databases. |
pdo | Provides a data-access abstraction layer, allowing you to interact with databases using a consistent interface. |
pdo_mysql | A PDO driver specifically for MySQL databases, enabling PDO to interact with MySQL. |
opcache | Improves PHP performance by caching compiled script bytecode in shared memory. |
soap | Enables PHP to interact with web services using the SOAP protocol. |
intl | Provides internationalization functions, including support for formatting dates, numbers, and currencies in a locale-aware manner. |
xml | Adds support for working with XML documents, including parsing and transforming XML. |
imagick | A wrapper to the ImageMagick library, providing advanced image processing capabilities directly from PHP. |
redis | A redis client extension. |
| PHP Setting | Environment Variable | Default Value | Description |
|---|---|---|---|
pm.max_children | PHP_POOL_MAX_CHILDREN | 5 | Maximum number of children for pool. |
pm.start_servers | PHP_POOL_START_SERVERS | 2 | Number of child processes created on startup. |
pm.min_spare_servers | PHP_POOL_MIN_SPARE_SERVERS | 1 | Minimum number of idle child processes to have available. |
pm.max_spare_servers | PHP_POOL_MAX_SPARE_SERVERS | 3 | Maximum number of idle child processes allowed. |
error_reporting | PHP_ERROR_REPORTING | E_ALL & ~E_DEPRECATED & ~E_STRICT | Sets the level of error reporting in PHP. |
memory_limit | PHP_MEMORY_LIMIT | 128M | Maximum amount of memory a script is allowed to consume. |
post_max_size | PHP_POST_MAX_SIZE | 64M | Maximum size of POST data that PHP will accept. |
upload_max_filesize | PHP_UPLOAD_MAX_FILESIZE | 64M | Maximum size of an uploaded file. |
max_execution_time | PHP_MAX_EXECUTION_TIME | 180 | Maximum time in seconds a script is allowed to run before it is terminated. |
date.timezone | PHP_DATE_TIMEZONE | America/Sao_Paulo | Defines the default timezone used by all date/time functions in PHP. |
opcache.enable | PHP_OPCACHE_ENABLE | 1 | Enables or disables the OPcache. |
opcache.memory_consumption | PHP_OPCACHE_MEMORY_CONSUMPTION | 64 | Amount of memory OPcache will use for storing precompiled scripts. |
opcache.jit | PHP_OPCACHE_JIT | tracing | Enables or disables Just-In-Time compilation. |
opcache.jit_buffer_size | PHP_OPCACHE_JIT_BUFFER_SIZE | 128M | Amount of memory allocated for JIT compilation. |
opcache.validate_timestamps | PHP_OPCACHE_VALIDATE_TIMESTAMPS | 1 | Check for updated scripts compilation. |
cli_memory_limit | PHP_CLI_MEMORY_LIMIT | -1 | Maximum memory a script can consume when run from the command line. |
Images are automatically built:
The build process:
Content type
Image
Digest
sha256:ef394939c…
Size
75.3 MB
Last updated
4 days ago
docker pull fatk/php:8.5.10