break
1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5.00 out of 5)
Loading...

Suhosin – Changing config values

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:

suhosin.post.max_vars = 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 suhosin.post.max_vars 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:

    thanks
    SUPER !

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

    See you soon!

    Take care

    Stationmaster

  9. Saman says:

    Hello,
    Thanks.Thanks,Thanks!

  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!

    Sweetgrapes

  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. Cool
    thanks for interesting post !

  47. casino en linea says:

    found your site on del.icio.us 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

Your email address will not be published. Required fields are marked *