{"id":20034,"date":"2023-08-12T20:37:27","date_gmt":"2023-08-12T20:37:27","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=20034"},"modified":"2023-10-21T20:50:50","modified_gmt":"2023-10-21T20:50:50","slug":"how-to-uninstall-whm-on-ubuntu","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-uninstall-whm-on-ubuntu\/","title":{"rendered":"How to Uninstall WHM on Ubuntu"},"content":{"rendered":"<p><img decoding=\"async\" data-src=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2023\/10\/How-to-Uninstall-WHM-on-Ubuntu-1024x878.jpg\" alt=\"How to Uninstall WHM on Ubuntu\" width=\"1024\" height=\"878\" class=\"alignnone size-large wp-image-20035 lazyload\" data-srcset=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2023\/10\/How-to-Uninstall-WHM-on-Ubuntu-1024x878.jpg 1024w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2023\/10\/How-to-Uninstall-WHM-on-Ubuntu-300x257.jpg 300w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2023\/10\/How-to-Uninstall-WHM-on-Ubuntu-128x110.jpg 128w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2023\/10\/How-to-Uninstall-WHM-on-Ubuntu-420x360.jpg 420w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2023\/10\/How-to-Uninstall-WHM-on-Ubuntu-540x463.jpg 540w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2023\/10\/How-to-Uninstall-WHM-on-Ubuntu-720x617.jpg 720w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2023\/10\/How-to-Uninstall-WHM-on-Ubuntu-960x823.jpg 960w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2023\/10\/How-to-Uninstall-WHM-on-Ubuntu-1140x977.jpg 1140w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2023\/10\/How-to-Uninstall-WHM-on-Ubuntu-1166x999.jpg 1166w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2023\/10\/How-to-Uninstall-WHM-on-Ubuntu-840x720.jpg 840w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2023\/10\/How-to-Uninstall-WHM-on-Ubuntu-1260x1080.jpg 1260w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2023\/10\/How-to-Uninstall-WHM-on-Ubuntu.jpg 1400w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/878;\" \/><\/p>\n<p>Web Hosting Manager (WHM) is a powerful tool that many webmasters use to manage their hosting environments. However, there may come a time when you no longer need WHM on your <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-ubuntu-beginners-guide-ubuntu-linux-distro\/\">Ubuntu<\/a> machine.<\/p>\n<p>Whether you&#8217;re migrating to a different control panel, optimizing <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-are-web-servers-and-why-are-they-needed\/\">web server<\/a> resources, or simply cleaning up, uninstalling WHM is a crucial step.<\/p>\n<p>In this guide, we&#8217;ll walk you through the step-by-step process of uninstalling WHM from an Ubuntu server.<\/p>\n<p>Let&#8217;s get started.<\/p>\n<h2>Step 1: Log in to Your Server<\/h2>\n<p>Access your Ubuntu server using SSH. You can do this by opening a terminal and typing:<\/p>\n<pre>ssh username@your_server_ip<\/pre>\n<p>Replace username with your server&#8217;s username and your_server_ip with your server&#8217;s IP address.<\/p>\n<p>You&#8217;ll then be prompted to enter the password for the admin user. Once authenticated, you&#8217;ll have access to your server&#8217;s command line.<\/p>\n<h2>Step 2: Backup Your Data<\/h2>\n<p>Before making any changes to your server, always ensure you have a recent backup of all critical data. This includes website files, databases, emails, and configurations. Use tools like rsync or tar to create backups and store them in a safe location.<\/p>\n<p>To backup your website files from \/var\/www\/html to a backup directory \/backup\/website_files, you can use the following command:<\/p>\n<pre>rsync -avz \/var\/www\/html\/ \/backup\/website_files\/<\/pre>\n<p>To create a compressed backup of the same directory:<\/p>\n<pre>tar -czvf \/backup\/website_files_backup.tar.gz \/var\/www\/html\/<\/pre>\n<p>After creating the backup, ensure you store it in a safe location, preferably off-site or on a different server, to protect against hardware failures.<\/p>\n<h2>Step 3: Stop All cPanel &#038; WHM Services<\/h2>\n<p>Before uninstalling, ensure that all cPanel and WHM services are stopped.<\/p>\n<pre>sudo \/usr\/local\/cpanel\/scripts\/restartsrv_cpsrvd stop<\/pre>\n<h2>Step 4: Remove cPanel &#038; WHM Packages<\/h2>\n<p>Use the following command to remove all cPanel and WHM packages:<\/p>\n<pre>sudo yum remove cpanel\\*<\/pre>\n<h2>Step 5: Remove All cPanel Directories<\/h2>\n<p>To ensure a clean uninstall, remove all directories associated with cPanel and WHM:<\/p>\n<pre>\r\nsudo rm -rf \/usr\/local\/cpanel\r\nsudo rm -rf \/var\/cpanel\r\nsudo rm -rf \/usr\/local\/cpaddons\r\nsudo rm -rf \/var\/log\/cpanel*\r\nsudo rm -rf \/etc\/httpd\/conf\/httpd.conf*\r\n<\/pre>\n<h2>Step 6: Remove cPanel Users<\/h2>\n<p>If you&#8217;ve created any users through WHM, you&#8217;ll want to remove them:<\/p>\n<pre>\r\nsudo userdel -r cpaneleximscanner\r\nsudo userdel -r cpanelhorde\r\n<\/pre>\n<h2>Step 7: Clean Up Remaining Files<\/h2>\n<p>Search for any remaining cPanel files and directories:<\/p>\n<pre>sudo find \/ -name '*cpanel*'<\/pre>\n<p>Review the list and manually remove any relevant files or directories.<\/p>\n<h2>Step 8: Reconfigure DNS (If Necessary)<\/h2>\n<p>If you were using WHM&#8217;s built-in DNS server, you might need to reconfigure your DNS settings or switch to a different DNS provider.<\/p>\n<h2>Commands Mentioned<\/h2>\n<ul>\n<li><span class=\"fw-bold\">ssh username@your_server_ip<\/span> \u2013 Used to access your server via SSH.<\/li>\n<li><span class=\"fw-bold\">sudo \/usr\/local\/cpanel\/scripts\/restartsrv_cpsrvd stop<\/span> \u2013 Stops all cPanel &#038; WHM services.<\/li>\n<li><span class=\"fw-bold\">sudo yum remove cpanel\\*<\/span> \u2013 Removes all cPanel &#038; WHM packages.<\/li>\n<li><span class=\"fw-bold\">sudo rm -rf \/directory_name<\/span> \u2013 Removes specified directories.<\/li>\n<li><span class=\"fw-bold\">sudo userdel -r username<\/span> \u2013 Removes specified users.<\/li>\n<li><span class=\"fw-bold\">sudo find \/ -name &#8216;*cpanel*&#8217;<\/span> \u2013 Searches for remaining cPanel files and directories.<\/li>\n<\/ul>\n<h2>FAQ<\/h2>\n<ol itemscope itemtype=\"https:\/\/schema.org\/FAQPage\">\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">Why would I want to uninstall WHM?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">There are several reasons to uninstall WHM, including migrating to a different control panel, optimizing server resources, or cleaning up unused software.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">Is it safe to uninstall WHM?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">Yes, but always ensure you have a backup of all critical data before proceeding. This ensures you can restore your server if something goes wrong.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">What happens to my websites after uninstalling WHM?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">Your websites&#8217; data remains intact, but the management tools provided by WHM will no longer be available. You&#8217;ll need to manage your sites manually or migrate to another control panel.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">Can I reinstall WHM after uninstalling?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">Yes, you can reinstall WHM anytime. However, it&#8217;s essential to ensure that all configurations and settings are correctly set up after reinstallation.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">Do I need to reconfigure my DNS after uninstalling WHM?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">If you were using WHM&#8217;s built-in DNS server, you might need to reconfigure your DNS settings or switch to a different DNS provider.<\/span>\n            <\/p>\n<\/li>\n<\/ol>\n<h2>Conclusion<\/h2>\n<p>Removing WHM from your Ubuntu server is a straightforward process when you follow the steps outlined in this guide. Always prioritize backing up your data to ensure you can recover any lost information.<\/p>\n<p>As technology evolves, the tools and software we use may change based on our requirements. Whether you&#8217;re looking to optimize your server&#8217;s performance, switch to a different control panel, or simply want to declutter, understanding how to uninstall software like WHM is essential. This guide has provided a comprehensive walkthrough of the uninstallation process, ensuring that you can safely and effectively remove WHM from your Ubuntu server.<\/p>\n<p>Remember, the key to any significant server change is preparation. Always have backups in place and understand the implications of the changes you&#8217;re making. This way, you can ensure a smooth transition and maintain the integrity and performance of your server.<\/p>\n<p>Lastly, always stay updated with the latest trends and best practices in the web hosting industry. By doing so, you can make informed decisions that benefit your websites and online ventures. Whether you&#8217;re looking for the <a href=\"https:\/\/webhostinggeeks.com\/best\/dedicated-hosting\/\">best dedicated servers<\/a> or exploring <a href=\"https:\/\/webhostinggeeks.com\/best\/vps-hosting\/\">VPS hosting options<\/a>, always prioritize reliability, performance, and security.<\/p>\n<p>Thank you for following this guide, and we wish you success in all your web hosting endeavors!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Web Hosting Manager (WHM) is a powerful tool that many webmasters use to manage their hosting environments. However, there may come a time when you no longer need WHM on&#8230;<\/p>\n","protected":false},"author":6,"featured_media":20035,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[1073],"tags":[2073,1856,2294],"class_list":["post-20034","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-cpanel","tag-ubuntu","tag-whm"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/20034","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=20034"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/20034\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/20035"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=20034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=20034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=20034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}