{"id":15024250,"url":"https://github.com/keopx/docker-apache-php","last_synced_at":"2025-04-09T20:02:53.528Z","repository":{"id":77085361,"uuid":"66100042","full_name":"keopx/docker-apache-php","owner":"keopx","description":"Debian 10 Buster based Apache 2.4 and PHP 7.4/7.3/7.2/7.1/7.0/5.6","archived":false,"fork":false,"pushed_at":"2022-11-22T16:30:43.000Z","size":100,"stargazers_count":20,"open_issues_count":3,"forks_count":23,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T20:02:37.873Z","etag":null,"topics":["debian","debian-stretch","debian9","docker","docker4drupal","drupal","drupal-8","php-56","php-7","php71","php72","php73"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/keopx/apache-php/","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/keopx.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}},"created_at":"2016-08-19T17:27:41.000Z","updated_at":"2023-10-11T09:50:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"9ddc9799-00b5-4f5a-94a2-280236dcfbef","html_url":"https://github.com/keopx/docker-apache-php","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keopx%2Fdocker-apache-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keopx%2Fdocker-apache-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keopx%2Fdocker-apache-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keopx%2Fdocker-apache-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keopx","download_url":"https://codeload.github.com/keopx/docker-apache-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103865,"owners_count":21048245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["debian","debian-stretch","debian9","docker","docker4drupal","drupal","drupal-8","php-56","php-7","php71","php72","php73"],"created_at":"2024-09-24T20:00:01.241Z","updated_at":"2025-04-09T20:02:53.496Z","avatar_url":"https://github.com/keopx.png","language":"Dockerfile","readme":"# Introduction\n\nOn current version we used new template system to setup configuration properly. \n\n# Customizable values\n\nWe can see different properties with default values.\n\n## Environment values for docker-compose.yml\n\nTo work correctly variables you need to update `docker-compose.yml` file with environment variables:\n\nChange on `.env` file:\n\n```ini\nXDEBUG_ENABLED=1\n```\n\nAnd create environment variable on  `docker-compose.yml`:\n\n```yml\n    environment:\n      ## Use webroot directory. i.e: /web for drupal scaffolding.\n      - WEB_ROOT\n      ## SSH support. Uncomment volumes -\u003e # - ${SSH_AUTH_SOCK}:/ssh-agent\n      - SSH_AUTH_SOCK=/ssh-agent\n      ### WARNING: Use only if you not use custom php.ini.\n      - PHP_SENDMAIL_PATH\n      - PHP_SENDMAIL_DOMAIN\n      - XDEBUG_ENABLED\n```\n\n## Environment configuration\n\nThe default configuration is __not recommended to be used for production__ environment:\n\n### PHP configuration\n\nValues are based on `php.ini-development` file.\n\n| Variable                        | 7.4                  | 7.3                  | 7.2                  | 7.1                  | 7.0                  | 5.6                  |\n| ------------------------------- | -------------------- | -------------------- | -------------------- | -------------------- | -------------------- | -------------------- |\n| [`PHP_DATE_TIMEZONE`]           | `Europe/Berlin`      | `Europe/Berlin`      | `Europe/Berlin`      | `Europe/Berlin`      | `Europe/Berlin`      | `Europe/Berlin`      |\n| [`PHP_DISPLAY_ERRORS`]          | `On`                 | `On`                 | `On`                 | `On`                 | `On`                 | `On`                 |\n| [`PHP_DISPLAY_STARTUP_ERRORS`]  | `On`                 | `On`                 | `On`                 | `On`                 | `On`                 | `On`                 |\n| [`PHP_ERROR_REPORTING`]         | `E_ALL`              | `E_ALL`              | `E_ALL`              | `E_ALL`              | `E_ALL`              | `E_ALL`              |\n| [`PHP_EXPOSE`]                  | `On`                 | `On`                 | `On`                 | `On`                 | `On`                 | `On`                 |\n| [`PHP_LOG_ERRORS`]              | `On`                 | `On`                 | `On`                 | `On`                 | `On`                 | `On`                 |\n| [`PHP_LOG_ERRORS_MAX_LEN`]      | `1024`               | `1024`               | `1024`               | `1024`               | `1024`               | `1024`               |\n| [`PHP_MAX_EXECUTION_TIME`]      | `30`                 | `30`                 | `30`                 | `30`                 | `30`                 | `30`                 |\n| [`PHP_MAX_FILE_UPLOADS`]        | `20`                 | `20`                 | `20`                 | `20`                 | `20`                 | `20`                 |\n| [`PHP_MAX_INPUT_TIME`]          | `60`                 | `60`                 | `60`                 | `60`                 | `60`                 | `60`                 |\n| [`PHP_MAX_INPUT_VARS`]          | `2000`               | `2000`               | `2000`               | `2000`               | `2000`               | `2000`               |\n| [`PHP_MEMORY_LIMIT`]            | `128M`               | `128M`               | `128M`               | `128M`               | `128M`               | `128M`               |\n| [`PHP_POST_MAX_SIZE`]           | `8M`                 | `8M`                 | `8M`                 | `8M`                 | `8M`                 | `8M`                 |\n| [`PHP_SENDMAIL_PATH`]           | `/usr/sbin/ssmtp -t` | `/usr/sbin/ssmtp -t` | `/usr/sbin/ssmtp -t` | `/usr/sbin/ssmtp -t` | `/usr/sbin/ssmtp -t` | `/usr/sbin/ssmtp -t` |\n| [`PHP_TRACK_ERRORS`]            | -                    | -                    | -                    | `On`                 | `On`                 | `On`                 |\n| [`PHP_UPLOAD_MAX_FILESIZE`]     | `2M`                 | `2M`                 | `2M`                 | `2M`                 | `2M`                 | `2M`                 |\n| [`PHP_ZEND_ASSERTIONS`]         | `1`                  | `1`                  | `1`                  | `1`                  | `1`                  | `1`                  |\n| [`XDEBUG_HOST`]                 | `localhost`          | `localhost`          | `localhost`          | `localhost`          | `localhost`          | `localhost`          |\n\n### PHP XDEBUG configuration\n\n| Variable                           | Conf        |\n| ---------------------------------- | ----------- |\n| [`XDEBUG_ENABLED`]                 | `1`         |\n| [`XDEBUG_REMOTE_CONNECT_BACK`]     | `1`         |\n| [`XDEBUG_REMOTE_AUTOSTART`]        | `1`         |\n| [`XDEBUG_REMOTE_ENABLE`]           | `1`         |\n| [`XDEBUG_REMOTE_PORT`]             | `9000`      |\n| [`XDEBUG_MAX_NESTING_LEVEL`]       | `500`       |\n| [`XDEBUG_IDEKEY`]                  | `PHPSTORM`  |\n| [`XDEBUG_PROFILER_ENABLE_TRIGGER`] | `1`         |\n| [`XDEBUG_SHOW_ERROR_TRACE`]        | `1`         |\n\n### sSMTP configuration\n\n| Variable                 | Conf        |\n| ------------------------ | ----------- |\n| [`PHP_SENDMAIL_DOMAIN`]  | `true`      |\n\n### Vhost configuration\n\n| Variable                | Conf            |\n| ----------------------- | --------------- |\n| [`DEFAULT_ROOT`]        | `/var/www/html` |\n| [`WEB_ROOT`]            | ` `             |\n| [`APACHE_SERVER_NAME`]  | `localhost`     |\n\n## Template customizable values\n\nWe can see different properties with default values.\n\n### php.ini\n\nValues are based on `php.ini-development` file.\n\n```ini\n[PHP]\nexpose_php = {{ getenv \"PHP_EXPOSE\" \"On\" }}\nerror_reporting = {{ getenv \"PHP_ERROR_REPORTING\" \"E_ALL\" }}\ndisplay_errors = {{ getenv \"PHP_DISPLAY_ERRORS\" \"On\" }}\ndisplay_startup_errors = {{ getenv \"PHP_DISPLAY_STARTUP_ERRORS\" \"On\" }}\nlog_errors = {{ getenv \"PHP_LOG_ERRORS\" \"On\" }}\nlog_errors_max_len = {{ getenv \"PHP_LOG_ERRORS_MAX_LEN\" \"1024\" }}\n\nmax_execution_time = {{ getenv \"PHP_MAX_EXECUTION_TIME\" \"30\" }}\nmax_input_time = {{ getenv \"PHP_MAX_INPUT_TIME\" \"60\" }}\nmax_input_vars = {{ getenv \"PHP_MAX_INPUT_VARS\" \"2000\" }}\npost_max_size = {{ getenv \"PHP_POST_MAX_SIZE\" \"8M\" }}\nupload_max_filesize = {{ getenv \"PHP_UPLOAD_MAX_FILESIZE\" \"2M\" }}\nmax_file_uploads = {{ getenv \"PHP_MAX_FILE_UPLOADS\" \"20\" }}\nmemory_limit = {{ getenv \"PHP_MEMORY_LIMIT\" \"128M\" }}\n\n[Date]\ndate.timezone = {{ getenv \"PHP_DATE_TIMEZONE\" \"Europe/Berlin\"}}\n\n[Assertion]\nzend.assertions = {{ getenv \"PHP_ZEND_ASSERTIONS\" \"1\" }}\n\n[mail function]\nsendmail_path = {{ getenv \"PHP_SENDMAIL_PATH\" \"/usr/sbin/ssmtp -t\" }}\n\n[Xdebug]\nxdebug.remote_host = {{ getenv \"XDEBUG_HOST\" \"localhost\" }}\n```\n\n### xdebug.ini\n\n```ini\nxdebug.default_enable = {{ getenv \"XDEBUG_ENABLED\" \"1\" }}\nxdebug.remote_connect_back = {{ getenv \"XDEBUG_REMOTE_CONNECT_BACK\" \"1\" }}\nxdebug.remote_autostart = {{ getenv \"XDEBUG_REMOTE_AUTOSTART\" \"1\" }}\nxdebug.remote_enable = {{ getenv \"XDEBUG_REMOTE_ENABLE\" \"1\" }}\nxdebug.remote_host = {{ getenv \"XDEBUG_HOST\" \"localhost\" }}\nxdebug.remote_port = {{ getenv \"XDEBUG_REMOTE_PORT\" \"9000\" }}\nxdebug.max_nesting_level = {{ getenv \"XDEBUG_MAX_NESTING_LEVEL\" \"500\" }}\nxdebug.idekey = {{ getenv \"XDEBUG_IDEKEY\" \"PHPSTORM\" }}\nxdebug.profiler_enable_trigger = {{ getenv \"XDEBUG_PROFILER_ENABLE_TRIGGER\" \"1\" }}\nxdebug.show_error_trace = {{ getenv \"XDEBUG_SHOW_ERROR_TRACE\" \"1\" }}\n```\n\n### sSMTP\n\n```ini\nmailhub={{ getenv \"PHP_SENDMAIL_DOMAIN\" \"true\" }}\n```\n\n### Apache vhost\n\n```ini\nDocumentRoot {{ getenv \"DEFAULT_ROOT\" \"/var/www/html\" }}{{ getenv \"WEB_ROOT\" \"\" }}\nServerName {{ getenv \"APACHE_SERVER_NAME\" \"localhost\" }}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeopx%2Fdocker-apache-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeopx%2Fdocker-apache-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeopx%2Fdocker-apache-php/lists"}