Nirjonadda

Well-Known Member
May 8, 2013
742
28
78
cPanel Access Level
Root Administrator
How to install Suhosin via EasyApache ? I didnot see any option to install Suhosin? Suhosin used to be in EasyApache, how to enable now?
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
24
143
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.
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
24
143
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.
 

kernow

Well-Known Member
Jul 23, 2004
1,015
61
178
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 :)
 
Last edited:

Hostmill

Member
May 5, 2014
11
0
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,219
463
Hello :)

You can install it on PHP 5.5 and you do not have to actually run "make test".

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,219
463
Could you elaborate on what patch you are referring to?

Thanks.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,219
463
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.