Skip to main content

How to install Suhosin via EasyApache

Comments

10 comments

  • JaredR.
    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: # /usr/local/cpanel/scripts/phpextensionmgr list Available Extensions: EAccelerator IonCubeLoader Zendopt Xcache SourceGuardian PHPSuHosin #
    For usage information, just pass the help argument: # /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: # /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.
    0
  • Nirjonadda
    So SuHosin is not available via EasyApache without SSH ?
    0
  • JaredR.
    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.
    0
  • kernow
    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 :)
    0
  • Hostmill
    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
    0
  • cPanelMichael
    Hello :) You can install it on PHP 5.5 and you do not have to actually run "make test". Thank you.
    0
  • Hostmill
    Thanks Michael What about the patch? Is that compatible with php 5.5? Cheers
    0
  • cPanelMichael
    Could you elaborate on what patch you are referring to? Thanks.
    0
  • Hostmill
    Hi Michael The Suhosin patch. According to this [url=http://suhosin.org/stories/configuration.html]Configuration | SUHOSIN you cannot use the predefined constants for configuration if you have the Suhosin extension installed without the patch. Yet it states here [url=http://suhosin.org/stories/install.html]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
    0
  • cPanelMichael
    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.
    0

Please sign in to leave a comment.