douqiu0351 2014-05-30 16: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 15: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 使用phpstudy在云服务器上搭建个人网站
  • ¥15 应该如何判断含间隙的曲柄摇杆机构,轴与轴承是否发生了碰撞?
  • ¥15 vue3+express部署到nginx
  • ¥20 搭建pt1000三线制高精度测温电路
  • ¥15 使用Jdk8自带的算法,和Jdk11自带的加密结果会一样吗,不一样的话有什么解决方案,Jdk不能升级的情况
  • ¥15 画两个图 python或R
  • ¥15 在线请求openmv与pixhawk 实现实时目标跟踪的具体通讯方法
  • ¥15 八路抢答器设计出现故障
  • ¥15 opencv 无法读取视频
  • ¥15 按键修改电子时钟,C51单片机