相当于Apache下的php_value + php-fpm [英] Equivalent of php_value under Apache + php-fpm

查看:36
本文介绍了相当于Apache下的php_value + php-fpm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Apache + PHP下作为模块可以设置

under Apache + PHP as module you can set

php_value post_max_size 8M

在 .htaccess 中.

inside a .htaccess.

如何在 Apache + PHP-FPM 下执行此操作?

How can I do this under Apache + PHP-FPM?

我正在使用 FastCgiExternalServer 指令,但希望将功能保留在 .htaccess 文件中(如果可能).

I'm using the FastCgiExternalServer directive, but want to keep the functionality within the .htaccess file (if possible).

谢谢!

推荐答案

我找到了一种比较优雅的方法:.user.ini 文件

I've found an somewhat elegant way to do it: .user.ini files

它似乎是 PHP-FPM 的 .htaccess 版本.

It seems to be the .htaccess version for PHP-FPM.

这篇关于相当于Apache下的php_value + php-fpm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆