How to completly remove /usr/local/cpanel/bin/leechprotect

nat

Well-Known Member
Jan 16, 2003
209
0
166
I installed cpanel pro addon module.

/usr/local/cpanel/bin/leechprotect started showing up using all of the CPU.

I killed it and it just comes back later.

1. I uninstalled cpanel pro addon module

2. I deleted /usr/local/cpanel/bin/leechprotect from httpd.conf

The next time httpd.conf is updated by adding an account or something, it adds /usr/local/cpanel/bin/leechprotect back to httpd.conf and then it starts running again using all of the CPU.

How do you completly get rid of leechprotect?

I searched /usr/local/cpanel/bin/leechprotect. Look at the posts. Many, many, many post about high CPU usage and not being able to turn it off. We should be able to turn this thing off.

I uninstalled cpanel pro. Is there any way to get rid of this and put it back like it was before I installed cpanel pro? Uninstalling cpanel pro should undo cpanel pro but it is not.
 
Last edited:

nat

Well-Known Member
Jan 16, 2003
209
0
166
Deleting /usr/local/cpanel/bin/leechprotect causes apache to not run.

Making a blank /usr/local/cpanel/bin/leechprotect causes apache to not run.
 

nat

Well-Known Member
Jan 16, 2003
209
0
166
System:

  • cPanel 11.25.0-S45750 - WHM 11.25.0 - X 3.9
  • REDHAT Enterprise 5.5 x86_64 standard

Doing the following seems gets rid of it until the next time cpanel is upgraded or until the next time apache is compiled.

Edit /var/cpanel/templates/apache2/main.default

Code:
nano /var/cpanel/templates/apache2/main.default
Delete...

Code:
[% IF file_test('f', '/usr/local/cpanel/bin/leechprotect') -%]
RewriteEngine on
RewriteMap LeechProtect prg:/usr/local/cpanel/bin/leechprotect
RewriteLock /usr/local/apache/logs/rewrite_lock
[% END -%]
Save and exit nano.

Edit /usr/local/apache/conf/httpd.conf

Code:
nano /usr/local/apache/conf/httpd.conf
Delete...

Code:
RewriteEngine on
RewriteMap LeechProtect prg:/usr/local/cpanel/bin/leechprotect
RewriteLock /usr/local/apache/logs/rewrite_lock
Save and exit nano.

Kill the leachprotect process.

Code:
kill `/sbin/pidof leechprotect`
Run /usr/local/cpanel/bin/apache_conf_distiller --update

Code:
/usr/local/cpanel/bin/apache_conf_distiller --update
Restart apache

Code:
service httpd restart