Koumbit.org

For freedom and solidarity online

How can specific PHP parameters be modified?

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.

Call us

☏ +1 514 907 9494
Lun: 10h à 12h et 13h à 16h
Mar: 10h à 12h
Mer: 10h à 12h et 13h à 16h
Jeu: 10h à 12h
Mon: 10am to 12pm and 1pm to 4pm
Tue: 10am to 12pm
Wed: 10am to 12pm and 1pm to 4pm
Thu: 10am to 12pm

Come and See Us!

1883, rue Atateken,
Montréal (Québec) H2L 3L7, Canada
Veuillez noter que nos bureaux n'ont pas de stationnement attitré.
1883 Atateken Street,
Montreal, Quebec, H2L 3L7, Canada
Please note that you'll need to find on-street parking.

Write to Us

Informations générales

Support technique

Pour une demande de devis, voir le formulaire à la page contact.

Nos clefs PGP

General inquiries

Technical support

For a free estimate, see the form on our contact page.

Our PGP keys

Follow Us

ktweb_menu_social