Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've set suhosin.perdir = 'p' in my ini file. I would now like to change suhosin ini settings on a per-folder basis.

The following all work (running phpinfo() inside the desired folder shows the changed values):

php_value 100
php_value 128
php_value 128
php_value 2000000
php_value 512
php_value 1000

But when I also add the .request settings (which I understand are an upper limit for the .post settings), they do not change:

php_value suhosin.request.max_array_depth 100
php_value suhosin.request.max_array_index_length 128
php_value suhosin.request.max_name_length 128
php_value suhosin.request.max_value_length  2000000
php_value suhosin.request.max_totalname_length 512
php_value suhosin.request.max_vars 1000

Do you have any idea if there is anything else I have to check/setup? Am I forgetting someting?

Thank you! Matei

share|improve this question
up vote 1 down vote accepted

You'll need to set suhosin.perdir = 'pr' for it to read both request and post values from an .htaccess file I think.. Don't have anything to test this on currently though.

share|improve this answer
Great. It worked! Thank you. – mitai May 29 '12 at 7:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.