Jump to content

Why does PHP use such small limits? (max_input_vars error)


Recommended Posts

Heya.

 

I've set up a new website and just started translating some of it to my native Greek language.

Yet from the very first time I get an error that "max_input_vars" is set to 1000 and that it's too low for that.

 

I created a php.ini file and put it on public_html 

post_max_size = 20000M
upload_max_filesize = 20000M
max_execution_time = 30000
max_input_time = 60000
memory_limit = 8000M
max_input_vars = 8000
suhosin.post.max_vars = 8000
suhosin.request.max_vars = 8000

Then I put the following lines in the (hidden) .htdocs file

<IfModule mod_suphp.c>
suPHP_ConfigPath /home/vasilonet/php.ini
</IfModule>

Still nothing.

 

Someone told me that I have to restart apache to apply that, but I use a shared godaddy server. 

I.e. I can't restart apache, unless I pay 204 euros/ year and 360 euros per year after that.

 

My question is: Why on earth does PHP use such small file limits? E.g. 8MB for mysql databases, a database for ants? 

 

Thanks for reading

 

EDIT: This makes me think about hosting it from my computer, since I don't have that many customers online. But I have a dynamic IP so I have to find a way to bypass that problem.

Edited by eru777 (see edit history)
Link to comment
Share on other sites

a too large of a value in max_input_vars could introduce security issues.  This parameter in conjunction with other parameters is what controls how much data can be sent to your server in a POST request.  If you are able to increase it, I would suggest you revert the change back to 1000 after you are done

Also note, in a shared hosting environment, they will likely restrict your ability to change this.  Tread carefully...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...