Suhosin – Changing config values

Posted by: Chris  :  Category: Linux Tips

Suhosin, the hardened php project.  If you are having some troubles running some scripts after you’ve installed, you will have to change some of the configuration values.  There are three ways of doing this, however, I’ll only touch on two of them.  Both require you to have root access to the server.  If you want to change values globally (for all sites on the server), then you would add the config changes to the end of your php.ini file.  For example: = 2048
suhosin.request.max_vars = 2048

Now, I chose these because, if you run a vbulletin forum, your likely going to want to increase these from the default values.  If this is what you want to use, restart httpd and your done.  Feel free to check the phpinfo to check your settings.

The second way, is to allow users to use .htaccess files to change values, similar to changing your php configuration values (php_value).  In order to allow users to change setting through .htaccess, you need to add this line into your php.ini file:

suhosin.perdir = “p”

Once saved, and httpd restarted, you should be able to create per directory changes for suhosin.  For example, your .htaccess file would look like this:

php_value 2048
php_value suhosin.request.max_vars 2048

Once again, feel free to pull up your valuable phpinfo page to see if your changes have taken effect.

49 Responses to “Suhosin – Changing config values”

  1. Anthony Howe Says:

    And what is the 3rd way? I want to use ini_set(), since one of the suhosin variables I want to change is based on a site specific config.php file.

  2. Chris Says:

    ini_set may be disabled in php, have you tried to use the .htaccess option? Do you have root control of the server?

  3. johnny Says:

    XEjiFu Thanks for good post

  4. KrisBelucci Says:

    Hi, cool post. I have been wondering about this topic,so thanks for writing.

  5. Kelly Brown Says:

    Great post! I’ll subscribe right now wth my feedreader software!

  6. JaneRadriges Says:

    Hi, very nice post. I have been wonder’n bout this issue,so thanks for posting

  7. football Says:

    SUPER !

  8. Stationmaster Says:

    Sometimes I read thigs and want to comment so I finally decided to signup

    See you soon!

    Take care


  9. Saman Says:


  10. Robor Says:

    Not sure that this is true:), but thanks for a post.
    Have a nice day

  11. Eremeeff Says:

    Thanks for article. Everytime like to read you.
    Thank you

  12. sweetgrapes Says:

    What a interesting forum, great comments.

    Be back later!


  13. rusdating Says:

    Its the best what I saw before. I like this site. Txh

  14. Rechtsanwalt Says:

    Hi I`m really glad that I can found so interesting information. Thx u a lot

  15. Bundweite Says:

    There are many interesting in this article. Auther is a good gyu

  16. luxuryx Says:

    There are many interesting I like this. Need to go now and add in RSS

  17. worldcoms Says:

    I found what I wanna. It`s was great. Auther is the best

  18. motorcars Says:

    Thank you. It was very usfull and important information

  19. partlyhere Says:

    i just wanted to chime in and say nice design.

  20. Mytourism Says:

    Veru nice article, hope to see same info in feauture. Thank you

  21. Htpcbox Says:

    I like this site. Really nice place for all

  22. Retrosis Says:

    Very interesting for me. Thx u for this article and goog luck

  23. Xtravelos Says:

    Article is the best what I saw before. Thx u a lot

  24. publorgs Says:

    Waw. Glad to hear so nice comments. Hope we will have more information soon

  25. Gvozdey Says:

    I saw really nice comments. Thx for auther

  26. Xediks Says:

    Great blog, found here all that was looking for.

  27. Bodybuil Says:

    I found many interesting in this site. Thank you a lot

  28. slowariks Says:

    Thank you. I found all what I wanna at this site

  29. utroorg Says:

    So nice comments and spesial material. I try to add RSS

  30. Alasail Says:

    I wanna say my opinion. It`s the best site, which I saw before. Thx u a lot

  31. Builderman Says:

    Hi, good post. I have been wondering about this topic,so thanks for writing.

  32. forsage Says:

    I hope to see some more comments and articles

  33. Diktionaryi Says:

    Very nice to see this article. Thx u a lot for this

  34. esnest Says:

    I really like this article. Thank u for so nice article

  35. realtyst Says:

    Hope to see same more info about this in future. Thx

  36. Ipodfilm Says:

    So nice site. I will visit it more often and read comments. Thx u a lot

  37. Slowarin Says:

    I found many interesting things in this article. Thank you a lot

  38. Ewikiinfo Says:

    All wahat I need to say, that it`s very interesting and usefull information

  39. Confisca Says:

    Hope to see more info in future. It can help to many people

  40. Mobilec Says:

    Nice article. I need to add it in my brouse and use it more often.

  41. expresson Says:

    It`s was rather interesting to reed. Hope to see same more in future

  42. Bestbabess Says:

    Thx u a lot. It was very interesting to reed. Add in RSS

  43. Ruslone Says:

    This information really help me. Thx u a lot. Hoipe to see some more again

  44. Picamigo Says:

    Rather interesting to reed. Thx u . U make me happy

  45. casinosin Says:

    Has learnt a lot of interesting on this site. I will come here more often

  46. watch movie online Says:

    thanks for interesting post !

  47. casino en linea Says:

    found your site on today and really liked it.. i bookmarked it and will be back to check it out some more later ..

  48. Apellpedwab Says:

    Thank you


  49. Nocleg Says:

    i just wanne say thats great sharing

Leave a Reply