It is possible de modify certain PHP paramters using directives inside an ".htaccess" file specific to your sites.
Fro example (taken from the Drupal 7 htaccess file), the following lines can be added to a file that is named ".htaccess" (without the quotes) at the root of your web site:site web:
# PHP 5, Apache 1 and 2. <IfModule mod_php5.c> php_value assert.active 0 php_flag session.auto_start off php_value mbstring.http_input pass php_value mbstring.http_output pass php_flag mbstring.encoding_translation off # PHP 5.6 has deprecated $HTTP_RAW_POST_DATA and produces warnings if this is # not set. php_value always_populate_raw_post_data -1 </IfModule>
Therefore, if you need to change a specific parameter, such as max_input_vars, it is possible to add the following lines:
# PHP 7.0 / 7.3 <IfModule mod_php7.c> php_value max_input_vars 10000 </IfModule> # PHP 5.x <IfModule mod_php5.c> php_value max_input_vars 10000 </IfModule>
To verify that the changes have taken effect, it is possible to verify on a page that outputs the PHP configuration information. Certain content management systems provide such pages to ease that task. Check the documentation of your CMS to find out if such a page is available.