Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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

Discussion in 'General Discussion' started by nat, May 30, 2010.

  1. nat

    nat Well-Known Member

    Joined:
    Jan 16, 2003
    Messages:
    210
    Likes Received:
    0
    Trophy Points:
    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.
     
    #1 nat, May 30, 2010
    Last edited: May 30, 2010
  2. nat

    nat Well-Known Member

    Joined:
    Jan 16, 2003
    Messages:
    210
    Likes Received:
    0
    Trophy Points:
    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.
     
  3. nat

    nat Well-Known Member

    Joined:
    Jan 16, 2003
    Messages:
    210
    Likes Received:
    0
    Trophy Points:
    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
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice