Suhosin uninstal help?

Started by aLuCaRD, March 16, 2022, 07:34:11 PM

Previous topic - Next topic

aLuCaRD

How can I remove suhosin module from cwp panel. What is the SSH command? Sorry, this question may sound silly, but I just started.
system centos7 cwp7

iraqiboy90

It's not included in CWP. How did you even install it? What php type is this? What php version are you talking about? Knowing how you installed suhosin, gives you most of the answer on how to uninstall it..




aLuCaRD

The module is not already loaded, I think it gave an error. I completely deleted the files. This is the path I followed while installing. gave some errors like zend_hash

cd /usr/local/src
wget https://download.suhosin.org/suhosin-0.9.38.tar.gz
tar zxvf suhosin-0.9.38.tar.gz
cd suhosin-0.9.38
phpize
./configure
make
make install
echo extension=suhosin.so >> /usr/local/php/php.ini

rcschaff

edit the /usr/local/php/php.ini

look for

extension=suhosin.so

and comment it out with a " ; "
Google Hangouts:  rcschaff82@gmail.com

aLuCaRD


rcschaff

If it's not on the php.ini, then it's not loaded, so all should be good.
Google Hangouts:  rcschaff82@gmail.com

aLuCaRD

Thank you for your interest. you are great

iraqiboy90

Quote from: aLuCaRD on March 16, 2022, 10:05:48 PM
The module is not already loaded, I think it gave an error. I completely deleted the files. This is the path I followed while installing. gave some errors like zend_hash

cd /usr/local/src
wget https://download.suhosin.org/suhosin-0.9.38.tar.gz
tar zxvf suhosin-0.9.38.tar.gz
cd suhosin-0.9.38
phpize
./configure
make
make install
echo extension=suhosin.so >> /usr/local/php/php.ini


Well.. if you plan to reinstall it at some point into one of the php-fpm versions then you should do it this way:
Example with php-fpm 5.6

cd /usr/local/src
wget https://download.suhosin.org/suhosin-0.9.38.tar.gz
tar -xvf suhosin-0.9.38.tar.gz
cd suhosin-0.9.38
/opt/alt/php-fpm56/usr/bin/phpize
./configure --with-php-config=/opt/alt/php-fpm56/usr/bin/php-config
make && make install
touch /opt/alt/php-fpm56/usr/php/php.d/suhosin.ini
echo 'extension=suhosin.so' >> /opt/alt/php-fpm56/usr/php/php.d/suhosin.ini

Notice that the phpize and configure commands are specific