在Homestead中配置php.ini [英] Configuring php.ini in Homestead

查看:272
本文介绍了在Homestead中配置php.ini的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过指定

; How many GET/POST/COOKIE input variables may be accepted
max_input_vars = 2500

并运行

sudo nginx -s reload

即使我在本地计算机(C:\ xampp \ php \ php.ini)和Homestead(/etc/php5/fpm/php.ini)上将此变量都设置为2500, 我不断收到以下错误消息

Even though I set this variable to 2500 on both my local machine (C:\xampp\php\php.ini) and on Homestead (/etc/php5/fpm/php.ini), I keep receiving the following error message

  parse_str(): Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini

我知道.htaccess会在每个站点上覆盖php.ini,是否还有其他文件覆盖php.ini?更改php.ini文件后还有其他需要重新加载的服务吗?

I know .htaccess overrides php.ini on a per site basis, are there any other files which override php.ini? Are there any other services that need to be reloaded after changing the php.ini file?

推荐答案

您尝试过吗?

ini_set('max_input_vars', 2500);

此文件的开头bootstrap/autoload.php

这篇关于在Homestead中配置php.ini的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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