Friday, July 25, 2014

how to increase limit of max input vars in php.ini

To increase in max_input_vars in php.ini follow the steps below.

  • SSH server as root user.
  • Locate you php.ini file commonly it is in /usr/local/lib/
  • vi /usr/local/lib/php.ini
  • search line max_input_time if doesn't exist add it, 5000 is the value i have used.
  • max_input_time = 5000
  • Save and exit
  • Restart httpd service
  • service httpd restart

Check current settings for max_input_vars, We can also check the same using phpinfo for steps to create phpinfo file refer the link.

=======
root@server [~]# php -i | grep max_input_vars
max_input_vars => 5000 => 5000
=======

In above case 5000 is the value set in the php.ini, Any changes made in php.ini are server wide.

No comments:

Post a Comment

Do Write about the Blog and Welcome to the world where open source is every thing :-)