{"id":19635862,"url":"https://github.com/tozd/docker-php","last_synced_at":"2026-05-05T04:38:48.686Z","repository":{"id":18274064,"uuid":"21437467","full_name":"tozd/docker-php","owner":"tozd","description":"PHP Docker image. Read-only mirror of https://gitlab.com/tozd/docker/php","archived":false,"fork":false,"pushed_at":"2024-05-13T21:41:09.000Z","size":32,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-09T16:37:23.749Z","etag":null,"topics":["docker","docker-image","nginx","php"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":false,"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/tozd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["plast8","mitar"]}},"created_at":"2014-07-02T19:25:16.000Z","updated_at":"2024-05-13T21:41:13.000Z","dependencies_parsed_at":"2024-05-13T22:52:02.231Z","dependency_job_id":null,"html_url":"https://github.com/tozd/docker-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tozd%2Fdocker-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tozd%2Fdocker-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tozd%2Fdocker-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tozd%2Fdocker-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tozd","download_url":"https://codeload.github.com/tozd/docker-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240941485,"owners_count":19882062,"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":["docker","docker-image","nginx","php"],"created_at":"2024-11-11T12:27:18.520Z","updated_at":"2026-05-05T04:38:48.680Z","avatar_url":"https://github.com/tozd.png","language":"Dockerfile","funding_links":["https://github.com/sponsors/plast8","https://github.com/sponsors/mitar"],"categories":[],"sub_categories":[],"readme":"# tozd/php\n\n\u003chttps://gitlab.com/tozd/docker/php\u003e\n\nAvailable as:\n\n- [`tozd/php`](https://hub.docker.com/r/tozd/php)\n- [`registry.gitlab.com/tozd/docker/php`](https://gitlab.com/tozd/docker/php/container_registry)\n\n## Image inheritance\n\n[`tozd/base`](https://gitlab.com/tozd/docker/base) ← [`tozd/dinit`](https://gitlab.com/tozd/docker/dinit) ← [`tozd/nginx`](https://gitlab.com/tozd/docker/nginx) ← [`tozd/nginx-mailer`](https://gitlab.com/tozd/docker/nginx-mailer) ← [`tozd/nginx-cron`](https://gitlab.com/tozd/docker/nginx-cron) ← `tozd/php`\n\n## Tags\n\n- `5.5`: PHP 5.5\n- `5.6`: PHP 5.6\n- `7.0`: PHP 7.0\n- `7.1`: PHP 7.1\n- `7.2`: PHP 7.2\n- `7.3`: PHP 7.3\n- `7.4`: PHP 7.4\n- `8.0`: PHP 8.0\n- `8.1`: PHP 8.1\n- `8.2`: PHP 8.2\n- `8.3`: PHP 8.3\n- `8.4`: PHP 8.4\n\n## Variables\n\n- `PHP_FCGI_CHILDREN`: How many PHP workers to create. Default is 2.\n- `PHP_FCGI_MAX_REQUESTS`: How many requests can each worker handle before it is restarted.\n  Default is 1000.\n\n## Description\n\nImage extending [tozd/nginx-cron](https://gitlab.com/tozd/docker/nginx-cron) image to add [PHP](https://secure.php.net/)\nand PHP FCGI daemon. This means that it also includes an e-mail mailer and can run cron jobs.\n\nDifferent Docker tags provide different PHP versions.\n\nIf you are extending this image, you can add a script `/etc/service/php/run.initialization`\nwhich will be run at a container startup, after the container is initialized, but before the\nPHP FCGI daemon is run.\n\nTo get nginx to serve your PHP files, you can configure it by copying the following configuration\nto `/etc/nginx/sites-enabled/default`:\n\n```nginx\nserver {\n    listen 80 default_server;\n    server_name _;\n    access_log /var/log/nginx/default_access.log json;\n\n    root /path/to/your/php/code;\n    index index.php;\n\n    location ~ /\\. {\n        return 403;\n    }\n\n    location ~ \\.php$ {\n        try_files $uri =404;\n        include fastcgi_php;\n    }\n}\n```\n\n## GitHub mirror\n\nThere is also a [read-only GitHub mirror available](https://github.com/tozd/docker-php),\nif you need to fork the project there.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftozd%2Fdocker-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftozd%2Fdocker-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftozd%2Fdocker-php/lists"}