前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >PHP FPM Docker

PHP FPM Docker

作者头像
XRSec
发布2022-03-12 15:44:37
1K0
发布2022-03-12 15:44:37
举报
文章被收录于专栏:XRSec.Blog
Please compile manually, github action may time out

USE

代码语言:javascript
复制
FROM xrsec/php:latest | FROM xrsec/php:5.6 | FROM xrsec/php:7.4 | FROM xrsec/php:init
LABEL From="xrsec"
ARG TARGETPLATFORM
代码语言:javascript
复制
RUN mkdir -p /www /www/server /www/bak /www/server/php74 /www/server/php56
COPY --from=xrsec/php:7.4 /www/server/php74 /www/server/php74
COPY --from=xrsec/php:5.6 /www/server/php56 /www/server/php56
代码语言:javascript
复制
RUN ln -sf /www/server/php74/bin/php /www/env/php74 \
    && ln -sf /www/server/php74/sbin/php-fpm /www/env/php74-fpm \
    && ln -sf /www/server/php74/bin/pecl /www/env/php74-pecl \
    && ln -sf /www/server/php74/bin/pear /www/env/php74-pear \
    && rm -rf /usr/bin/php74 \
    && rm -rf /usr/bin/php74-fpm \
    && rm -rf /usr/bin/php74-pecl \
    && rm -rf /usr/bin/php74-pear

# PHP56 configuration files
RUN ln -sf /www/server/php56/sbin/php-fpm /www/env/php56-fpm \
    && ln -sf /www/server/php56/bin/php /www/env/php56 \
    && ln -sf /www/server/php56/bin/pecl /www/env/php56-pecl \
    && ln -sf /www/server/php56/bin/pear /www/env/php56-pear \
    && rm -rf /usr/bin/php56-fpm \
    && rm -rf /usr/bin/php56 \
    && rm -rf /usr/bin/php56-pecl \
    && rm -rf /usr/bin/php56-pear

Configuration

Basic information

Optional version:PHP 5.6.40 & FPM PHP 7.4.16 & FPM PHP 5.6.40 & PHP 7.4.16 & FPM

代码语言:javascript
复制
/www/server/php74/bin/php
/www/server/php74/sbin/php-fpm
/www/server/php74/lib/php.ini
/www/server/php56/bin/php
/www/server/php56/sbin/php-fpm
/www/server/php56/lib/php.ini
 php-debug = 9003
 user = nginx

Xdebug 2.5.5

代码语言:javascript
复制
zend_extension=/www/server/php56/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so
xdebug.remote_enable = on
xdebug.remote_host = docker.for.mac.localhost
xdebug.remote_port = 9003
xdebug.idekey="PHPSTORM"
xdebug.remote_autostart = 1
xdebug.remote_connect_back = 1
xdebug.remote_handler = "dbgp"

Xdebug 3.0.0

代码语言:javascript
复制
zend_extension=/www/server/php74/lib/php/extensions/no-debug-non-zts-20190902/xdebug.so
xdebug.mode = debug
debug.remote_handler = dbgp
xdebug.client_host = docker.for.mac.localhost
xdebug.start_with_request = yes
xdebug.client_port = 9003
xdebug.idekey = "PHPSTORM"

XRSec has the right to modify and interpret this article. If you want to reprint or disseminate this article, you must ensure the integrity of this article, including all contents such as copyright notice. Without the permission of the author, the content of this article shall not be modified or increased or decreased arbitrarily, and it shall not be used for commercial purposes in any way

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2021-10-06,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • USE
  • Configuration
    • Basic information
      • Xdebug 2.5.5
        • Xdebug 3.0.0
        相关产品与服务
        容器服务
        腾讯云容器服务(Tencent Kubernetes Engine, TKE)基于原生 kubernetes 提供以容器为核心的、高度可扩展的高性能容器管理服务,覆盖 Serverless、边缘计算、分布式云等多种业务部署场景,业内首创单个集群兼容多种计算节点的容器资源管理模式。同时产品作为云原生 Finops 领先布道者,主导开源项目Crane,全面助力客户实现资源优化、成本控制。
        领券
        问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档