Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: aLuCaRD on March 16, 2022, 07:34:11 PM

Title: Suhosin uninstal help?
Post by: aLuCaRD 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
Title: Re: Suhosin uninstal help?
Post by: iraqiboy90 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..



Title: Re: Suhosin uninstal help?
Post by: 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

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
Title: Re: Suhosin uninstal help?
Post by: rcschaff 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 " ; "
Title: Re: Suhosin uninstal help?
Post by: aLuCaRD on March 16, 2022, 10:34:17 PM
I removed it from there. :)
Title: Re: Suhosin uninstal help?
Post by: rcschaff 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.
Title: Re: Suhosin uninstal help?
Post by: aLuCaRD on March 16, 2022, 11:00:40 PM
Thank you for your interest. you are great
Title: Re: Suhosin uninstal help?
Post by: iraqiboy90 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