jstein jstein - 3 years ago 167
PHP Question

Configuring php.ini in Homestead

I am trying to change the variable max_input_vars in my php.ini file by specifying

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

and running

sudo nginx -s reload

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

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?

Answer Source

Have you tried this?

ini_set('max_input_vars', 2500);

At the beginning of this file bootstrap/autoload.php

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download