The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

setting php_values with suhosin

Discussion in 'General Discussion' started by bignose, Jun 10, 2008.

  1. bignose

    bignose Active Member

    Joined:
    Jan 3, 2007
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    For vBulletin, I have to up 2 of my php values.

    I've tried making both a php.ini file and a .htaccess file with the following content

    php_value suhosin.post.max_vars 500
    php_value suhosin.request.max_vars 500

    It doesn't work for either as can be seen here:

    http://forum.canadianwoodworking.com/info.php

    Suggestions?
     
  2. ChrisRHS

    ChrisRHS Well-Known Member

    Joined:
    Jul 12, 2006
    Messages:
    292
    Likes Received:
    5
    Trophy Points:
    18
    If you have root access to the server, you can add the values you need into the php.ini file (the values below are what vbulletin recommends):

    suhosin.post.max_vars = 2048
    suhosin.request.max_vars = 2048

    If you don't have root access, and you wish to use an .htaccess file to change variables, you need to have whomever the server admin is, add this to the php.ini:

    suhosin.perdir = "p"

    This will allow the use of .htaccess to change variable on a per directory basis.
     
  3. Shrek

    Shrek Active Member

    Joined:
    Sep 6, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Arkansas, USA
    I need to add the same to my php.ini ... however I see nowhere in the php.ini to edit and I am not sure where I add it.
    Can either of you point the way a little clearer please.
    Thank you.
     
  4. bignose

    bignose Active Member

    Joined:
    Jan 3, 2007
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    just add it and test it. doesn't matter where
     
Loading...

Share This Page