xampp/php)A modular, high-performance PHP-FPM image designed as the core application worker for the modern XAMPP Docker stack.
This image is based on the official php:fpm images and follows a decoupled architecture. It is optimized for security, performance, and developer experience.
php and php-fpm binaries are wrapped in smart scripts.
php.ini-production and optimized settings.php.ini-development and enables Xdebug if APP_ENV is set to anything other than prod or production./var/run/php/php-fpm.sock for high-performance communication with the web server (e.g., xampp/httpd).install-php-extensions helper.app, UID 1000) by default.| Variable | Default | Description |
|---|---|---|
APP_ENV | prod | Set to dev or local to enable Xdebug and development settings. |
TZ | Europe/Berlin | System timezone configuration. |
PHP_IDE_CONFIG | serverName=app.localhost | Xdebug server configuration for IDEs. |
Typically used in conjunction with xampp/httpd. Note the shared volume for the Unix socket.
services:
php:
image: xampp/php:8.4
environment:
- APP_ENV=dev
volumes:
- .:/app
- php-socket:/var/run/php
volumes:
php-socket:
Built using multi-stage builds and a clean Debian-based foundation. Supports PHP versions 7.4, 8.1, 8.2, 8.3, 8.4, and 8.5.
Content type
Image
Digest
sha256:3f469c923…
Size
274.7 MB
Last updated
8 months ago
docker pull xampp/php