Author Topic: Suhosin uninstal help?  (Read 3216 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Suhosin uninstal help?
« on: March 16, 2022, 07:34:11 PM »
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

Offline
***
Re: Suhosin uninstal help?
« Reply #1 on: March 16, 2022, 09:57:33 PM »
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..




Offline
*
Re: Suhosin uninstal help?
« Reply #2 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

Code: [Select]
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

Offline
****
Re: Suhosin uninstal help?
« Reply #3 on: March 16, 2022, 10:30:21 PM »
edit the /usr/local/php/php.ini

look for

extension=suhosin.so

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

Offline
*
Re: Suhosin uninstal help?
« Reply #4 on: March 16, 2022, 10:34:17 PM »
I removed it from there. :)

Offline
****
Re: Suhosin uninstal help?
« Reply #5 on: March 16, 2022, 10:35:35 PM »
If it's not on the php.ini, then it's not loaded, so all should be good.
Google Hangouts:  rcschaff82@gmail.com

Offline
*
Re: Suhosin uninstal help?
« Reply #6 on: March 16, 2022, 11:00:40 PM »
Thank you for your interest. you are great

Offline
***
Re: Suhosin uninstal help?
« Reply #7 on: March 17, 2022, 08:00:06 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

Code: [Select]
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
Code: [Select]
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