{"id":1354,"date":"2021-07-23T21:24:39","date_gmt":"2021-07-23T21:24:39","guid":{"rendered":"https:\/\/hostingspell.com\/blog\/?p=1354"},"modified":"2023-09-30T21:57:28","modified_gmt":"2023-09-30T21:57:28","slug":"how-to-clean-up-cpanel","status":"publish","type":"post","link":"https:\/\/blog.hostingspell.com\/how-to-clean-up-cpanel\/","title":{"rendered":"How to clean up cPanel\/WHM Server?"},"content":{"rendered":"\n<p class=\"has-theme-primary-color has-text-color has-large-font-size wp-block-paragraph\"><em>Minimized server potential? You might have to clean up your cPanel.<\/em><\/p>\n\n\n\n<p class=\"has-text-color wp-block-paragraph\" style=\"color:#3604c9;font-size:19px\"><em>Worry not, here are few tips and tricks that can help free up disk space on your cPanel server and maximize your server potential, reduce server downtime and speed up your website in time.<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. cPanel backups need to go<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The backup feature in the cPanel enables users to store the backups on the server instead of downloading them. If you have a large server then this can take up a lot of disk space. Use this following command to delete all the user cPanel backups on the server through SSH :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>for user in `\/bin\/ls -A \/var\/cpanel\/users` ; do rm -fv \/home\/$user\/backup-*$user.tar.gz ; done<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">It would help if you mount a backup server to your hosting server to store your backups. Consider using a backup method that doesn\u2019t store your backups locally. Local backups are not very useful when the server failure.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. cPanel File Manager temp files to the bin<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">cPanel file manager creates a temp file every time a user uploads files in the File manager. There are chances that these files still exist in the File manager even after the upload. Get rid of these temp files with this command ;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rm -fv \/home\/*\/tmp\/Cpanel_*<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3. cPanel update archives = unnecessary history<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">CPanel updates leave behind residual files that are unneeded. Free up a little bit of space by deleting these files or by moving them to a backup server ;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/local\/apache.backup*<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\/usr\/local\/apache.backup*<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;\/home\/cpeasyapache (the actual name may vary depending on Cpanel version)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"597\" src=\"https:\/\/hostingspell.com\/blog\/wp-content\/uploads\/2020\/09\/angelo-brewing-1024x597.png\" alt=\"\" class=\"wp-image-1355\" srcset=\"https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2020\/09\/angelo-brewing-1024x597.png 1024w, https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2020\/09\/angelo-brewing-300x175.png 300w, https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2020\/09\/angelo-brewing-768x448.png 768w, https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2020\/09\/angelo-brewing.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">4. Server log rotation<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The server\u2019s logs are stored in \/var\/log. This can take up large amounts of storage space on populated servers. Consider changing the length of time or frequency of the log rotation and compress it to save space.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5. Yum files are not so yum&#8230;<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Package cache files are left behind by Yum updates on the server. Clean up this junk Yum files by running this command;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>yum clean all<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">6. Remove redundant accounts<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A larger churn rate means you probably have some accounts on the server that are useless. Check <strong><em>WHM<\/em><\/strong> &gt; <em><strong>List suspended accounts <\/strong><\/em>and search for suspended accounts that need to be removed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Discontinue the accounts in <strong><em>WHM &gt; Terminate an account<\/em><\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">7. Put an end to contraband<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Run a few commands to locate files like .avi, .exe, .mp3 which are copyright violations. Make sure you get the customers to remove those files.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This also maintains your business ethics.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">8. Or get a larger server\u2026<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">One of the reasons you are experiencing high disk space usage could be because of your customers requiring a larger amount of disk space. Invest in a server that can occupy a small number of users so that they can use a large amount of disk space.<\/p>\n\n\n\n<p class=\"has-theme-primary-color has-text-color wp-block-paragraph\"><em>Was the article helpful? Have more queries? Tell us!<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Minimized server potential? You might have to clean up your cPanel. Worry not, here are few tips and tricks that can help free up disk space on your cPanel server and maximize your server potential, reduce server downtime and speed up your website in time. 1. cPanel backups need to go The backup feature in [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":1647,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-1354","post","type-post","status-publish","format-standard","has-post-thumbnail","category-general","entry"],"featured_image_src":"https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default.png","featured_image_src_square":"https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default.png","author_info":{"display_name":"Nikitha S.","author_link":"https:\/\/blog.hostingspell.com\/author\/nikitha\/"},"uagb_featured_image_src":{"full":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default.png",580,290,false],"thumbnail":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default-150x150.png",150,150,true],"medium":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default-300x150.png",300,150,true],"medium_large":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default.png",580,290,false],"large":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default.png",580,290,false],"1536x1536":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default.png",580,290,false],"2048x2048":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default.png",580,290,false],"single-featured-image":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default.png",580,290,false],"blog-featured-image":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default.png",580,290,false],"home-featured":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default-380x290.png",380,290,true],"ab-block-post-grid-landscape":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default.png",580,290,false],"ab-block-post-grid-square":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default.png",580,290,false],"author-pro-image":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default.png",360,180,false],"gb-block-post-grid-landscape":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default.png",580,290,false],"gb-block-post-grid-square":["https:\/\/blog.hostingspell.com\/wp-content\/uploads\/2021\/03\/hspl-blog-default.png",580,290,false]},"uagb_author_info":{"display_name":"Nikitha S.","author_link":"https:\/\/blog.hostingspell.com\/author\/nikitha\/"},"uagb_comment_info":0,"uagb_excerpt":"Minimized server potential? You might have to clean up your cPanel. Worry not, here are few tips and tricks that can help free up disk space on your cPanel server and maximize your server potential, reduce server downtime and speed up your website in time. 1. cPanel backups need to go The backup feature in&hellip;","_links":{"self":[{"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/posts\/1354","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/comments?post=1354"}],"version-history":[{"count":2,"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/posts\/1354\/revisions"}],"predecessor-version":[{"id":1971,"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/posts\/1354\/revisions\/1971"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/media\/1647"}],"wp:attachment":[{"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/media?parent=1354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/categories?post=1354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.hostingspell.com\/wp-json\/wp\/v2\/tags?post=1354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}