Equivalent of php_value under Apache + php-fpm

前端 未结 2 911
滥情空心
滥情空心 2020-12-16 12:57

under Apache + PHP as module you can set

php_value post_max_size 8M

inside a .htaccess.

How can I do this under Ap

相关标签:
2条回答
  • 2020-12-16 13:38

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

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

    0 讨论(0)
  • 2020-12-16 13:49

    You can use

    SetEnv PHP_VALUE "post_max_size = 8M"
    

    or

    SetEnv PHP_ADMIN_VALUE "post_max_size = 8M"
    

    in the apache configuration.

    0 讨论(0)
提交回复
热议问题