How to uninstall cPanel and WHM safely from linux ?

hatem-imam

Registered
May 30, 2010
1
0
51
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 :)
 

madaboutlinux

Well-Known Member
Jan 24, 2005
1,051
2
168
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.
 

vheeds

Member
Feb 22, 2010
13
0
51
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.
 

askapache

Registered
Jan 17, 2010
3
0
51
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.
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.
 

askapache

Registered
Jan 17, 2010
3
0
51
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..).
 

linux7802

Well-Known Member
Dec 14, 2007
232
1
68
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.
 

lenzcom

Registered
Aug 5, 2010
1
0
51
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.