{"id":40969091,"url":"https://github.com/panubo/docker-php-apache","last_synced_at":"2026-01-22T06:34:42.176Z","repository":{"id":42599745,"uuid":"50968889","full_name":"panubo/docker-php-apache","owner":"panubo","description":"Highly configurable PHP-FPM and Apache Docker images","archived":false,"fork":false,"pushed_at":"2026-01-15T05:35:58.000Z","size":98,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-15T11:58:04.290Z","etag":null,"topics":["apache","docker-image","php","php-fpm"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/panubo/php-apache/","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/panubo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-02-03T02:45:00.000Z","updated_at":"2026-01-15T05:35:39.000Z","dependencies_parsed_at":"2024-01-29T04:47:17.312Z","dependency_job_id":null,"html_url":"https://github.com/panubo/docker-php-apache","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/panubo/docker-php-apache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panubo%2Fdocker-php-apache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panubo%2Fdocker-php-apache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panubo%2Fdocker-php-apache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panubo%2Fdocker-php-apache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/panubo","download_url":"https://codeload.github.com/panubo/docker-php-apache/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panubo%2Fdocker-php-apache/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28656964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apache","docker-image","php","php-fpm"],"created_at":"2026-01-22T06:34:41.545Z","updated_at":"2026-01-22T06:34:42.171Z","avatar_url":"https://github.com/panubo.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Highly Configurable PHP and Apache Images\n\n[![Build Status](https://github.com/panubo/docker-php-apache/actions/workflows/multi-build-push.yml/badge.svg)](https://github.com/panubo/docker-php-apache/actions/workflows/multi-build-push.yml)\n\nThese 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.\n\nThese images are available from:\n\n- [Quay.io](https://quay.io/repository/panubo/php-apache)\n- [AWS ECR Public Gallery](https://gallery.ecr.aws/panubo/php-apache)\n\n\u003c!-- BEGIN_TOP_PANUBO --\u003e\n\u003e [!IMPORTANT]\n\u003e **Maintained by Panubo** — Cloud Native \u0026 SRE Consultants in Sydney.\n\u003e [Work with us →](https://panubo.com.au)\n\u003c!-- END_TOP_PANUBO --\u003e\n\n## Features\n\n- **Multiple PHP Versions:** Support for a wide range of PHP versions, from modern PHP 8.x to legacy PHP 5.4.\n- **Apache 2.4:** Comes with Apache 2.4 pre-configured to work with PHP-FPM.\n- **Process Management:** Uses `s6` for process supervision, ensuring that both Apache and PHP-FPM are always running.\n- **Configuration Templating:** Uses `gomplate` to allow for dynamic configuration of Apache, PHP, and other services using environment variables.\n- **Common PHP Extensions:** Includes a wide range of commonly used PHP extensions, such as `mysql`, `pgsql`, `mongodb`, `redis`, `gd`, `imagick`, and more.\n- **Email Delivery:** Includes `msmtp` for sending emails from PHP applications to an SMTP server.\n- **X-Sendfile Support:** `mod_xsendfile` is enabled for efficient file serving.\n\n## Supported Images\n\n### Production Images\n\n- **[Debian 13 (Trixie) Base](/debian13)** - Recommended for PHP applications that require PHP 8.4.\n- **[Debian 12 (Bookworm) Base](/debian12)** - Recommended for PHP applications that require PHP 8.2.\n- **[Debian 11 (Bullseye) Base](/debian11)** - For applications that require PHP 7.4.\n\n### Legacy Images\n\n- **[Debian 10 (Buster) Base](/debian10)** - For legacy PHP applications that require PHP 7.3.\n- **[Debian 9 (Stretch) Base](/debian9)** - For legacy PHP applications that require PHP 7.0.\n- **[CentOS 7 Base](/centos7)** - For legacy PHP applications that require PHP 5.4.\n\n_NB. Images may not be feature identical depending on the base OS used and the level of development of the image._\n\n## Usage\n\nHere is a simple example of how to use the image with `docker-compose`:\n\n```yaml\nservices:\n  web:\n    image: panubo/php-apache:debian13\n    ports:\n      - \"8080:8000\"\n    volumes:\n      - ./html:/html\n    environment:\n      # Example of using configuration\n      httpd_root: /html/public\n```\n\nPlace your PHP application code in the `html` directory. The web server will be available on `http://localhost:8080`.\n\n## Configuration\n\n### Environment Variables\n\nThe images can be configured using environment variables. These variables are processed by `gomplate` to generate configuration files.\n\nFor example, to change the document root, you can set the `httpd_root` environment variable.\n\nFor a full list of available variables and templates, please check the `etc` directory within each image's subdirectory.\n\n### PHP Extensions\n\nA wide range of PHP extensions are included by default. You can see the full list in the `Dockerfile` for each image.\n\n### Apache Configuration\n\nThe 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).\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a pull request or open an issue.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n\n## Status\n\nStable and used in production.\n\n\u003c!-- BEGIN_BOTTOM_PANUBO --\u003e\n\u003e [!IMPORTANT]\n\u003e ## About Panubo\n\u003e\n\u003e 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.\n\u003e\n\u003e We are available for hire to help with:\n\u003e\n\u003e * SRE \u0026 Operations: Improving system reliability and incident response.\n\u003e * Platform Engineering: Building internal developer platforms that scale.\n\u003e * Kubernetes: Cluster design, security auditing, and migrations.\n\u003e * DevOps: Streamlining CI/CD pipelines and developer experience.\n\u003e * [See our other services](https://panubo.com.au/services)\n\u003e\n\u003e Need a hand with your infrastructure? [Let’s have a chat](https://panubo.com.au/contact) or email us at team@panubo.com.\n\u003c!-- END_BOTTOM_PANUBO --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanubo%2Fdocker-php-apache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpanubo%2Fdocker-php-apache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanubo%2Fdocker-php-apache/lists"}