I need to increase max_input_vars value in php for Moodle installation. However, when I change the value in the php.ini file, the moodle web installer still prompts:
PHP setting max_input_vars must be at least 5000.
phpinfo() displays:
max_input_vars => 5000 => 5000
Editing the .htaccess file has no effect.
Create a temporary php file in the Moodle directory with the following content and run it through the browser (running php through the command line uses a different php ini file instead of the apache file)