Increase the Max_Input_Vars in PHP For IIS WordPress Install

Installed WordPress for a client, they wanted a particular theme. The theme has some sort of Server Health page which showed the Max_Input_Vars was set to 1000 and it was recommending to go higher. I searched hi and lo for  how to change it. All the websites I hit said add a php.ini with the settings you want or update the .htaccess file.  Neither worked.  But what did work was this (if you’re running wordpress on IIS):

  • Open up Internet Information Services (IIS) Manager
  • Select the server name in the left side Connections pane
  • In the Features View, select PHP Manager

  • Click on Manage all settings

  • In the Filter box type max_input_vars and hit Go

  • Right-click the max_input_vars and select Edit
  • Change the value to whatever you want (I set it to 3000), then hit OK.

That’s it!  You can verify by creating a test.php file with the following line:

<?php phpinfo(); ?>

Open up that test.php page in a browser. There, search for the max_input_vars and it should show you the updated value.

500 Internal Server Error

Got a personal website hosted on Godaddy that all of a sudden started giving me 500 Internal Server Error:

I have the domain and hosting at Godaddy – Economy Linux hosting. I use WordPress as the front end. Not the WordPress setup they offer, but I uploaded my own WordPress files, setup a MySQL db, and configured everything manually. I use the site to host family pictures and videos. I haven’t made any changes in a month however all of a sudden I’m getting 500 Internal Server Errors.

During the course of my investigation, I found out it was due to my .htaccess file. The site worked without it, but why? It worked fine before!

Turns out it was the following line in the file:

# disable directory browsing
Options All -Indexes

I commented it out, and everything worked fine. Not sure if it’s a Godaddy issue or an Apache issue. Probably the former.

But I would think it would be prudent to disable directory browsing. However, what’s weird is that I have similar setups with Godaddy, including the Options All -Indexes, and have no issues…yet.