GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - panubo/docker-php-apache: Highly configurable PHP-FPM and Apache Docker images

BranchesTags
Open more actions menu

Latest commit

 

History

100 Commits
100 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
centos7
centos7
 
 
debian10
debian10
 
 
debian11
debian11
 
 
debian12
debian12
 
 
debian13
debian13
 
 
debian9
debian9
 
 
.dockerignore
.dockerignore
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 

Repository files navigation

Highly Configurable PHP and Apache Images

Build Status

These are configurable Docker images for running PHP applications with Apache. They are designed to be easy to use, with a focus on consistent configuration across the images.

These images are available from:

  • Quay.io
  • AWS ECR Public Gallery

Important

Maintained by Panubo — Cloud Native & SRE Consultants in Sydney. Work with us →

Features

  • Multiple PHP Versions: Support for a wide range of PHP versions, from modern PHP 8.x to legacy PHP 5.4. Uses the deb.sury.org repository for up-to-date PHP packages on Legacy Debian images.
  • Apache 2.4: Comes with Apache 2.4 pre-configured to work with PHP-FPM.
  • Process Management: Uses s6 for process supervision, ensuring that both Apache and PHP-FPM are always running.
  • Configuration Templating: Uses gomplate to allow for dynamic configuration of Apache, PHP, and other services using environment variables.
  • Common PHP Extensions: Includes a wide range of commonly used PHP extensions, such as mysql, pgsql, mongodb, redis, gd, imagick, and more.
  • Email Delivery: Includes msmtp for sending emails from PHP applications to an SMTP server.
  • X-Sendfile Support: mod_xsendfile is enabled for efficient file serving.

Supported Images

Production Images

  • Debian 13 (Trixie) Base - Recommended for PHP applications that require PHP 8.4.
  • Debian 12 (Bookworm) Base - Recommended for PHP applications that require PHP 8.2.

Obsolete Images

These are no longer built. The source remains in the repository for reference, but no images are published.

  • Debian 11 (Bullseye) Base - Deprecated. For legacy PHP applications that require PHP 7.4. No longer built: Debian 11 is EOL and the deb.sury.org PHP 7.4 packages for Bullseye are no longer available. The last published image (panubo/php-apache:debian11, PHP 7.4.33) remains in the registry but receives no further updates.
  • Debian 10 (Buster) Base - For legacy PHP applications that require PHP 7.3.
  • Debian 9 (Stretch) Base - For legacy PHP applications that require PHP 7.0.
  • CentOS 7 Base - For legacy PHP applications that require PHP 5.4.

NB. Images may not be feature identical depending on the base OS used and the level of development of the image.

Usage

Here is a simple example of how to use the image with docker-compose:

services:
  web:
    image: panubo/php-apache:debian13
    ports:
      - "8080:8000"
    volumes:
      - ./html:/html
    environment:
      # Example of using configuration
      httpd_root: /html/public

Place your PHP application code in the html directory. The web server will be available on http://localhost:8080.

Configuration

Environment Variables

The images can be configured using environment variables. These variables are processed by gomplate to generate configuration files.

For example, to change the document root, you can set the httpd_root environment variable.

For a full list of available variables and templates, please check the etc directory within each image's subdirectory.

PHP Extensions

A wide range of PHP extensions are included by default. You can see the full list in the Dockerfile for each image.

Apache Configuration

The Apache configuration can be extended by mounting your own .conf files into /etc/apache2/conf-enabled/ (for Debian-based images) or /etc/httpd/conf.d/ (for CentOS-based images).

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue.

License

This project is licensed under the MIT License.

Status

Stable and used in production.

Important

About Panubo

This project is maintained by Panubo, a technology consultancy based in Sydney, Australia. We build reliable, scalable systems and help teams master the cloud-native ecosystem.

We are available for hire to help with:

  • SRE & Operations: Improving system reliability and incident response.
  • Platform Engineering: Building internal developer platforms that scale.
  • Kubernetes: Cluster design, security auditing, and migrations.
  • DevOps: Streamlining CI/CD pipelines and developer experience.
  • See our other services

Need a hand with your infrastructure? Let’s have a chat or email us at [email protected].

About

Highly configurable PHP-FPM and Apache Docker images

Topics

apachedocker-imagephpphp-fpm

Resources

Readme
MIT license
Activity
Custom properties

Stars

6 stars

Watchers

2 watching

Forks

3 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.