{"id":8957,"date":"2022-03-19T11:40:03","date_gmt":"2022-03-19T11:40:03","guid":{"rendered":"https:\/\/cpanelplesk.com\/wp62\/?p=8957"},"modified":"2022-03-19T11:40:03","modified_gmt":"2022-03-19T11:40:03","slug":"different-ways-to-free-up-disk-space-on-cpanel-server","status":"publish","type":"post","link":"https:\/\/cpanelplesk.com\/wp62\/different-ways-to-free-up-disk-space-on-cpanel-server\/","title":{"rendered":"Different Ways To Free Up Disk Space On Cpanel Server"},"content":{"rendered":"<p>Getting consumers is beneficial to any business, but we all know that it comes with its own set of problems. Your server fills up as a result of the increased number of customers, and you begin to run out of disc space. The only method to improve your server&#8217;s potential and efficiency is to expand its disc space.<\/p>\n<p>Some of the following steps regarding to Cpanel are as follows:<\/p>\n<div class=\"space1\"><\/div>\n<div>\n<h3>1. Delete cPanel and Fantastico backups for each user:<\/h3>\n<p>The main cause of a substantial portion of the server&#8217;s disc space running out is when users begin making backups on the server rather than deleting them after a download. This will very certainly be the case if you have the backup feature enabled in Cpanel.<br \/>\nUsing the following command, you can erase all of a user&#8217;s cPanel backups:<\/p>\n<pre> for user in `\/bin\/ls -A \/var\/cpanel\/users` ; do rm -fv \/home\/$user\/backup-*$user.tar.gz ; done<\/pre>\n<p>Use the following command to erase all Fantastico backups:<\/p>\n<pre>rm -rfv \/home\/*\/fantastico_backups<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<div>\n<h3>2. Transfer your backups to a backup server:<\/h3>\n<p>Another important reason is to keep your hosting server&#8217;s backup files on the server itself. Many individuals do this because they believe it will be beneficial in the long term, but we all know how ineffective it is when a server fails. You waste a lot of disc space unnecessarily by doing so. It would be preferable if you could attach a backup server to your hosting server and save your backup data there.<br \/>\nYou can apply the following strategies:<\/p>\n<ul>\n<li>Use the WHM &gt; Configure Backups option to mount external media if it&#8217;s available on the server.<\/li>\n<li>Any other way for backing up your files that does not require them to be stored locally.<\/li>\n<\/ul>\n<\/div>\n<div class=\"space1\"><\/div>\n<div>\n<h3>3. Delete the temporary files created by cPanel File Manager:<\/h3>\n<p>File Manager creates a temporary file that may or may not be deleted depending on the upload.<\/p>\n<p>Using the following command, you can delete all transient files:<\/p>\n<pre> rm -fv \/home\/*\/tmp\/Cpanel_*<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<div>\n<h3>4. Move or archive logs:<\/h3>\n<p>The majority of servers have big log files that take up a lot of disc space.<\/p>\n<ul>\n<li>The log files can be found in \/var\/log.<\/li>\n<li>In configuration file, you can adjust the frequency and length of your logs to meet your needs, as well as enable compression (This will compress the files and reduce the space taken by these files)<\/li>\n<li>You can also transfer these server files to a backup or log server on a regular basis.<\/li>\n<\/ul>\n<\/div>\n<div class=\"space1\"><\/div>\n<div>\n<h3>5. Cleaning Yum files:<\/h3>\n<p>Package cache files are left on the server every time you update yum.<\/p>\n<p>To clean up yum files, run the following commands:<\/p>\n<pre>yum clean all<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<div>\n<h3>6. Remove cPanel update archives:<\/h3>\n<p>Unwanted files can be left behind by cPanel and Apache update archives.<br \/>\nYou can use the following commands to delete these files and free up some space:<\/p>\n<pre> \/usr\/local\/apache.backup*<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<div>\n<h3>7. Remove pure-ftp partials:<\/h3>\n<p>When your users upload files to your server using pureFTP as an FTP daemon, the FTP server creates temporary files with the extension.pureftpd-upload*. When the upload is complete, their files are renamed to the actual filename, leaving such files on the server if the upload is incomplete.<br \/>\nYou can use the following commands to delete these files:<\/p>\n<pre>locate .pureftpd-upload | xargs rm -fv<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<div>\n<h3>8. Decrease the reserved disk space:<\/h3>\n<p>When you run a df on the server, you obviously realize that you only have 50GB left on your 1TB drive after only using 900GB. Where did the other 50GB go? By default, Linux reserves 5% of each partition&#8217;s storage space for the root user, allowing the root user to log in even if the disc is full.<br \/>\nYou don&#8217;t have to allocate 5% of your disk space if you have a larger drive; you can reduce this amount to 2500 blocks and free up more space on your server.<\/p>\n<p>You can use the following command to reduce the allocated space for root user:<\/p>\n<pre>tune2fs -r 2500 \/dev\/sda1<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<div>\n<h3>9. Remove unneeded accounts:<\/h3>\n<p>If your turnover rate is high, you most likely have several user accounts that aren&#8217;t being used.<\/p>\n<p>To see if your account has been suspended, go to:<\/p>\n<p>ls \/var\/cpanel\/suspended or WHM &gt; List Suspended Accounts<\/p>\n<p>To close accounts, follow these steps:<br \/>\nWHM &gt; Account Termination<\/p>\n<p>You can use the following command to terminate an account:<\/p>\n<pre> \/scripts\/killacct  &lt;y\/n&gt;<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<div>\n<h3>10. Check for contrabands:<\/h3>\n<p>You can use a few locate commands to discover common files connected with copyright breaches, such as.mp3,.avi, and.exe, and have your customers remove them from the server if they are infringing on your service&#8217;s terms and conditions.<\/p>\n<\/div>\n<div class=\"space1\"><\/div>\n<div>\n<h3>11. Consider a larger server:<\/h3>\n<p>Last but not least, we recommend that you upgrade to a larger server. If you have clients who require a lot of disc space and you can&#8217;t manage to optimise your disc space, you might consider upgrading to a larger server to meet their needs.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Getting consumers is beneficial to any business, but we all know that it comes with its own set of problems. Your server fills up as a result of the increased number of customers, and you begin to run out of disc space. The only method to improve your server&#8217;s potential and efficiency is to expand [&#8230;]<\/p>\n<p><a class=\"understrap-read-more-link\" href=\"https:\/\/cpanelplesk.com\/wp62\/different-ways-to-free-up-disk-space-on-cpanel-server\/\">Continue Reading&#8230;<\/a><\/p>\n","protected":false},"author":19,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8957","post","type-post","status-publish","format-standard","hentry","category-cpanel"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Different Ways To Free Up Disk Space On Cpanel Server - cPanel Plesk<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cpanelplesk.com\/wp62\/different-ways-to-free-up-disk-space-on-cpanel-server\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Different Ways To Free Up Disk Space On Cpanel Server - cPanel Plesk\" \/>\n<meta name=\"twitter:description\" content=\"Getting consumers is beneficial to any business, but we all know that it comes with its own set of problems. Your server fills up as a result of the increased number of customers, and you begin to run out of disc space. The only method to improve your server&#8217;s potential and efficiency is to expand [...]Continue Reading...\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"samama\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/different-ways-to-free-up-disk-space-on-cpanel-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/different-ways-to-free-up-disk-space-on-cpanel-server\/\"},\"author\":{\"name\":\"samama\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/b5c17eff2915a029433dfd2d5a6e8465\"},\"headline\":\"Different Ways To Free Up Disk Space On Cpanel Server\",\"datePublished\":\"2022-03-19T11:40:03+00:00\",\"dateModified\":\"2022-03-19T11:40:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/different-ways-to-free-up-disk-space-on-cpanel-server\/\"},\"wordCount\":778,\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"articleSection\":[\"Cpanel\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/different-ways-to-free-up-disk-space-on-cpanel-server\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/different-ways-to-free-up-disk-space-on-cpanel-server\/\",\"name\":\"Different Ways To Free Up Disk Space On Cpanel Server - cPanel Plesk\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\"},\"datePublished\":\"2022-03-19T11:40:03+00:00\",\"dateModified\":\"2022-03-19T11:40:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/different-ways-to-free-up-disk-space-on-cpanel-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cpanelplesk.com\/wp62\/different-ways-to-free-up-disk-space-on-cpanel-server\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/different-ways-to-free-up-disk-space-on-cpanel-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cpanelplesk.com\/wp62\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Different Ways To Free Up Disk Space On Cpanel Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/\",\"name\":\"cPanel Plesk\",\"description\":\"Blog on famous hosting control panels\",\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\",\"name\":\"Farooq Omer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"width\":300,\"height\":44,\"caption\":\"Farooq Omer\"},\"logo\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/b5c17eff2915a029433dfd2d5a6e8465\",\"name\":\"samama\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5ad71c1d187b45a3c1a68698160b5f6d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5ad71c1d187b45a3c1a68698160b5f6d?s=96&d=mm&r=g\",\"caption\":\"samama\"},\"url\":\"https:\/\/cpanelplesk.com\/wp62\/author\/samama\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Different Ways To Free Up Disk Space On Cpanel Server - cPanel Plesk","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cpanelplesk.com\/wp62\/different-ways-to-free-up-disk-space-on-cpanel-server\/","twitter_card":"summary_large_image","twitter_title":"Different Ways To Free Up Disk Space On Cpanel Server - cPanel Plesk","twitter_description":"Getting consumers is beneficial to any business, but we all know that it comes with its own set of problems. Your server fills up as a result of the increased number of customers, and you begin to run out of disc space. The only method to improve your server&#8217;s potential and efficiency is to expand [...]Continue Reading...","twitter_misc":{"Written by":"samama","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cpanelplesk.com\/wp62\/different-ways-to-free-up-disk-space-on-cpanel-server\/#article","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/different-ways-to-free-up-disk-space-on-cpanel-server\/"},"author":{"name":"samama","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/b5c17eff2915a029433dfd2d5a6e8465"},"headline":"Different Ways To Free Up Disk Space On Cpanel Server","datePublished":"2022-03-19T11:40:03+00:00","dateModified":"2022-03-19T11:40:03+00:00","mainEntityOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/different-ways-to-free-up-disk-space-on-cpanel-server\/"},"wordCount":778,"publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"articleSection":["Cpanel"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/cpanelplesk.com\/wp62\/different-ways-to-free-up-disk-space-on-cpanel-server\/","url":"https:\/\/cpanelplesk.com\/wp62\/different-ways-to-free-up-disk-space-on-cpanel-server\/","name":"Different Ways To Free Up Disk Space On Cpanel Server - cPanel Plesk","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#website"},"datePublished":"2022-03-19T11:40:03+00:00","dateModified":"2022-03-19T11:40:03+00:00","breadcrumb":{"@id":"https:\/\/cpanelplesk.com\/wp62\/different-ways-to-free-up-disk-space-on-cpanel-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cpanelplesk.com\/wp62\/different-ways-to-free-up-disk-space-on-cpanel-server\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cpanelplesk.com\/wp62\/different-ways-to-free-up-disk-space-on-cpanel-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cpanelplesk.com\/wp62\/"},{"@type":"ListItem","position":2,"name":"Different Ways To Free Up Disk Space On Cpanel Server"}]},{"@type":"WebSite","@id":"https:\/\/cpanelplesk.com\/wp62\/#website","url":"https:\/\/cpanelplesk.com\/wp62\/","name":"cPanel Plesk","description":"Blog on famous hosting control panels","publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13","name":"Farooq Omer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","width":300,"height":44,"caption":"Farooq Omer"},"logo":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/"}},{"@type":"Person","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/b5c17eff2915a029433dfd2d5a6e8465","name":"samama","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5ad71c1d187b45a3c1a68698160b5f6d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5ad71c1d187b45a3c1a68698160b5f6d?s=96&d=mm&r=g","caption":"samama"},"url":"https:\/\/cpanelplesk.com\/wp62\/author\/samama\/"}]}},"_links":{"self":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/8957","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/comments?post=8957"}],"version-history":[{"count":0,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/8957\/revisions"}],"wp:attachment":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media?parent=8957"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/categories?post=8957"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/tags?post=8957"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}