HUB
Sign inSign up
php8.6-apache logo

gnbit/php8.6-apache

By gnbit

•Updated 4 days ago

Image
0

70

gnbit/php8.6-apache repository overview

⁠GNBIT PHP 8.6 Apache

PHP 8.6 with Apache and common extensions for web applications. Maintained by Benjamin Gonzales - GNBIT.

⁠Image tags

This repository hosts multiple PHP 8.6 version tags. Choose a published tag from the Tags tab⁠. For example:

gnbit/php8.6-apache:8.6.0

The version above is an example, not the only version in this repository. latest, when available, is a moving tag for this branch and does not automatically update existing containers.

⁠Quick start

services:
  php:
    image: gnbit/php8.6-apache:8.6.0
    ports:
      - "127.0.0.1:8080:80"
    volumes:
      - ./app:/var/www

Apache serves /var/www/public; place public application files in ./app/public.

⁠Included PHP extensions

  • GD with FreeType, JPEG, and WebP support
  • BCMath
  • MySQLi
  • Calendar
  • Gettext
  • Intl
  • Exif
  • Zip
  • PDO MySQL
  • PDO PostgreSQL
  • LDAP
  • Redis
  • Memcached
  • Imagick
  • OPcache

These features describe the current build; older image tags may differ. Extension versions depend on the image tag.

⁠Included tools and libraries

  • Composer
  • ImageMagick
  • Ghostscript
  • Git
  • unzip
  • OpenSSL
  • locales
  • sshpass
  • unixODBC development libraries
  • libmcrypt

System libraries such as libmcrypt and unixODBC do not enable PHP extensions by themselves. Redis and Memcached servers are not bundled. ImageMagick PDF support is subject to its security policy.

⁠Custom PHP configuration

Add a read-only INI mount to your service:

volumes:
  - ./app:/var/www
  - ./myphp.ini:/usr/local/etc/php/conf.d/myphp.ini:ro

Create the INI file before starting the container. Restart PHP after editing it. Repository test profiles are not automatically included in the image.

⁠Updating

Back up application data, test compatibility, and update the image tag first:

docker compose pull
docker compose up -d

Pulling an image alone does not update running containers; they must be recreated.

⁠Maintainer

Benjamin Gonzales - GNBIT

Tag summary

Content type

Image

Digest

sha256:6ef3a341b…

Size

319.4 MB

Last updated

4 days ago

docker pull gnbit/php8.6-apache