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.

suhosin configuration

Discussion in 'General Discussion' started by flash7, Dec 14, 2007.

  1. flash7

    flash7 Well-Known Member

    Joined:
    Feb 16, 2004
    Messages:
    203
    Likes Received:
    0
    Trophy Points:
    16
    Where we can config suhosin?

    Through WHM or by hand in php.ini file?

    Thank you
     
  2. xisn

    xisn Well-Known Member

    Joined:
    Dec 4, 2004
    Messages:
    128
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    I did by hand...

    I did it by hand in the php.ini file, I have copied my settings below, they may not work perfectly with how your server is setup but it works great with ours...

    Code:
    ;;;;;;;;;;;;;;;;;;;
    ; Module Settings ;
    ;;;;;;;;;;;;;;;;;;;
    
    [suhosin]
    ; Logging Configuration
    suhosin.log.syslog = 511
    suhosin.log.syslog.facility = 18
    suhosin.log.use-x-forwarded-for = Off
    suhosin.log.phpscript = 8
    suhosin.log.script = 511
    suhosin.log.syslog.priority = 3
    
    ; Executor Options
    suhosin.executor.max_depth = 0
    suhosin.executor.include.max_traversal = 4
    suhosin.executor.disable_emodifier = Off
    suhosin.executor.allow_symlink = Off
    
    ; Misc Options
    suhosin.simulation = Off
    suhosin.apc_bug_workaround = On
    suhosin.sql.bailout_on_error = Off
    suhosin.multiheader = Off
    suhosin.mail.protect = 1
    suhosin.memory_limit = 20
    
    ; Transparent Encryption Options
    suhosin.session.encrypt = On
    suhosin.session.cryptua = On
    suhosin.session.cryptdocroot = On
    suhosin.session.cryptraddr = 0
    suhosin.cookie.encrypt = On
    suhosin.cookie.cryptua = On
    suhosin.cookie.cryptraddr = 0
    
    ; Filtering Options
    suhosin.filter.action = 406
    suhosin.cookie.max_array_depth = 100
    suhosin.cookie.max_array_index_length = 64
    suhosin.cookie.max_name_length = 64
    suhosin.cookie.max_totalname_length = 256
    suhosin.cookie.max_value_length = 10000
    suhosin.cookie.max_vars = 100
    suhosin.cookie.disallow_nul = On
    suhosin.get.max_array_depth = 50
    suhosin.get.max_array_index_length = 64
    suhosin.get.max_name_length = 64
    suhosin.get.max_totalname_length = 256
    suhosin.get.max_value_length = 512
    suhosin.get.max_vars = 100
    suhosin.get.disallow_nul = On
    suhosin.post.max_array_depth = 100
    suhosin.post.max_array_index_length = 64
    suhosin.post.max_name_length = 64
    suhosin.post.max_totalname_length = 256
    suhosin.post.max_value_length = 65000
    suhosin.post.max_vars = 200
    suhosin.post.disallow_nul = On
    suhosin.request.max_array_depth = 100
    suhosin.request.max_array_index_length = 64
    suhosin.request.max_totalname_length = 256
    suhosin.request.max_value_length = 65000
    suhosin.request.max_vars = 200
    suhosin.request.max_varname_length = 64
    suhosin.request.disallow_nul = On
    suhosin.upload.max_uploads = 25
    suhosin.upload.disallow_elf = On
    suhosin.upload.disallow_binary = Off
    suhosin.upload.remove_binary = Off
    suhosin.session.max_id_length = 128
    
     
  3. flash7

    flash7 Well-Known Member

    Joined:
    Feb 16, 2004
    Messages:
    203
    Likes Received:
    0
    Trophy Points:
    16
    Hi, thank you.

    cPanel tech can add a editing interface in WHM like php configuration :cool:
     
Loading...

Share This Page