When installing Moodle, I received an error indicating that the max_input_vars PHP setting must be at least 5000. I have already set max_input_vars to 5000 in the php.ini file, but the error persists.
In addition to what others have said, changing/adding to PHP does require the restart of your web services for your web server to pick up on the changes.