{"id":20028862,"url":"https://github.com/phase2/docker-apache-php-base","last_synced_at":"2026-06-02T21:31:53.694Z","repository":{"id":137097879,"uuid":"82350474","full_name":"phase2/docker-apache-php-base","owner":"phase2","description":"Abstract base image for a PHP application server for Apache w/ PHP-FPM","archived":false,"fork":false,"pushed_at":"2020-03-26T17:40:21.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-05-15T18:51:35.471Z","etag":null,"topics":["apache","centos","docker-image","outrigger","php-fpm","xdebug"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phase2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2017-02-18T00:42:40.000Z","updated_at":"2020-03-26T17:40:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"81dd999b-f144-49ba-9be5-3976f7c997a6","html_url":"https://github.com/phase2/docker-apache-php-base","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phase2/docker-apache-php-base","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase2%2Fdocker-apache-php-base","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase2%2Fdocker-apache-php-base/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase2%2Fdocker-apache-php-base/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase2%2Fdocker-apache-php-base/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phase2","download_url":"https://codeload.github.com/phase2/docker-apache-php-base/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phase2%2Fdocker-apache-php-base/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33838215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"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","centos","docker-image","outrigger","php-fpm","xdebug"],"created_at":"2024-11-13T09:16:52.389Z","updated_at":"2026-06-02T21:31:53.680Z","avatar_url":"https://github.com/phase2.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Outrigger Apache PHP Base\n\n\u003e Abstract base image for a PHP application server for Apache w/ PHP-FPM\n\n[![](https://images.microbadger.com/badges/version/outrigger/apache-php-base.svg)](https://microbadger.com/images/outrigger/apache-php-base \"Get your own version badge on microbadger.com\") [![](https://images.microbadger.com/badges/image/outrigger/apache-php-base.svg)](https://microbadger.com/images/outrigger/apache-php-base \"Get your own image badge on microbadger.com\")\n\nA base image for [outrigger/docker-apache-php](https://hub.docker.com/r/outrigger/apache-php).\nIncludes Apache and default VirtualHost configured with php-fpm proxy. Based on [outrigger/servicebase](https://hub.docker.com/r/outrigger/servicebase/)\n\nDoes not include the PHP runtime. Extends this to add your own, or use\n[outrigger/apache-php](https://hub.docker.com/r/outrigger/apache-php).\n\nFor more documentation on how Outrigger images are constructed and how to work\nwith them, please [see the documentation](http://docs.outrigger.sh/en/latest/).\n\n## Features\n\n### Default VirtualHost\n\n* **Socket:** 0.0.0.0:80\n* **Server Name:** localhost\n* **PHP-FPM proxy:** fcgi://localhost:9001\n* **Docroot:** /var/www/html (configurable, see below)\n\nApache error and access logs are written to `/var/log/httpd`.\n\n### Optional Xdebug integration\n\nBy choosing to set the PHP_XDEBUG environment variable to `\"true\"`, you may\nenable Xdebug support. For details of the Xdebug configuration see the\n[configuration template](./root/etc/confd/templates/xdebug.ini.tmpl).\n\nThe specific Xdebug settings are not configurable without overriding the Xdebug\ntemplate but should serve most use cases.\n\nFor more on using Xdebug with PHPStorm, see the [detailed Outrigger tutorial](http://docs.outrigger.sh/en/latest/common-tasks/using-xdebug-with-phpstorm/).\n\n## Environment Variables\n\nOutrigger images use Environment Variables and [confd](https://github.com/kelseyhightower/confd)\nto \"templatize\" a number of Docker environment configurations. These templates are\nprocessed on startup with environment variables passed in via the docker run\ncommand-line or via your docker-compose manifest file. Here are the \"tunable\"\nconfigurations offered by this image.\n\n* `DOCROOT`: [`/var/www/html`] Apache document root.\n* `PHP_MAX_EXECUTION_TIME`: [`60`] PHP `max_execution_time` value.\n* `PHP_MAX_CHILDREN`: [`5`] Apache process manager `pm.max_children` value.\n* `PHP_MEMORY_LIMIT`: [`256m`] PHP `memory_limit` value.\n* `PHP_OPCACHE_MEMORY`: [`192`] PHP `opcache.memory_consumption` value.\n* `PHP_POST_MAX_SIZE`: [`12M`] PHP `post_max_size` value.\n* `PHP_TIMEZONE`: [`UTC`] PHP `date.timezone` value.\n* `PHP_UPLOAD_MAX_FILESIZE`: [`10M`] PHP `upload_max_filesize` value.\n* `PHP_XDEBUG`: [`\"false\"`|`\"true\"`] A string literal to enable PHP Xdebug.\n  Defaults to `\"false\"`.\n* `PHP_XHPROF`: [`\"false\"`|`\"true\"`] A string literal to enable PHP xhprof.\n  Sets the `xhprof.output_dir` directive to /tmp when enabled. Only usable on\n  PHP versions less than PHP 7. Defaults to `\"false\"`.\n* `PHP_YAML`: [`\"false\"`|`\"true\"`] A string literal to enable PHP YAML extension.\n  Defaults to `\"false\"`.\n* `PROXY_TIMEOUT`: [`120`] Apache `ProxySet timeout` value for the php-fpm proxy.\n* `PHPFPM_START_SERVERS`: [`5`] `Start Servers` The number of child processes created on startup.\n* `PHPFPM_MIN_SPARE_SERVERS`: [`5`] `Min Spare Servers` The desired minimum number of idle server processes.\n* `PHPFPM_MAX_SPARE_SERVERS`: [`35`] `Max Spare Servers` The desired maximum number of idle server processes.\n* `PHPFPM_MAX_REQUESTS`: [`200`] `Max Request` The number of requests each child process should execute before respawning.\n\n\n## Security Reports\n\nPlease email outrigger@phase2technology.com with security concerns.\n\n## Maintainers\n\n[![Phase2 Logo](https://www.phase2technology.com/wp-content/uploads/2015/06/logo-retina.png)](https://www.phase2technology.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphase2%2Fdocker-apache-php-base","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphase2%2Fdocker-apache-php-base","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphase2%2Fdocker-apache-php-base/lists"}