
tozd/php<[***]>
可用镜像:
tozd/phpregistry.gitlab.com/tozd/docker/phptozd/base ← tozd/dinit ← tozd/nginx ← tozd/nginx-mailer ← tozd/nginx-cron ← tozd/php
5.5: PHP 5.55.6: PHP 5.67.0: PHP 7.07.1: PHP 7.17.2: PHP 7.27.3: PHP 7.37.4: PHP 7.48.0: PHP 8.08.1: PHP 8.18.2: PHP 8.28.3: PHP 8.38.4: PHP 8.4PHP_FCGI_CHILDREN: 创建的PHP工作进程数。默认值为2。PHP_FCGI_MAX_REQUESTS: 每个工作进程在重启前可处理的请求数。默认值为1000。该镜像扩展自tozd/nginx-cron镜像,添加了PHP及PHP FCGI守护进程。这意味着它还包含电子邮件发送功能,并可运行定时任务。
不同的Docker标签提供不同的PHP版本。
如果要扩展此镜像,可添加脚本/etc/service/php/run.initialization,该脚本将在容器启动时、容器初始化完成后但PHP FCGI守护进程运行前执行。
要让nginx提供PHP文件服务,可通过复制以下配置到/etc/nginx/sites-enabled/default进行配置:
nginxserver { listen 80 default_server; server_name _; access_log /var/log/nginx/default_access.log json; root /path/to/your/php/code; index index.php; location ~ /\. { return 403; } location ~ \.php$ { try_files $uri =404; include fastcgi_php; } }
如果需要在GitHub上 fork 项目,还提供只读GitHub镜像。

manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务