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.

How to install Suhosin via EasyApache

Discussion in 'EasyApache' started by Nirjonadda, Jul 16, 2014.

  1. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    150
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    How to install Suhosin via EasyApache ? I didnot see any option to install Suhosin? Suhosin used to be in EasyApache, how to enable now?
     
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Because SuHosin is a PHP extension, there is no reason to rebuild all of Apache and PHP to install or remove it. Instead, use phpextensionmgr. phpextensionmgr will install or remove the following PHP extensions:

    Code:
    # /usr/local/cpanel/scripts/phpextensionmgr list
    Available Extensions:
    EAccelerator
    IonCubeLoader
    Zendopt
    Xcache
    SourceGuardian
    PHPSuHosin
    #
    For usage information, just pass the help argument:

    Code:
    # /usr/local/cpanel/scripts/phpextensionmgr help
    Usage:
        phpextensionmgr [options] [action] [extension]
    
            Options:
              --help       Help message
              --prefix     Installation prefix for PHP (normally /usr/local)
    
            Actions:
              install      Install or update the extension
              uninstall    Uninstall the extension
              status       Display the installation status of the extension
              list         Show available extensions
    
    #
    So to install SuHosin, you would use:

    Code:
    # /usr/local/cpanel/scripts/phpextensionmgr install PHPSuHosin
    phpextensionmgr is much faster, and poses much less risk to Apache and PHP as a whole, than running EasyApache just to install or remove an extension. Extensions by nature are easy to install and remove, with the only change to the PHP configuration being an entry in the php.ini file.
     
  3. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    150
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    So SuHosin is not available via EasyApache without SSH ?
     
  4. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    SuHosin is no longer in EasyApache. You need to run phpextensionmgr from the shell, as I explained, to install or remove it.

    This is also true for the other PHP extensions I listed in the output in my previous reply.
     
  5. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    865
    Likes Received:
    9
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Was planning on running EA to install suhosin (which is now in latest EA) when I came across this post on using phpextensionmgr, this is an exccellent script to install extensions super fast. Well done cPanel team :)
     
    #5 kernow, Sep 4, 2014
    Last edited: Sep 4, 2014
  6. Hostmill

    Hostmill Member

    Joined:
    May 5, 2014
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I installed the Suhosin extension via the shell as per above. Once the install has run it suggests "Build complete.
    Don’t forget to run ‘make test’." Is this necessary?

    Is it possible to install the Suhosin patch? I'm using php 5.5.16.

    Cheers
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  8. Hostmill

    Hostmill Member

    Joined:
    May 5, 2014
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks Michael

    What about the patch? Is that compatible with php 5.5?

    Cheers
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  10. Hostmill

    Hostmill Member

    Joined:
    May 5, 2014
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi Michael

    The Suhosin patch. According to this Configuration | SUHOSIN you cannot use the predefined constants for configuration if you have the Suhosin extension installed without the patch. Yet it states here Installing Suhosin | SUHOSIN that "The Suhosin-Patch is compatible only up to version 5.3.9". Is this referring to PHP 5.3.9?

    I'm a little confused.

    Cheers
     
  11. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Yes, that document is referring to the PHP version. If you use PHP 5.4 or 5.5, Suhosin version 0.9.36 is utilized. If you use PHP 5.3, Suhosin version 0.9.33 is utilized. Have you tried configuring to see if you actually encounter any problems?

    Thank you.
     
Loading...

Share This Page