Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 299
jstein Avatar asked Feb 09 '23 23:02

jstein


1 Answers

On the latest laravel homestead, php.ini is located in

/etc/php/7.0/fpm/php.ini

(Make sure you enter into ssh in to the homestead environment)

try to edit it using

sudo su
like image 128
mpalencia Avatar answered Feb 11 '23 17:02

mpalencia