PHP-FPM Docker image with all the most used PHP extensions installed. This reflects a typical PHP host available on many commercial shared hosting platforms (and even some free ones).
Please note these images are not always the very latest ones available. It's because I follow the images used by the different shared hosting platform I'm using for my projects.
Common hosting platform extensions installed:
- bz2
- calendar
- exif
- gettext
- mbstring
- mcrypt
- mysql
- mysqli
- pdo_mysql
- sockets
- zip
- gd
- PECL igbinary and phpredis
Development extensions installed:
- xdebug 2.5.5 (with "profiler_enable_trigger" and "trace_enable_trigger" both enabled)
For historical reasons, I'm using php 5.6.34
To download an image:
docker pull creativeprojects/php-fpm:5.6.34
Almost the same image as the 5.6 ones, except for the deprecated module mysql. Included: xdebug 2.6.1
To download the latest images:
docker pull creativeprojects/php-fpm:7.0.33
Same configuration as php 7.0 images, except for the deprecated module mcrypt. Included: xdebug 2.7.2
To download the latest images:
docker pull creativeprojects/php-fpm:7.1.31
Same configuration as php 7.1 images
To download the latest images:
docker pull creativeprojects/php-fpm:7.2.21
Same configuration as php 7.2 images, including xdebug 3.1
To download the latest images:
docker pull creativeprojects/php-fpm:7.3.33
Same configuration as php 7.3 images
To download the latest images:
docker pull creativeprojects/php-fpm:7.4.33
Same configuration as php 7.4 images, including xdebug 3.2
To download the latest images:
docker pull creativeprojects/php-fpm:8.2.7
xdebug is configured with these options:
xdebug.coverage_enable=0
xdebug.profiler_enable_trigger=1
xdebug.profiler_output_dir=/tmp/xdebug
xdebug.show_mem_delta=1
xdebug.trace_enable_trigger=1
xdebug.trace_output_dir=/tmp/xdebug
If you want to see the profiles, you can use my webgrind docker image