The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to uninstall cPanel and WHM safely from linux ?

Discussion in 'General Discussion' started by hatem-imam, May 30, 2010.

  1. hatem-imam

    hatem-imam Registered

    Joined:
    May 30, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi ...

    I have a server which is already has the cPanel and the WHM installed in it.
    And my work require another application server ..
    so I need to uninstall cPanel and WHM from the linux based server safely without any conflict ... like stopping all the services and so on ...
    I tried to Google this but found nothing .

    best regards :)
     
  2. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    In short "Not Possible". cPanel makes quite a lot of permission/ownership and other changes to OS files which makes it difficult to bring the server back to it's original state (i.e. before cPanel was installed). The only way you can get rid of cPanel from your server is to re-install your server.
     
  3. vheeds

    vheeds Member

    Joined:
    Feb 22, 2010
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Unfortunately, there is no way to uninstall CPanel. Its very hard to remove services, daemons and compiled binaries. I would recommend to perform the Os reload and then start it from scratch.
     
  4. askapache

    askapache Registered

    Joined:
    Jan 17, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    madaboutlinux, it can be done, but it is very difficult and extremely dangerous unless you really know linux. I was successful and posted the commands I used to do it on askapache.com if you want a starting point. Especially cool are the commands to locate files owned/modified by cpanel using find.
     
  5. askapache

    askapache Registered

    Joined:
    Jan 17, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I can't stress enough though how bad of an idea it is to uninstall cpanel manually like that, reinstalling the OS is 1000x better. And you should think long and hard about whether removing cpanel is a good idea, and once you uninstall you are upstream without a paddle unless you really know your stuff (CSF, Iptables, Bind, Apache, MySql, PHP, Perl, Python, manual software compiling, etc..).
     
  6. MHafez

    MHafez Registered

    Joined:
    Jun 11, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    No way man just you need reload OS :)
     
  7. linux7802

    linux7802 Well-Known Member

    Joined:
    Dec 14, 2007
    Messages:
    232
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    There is no such procedure of removing the cPanel.Its better if you reload OS and If you don't want to reload OS then follow the steps:

    1) Delete all the directory and contents of /usr/local/cpanel & /scripts
    2) Remove all cPanel startup scripts
    3) Kill all cPanel related processes
    4) Reconfigure remaining modules/applications which like to continue to use such as Apache, BIND etc.
     
  8. lenzcom

    lenzcom Registered

    Joined:
    Aug 5, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Found a good tutorial for doing it...

    looks quite complete and professional:
    HOWTO: Uninstall CPANEL over SSH

    I was searching for a way to remove it, too. Completely sucks if you want to build a lightweight web app server.

    For resellers it may be a great solution, but for developers a pain. EasyApache install is so damn timeconsuming because it failed on my server with 2 GB RAM and 100GB HDD space. Awesome.

    And all the good features are so completely chaotic. I get confused when trying to see a concept behind that. Looks more like a bunch of together smashed code from some guys wanting to make some fast buck.
     
Loading...

Share This Page