douqiu0351 2014-05-30 08:06
浏览 76
已采纳

覆盖PHP-FPM中的PHP设置

I am on Debian 7 Wheezy, with Apache2 Worker and PHP-FPM running with FastCGI. I have multiple websites (and pools) running on it, some of them managed by their own webmasters with no access to the global php configuration or pools configurations.

I'm looking for a way to override PHP ini settings on a per-directory basis. From what I gathered from other questions here and various pages on the internet, it seems that it is not possible to use .htaccess as I did under mod_php5; nor I can use .user.ini files because apparently they only work with the CGI/FastCGI SAPI.

so....what's left? no way to override setting with FPM?

  • 写回答

1条回答 默认 最新

  • duanlu9970 2014-05-31 07:59
    关注

    Ok I think that after some testing I have found the answer.

    .user.ini files do actually work in php-fpm. The only problem that I found is that apparently you cannot override settings that have been set in the pool configuration files.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

悬赏问题

  • ¥15 PADS Logic 原理图
  • ¥15 PADS Logic 图标
  • ¥15 电脑和power bi环境都是英文如何将日期层次结构转换成英文
  • ¥20 气象站点数据求取中~
  • ¥15 如何获取APP内弹出的网址链接
  • ¥15 wifi 图标不见了 不知道怎么办 上不了网 变成小地球了
手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部