PrackHost : Hosting Premium Web LiteSpeed

How to release to space in WHM cPanel in 10 steps

To release space in your WHM/cPanel servant in 10 simple steps temporarily

Sometimes, it can be that we need to release space in our servant of cPanel. In order to get out of trouble if we have problems in our servant already (the data bases do not work, cannot raise archives, cannot send post office, etc.) we can release something of space to solve the problem temporarily if we applied the following 10 steps that we described next. You will need SSH access to execute them.

EYE! When the problem of the lack of space appears, we are forced to increase the disc space of our servant, since no matter how much we clean archives, if these have gotten to saturate the space already which we have, is a clear symptom that we must increase the space as soon as possible. In order to increase it, you must raise of servant VPS from the Area of Clients and soon to contact with us sending a support ticket to us to extend the partitions of your Dedicated VPS or.

 

 

1. Temporary files of cPanel

To release space of the temporary files generated in the ascents of cPanel:
# rm - fv /home/ */tmp/Cpanel_*

2. Cache of Yum

To release the yum cache (the installer of packages of CentOS):
# yum clean all

3. Backups de Apache

To erase backups of Apache that is generated to recompilarlo:
# rm - RF /usr/local/apache.backup *

# rm - RF /home/cpeasyapache

4. Weathers cpmove

To review (and to eliminate in case there are them) that are no archives in the /home temporary of backup with names as:
/home/cpmove-nombrecpanel

5. Group of forty of the CXS

If it is had installed the pack of security ConfigServer CXS, to erase archives of the group of forty of the CXS that are /home/quarantine

6. To erase logs of Apache

To erase logs of error_log, suexec_log, modsec_audit.log and access_log that usually has enough megas. In these archives the errors, the accesses, etc. are registered Are in:

etc/httpd/logs

(after eliminating these archives, reinitiating Apache)

7. Domlogs de Apache

To clean weathers DOMLOGS of Apache: it is possible to be done at any time (But for Apache, reason why it is necessary to run these commandos fast):
# /etc/init.d/httpd stop
# sleep 8
# rm /usr/local/apache/domlogs/ * - RF
# /etc/init.d/httpd start

NOTE: If EA4 in line 3 must run: # rm /var/log/apache2/domlogs/ * - RF 

8. Weathers of servant FTP

To eliminate the partial archives raised by FTP:
# locate .pureftpd-upload | xargs rm - fv

9. Archives of Mailman

To review the archives of they mailman (ready of mail) that can occupy much space, are in:

/usr/local/cpanel/3rdparty/mailman/archives

and

/usr/local/cpanel/3rdparty/mailman/data

10. Statistics of Exim

To clean the statistics of Exim. Sometimes these archives occupy very many and they are possible to be cleaned through commando:
# I throw "" > /var/cpanel/sql/eximstats.sql

With these 10 simple steps we will have solved the problem of the space momentarily and will be able to ask for to Support the increase of the disc.

Administered VPS

Published in
Transformation for PrackHost

PrackHost

Hosting specialized in Joomla! , Wordpress, Prestashop and Moodle. Services of hosting in the cloud. Dedicated servers VPS and.

4 Comments

  1. Transformation for PrackHost Betto March 27, 2017 to 10:36 p.m.

    I have this: /var/tmp and I do not know that one fills and I want to release space

    • Transformation for PrackHost PrackHost March 28, 2017 to the 6:05 a.m.

      Hello Betto, if in your case the best thing fills to /var/tmp is than you create a task cron so that past Xs eliminate the archives hours. Of this form space will be freed. The directory /var/tmp and /tmp usually is the same reason why you can form directly in /tmp. You can make use of the utility €œtmpwatch€ of Linux for this.

      An example of cronjob can be this:

      0 19 * * * /usr/sbin/tmpwatch €“ mtime €“ all €“ nodirs 72 /tmp > /dev/null 2>&1

      (This runs tmpwatch every day to 7 in the afternoon to clean archives of sessions that has not been acceded in last the 72 hours and flock the archives except the folders)

      If you do not have tmpwatch installed, install it with yum:

      # yum install tmpwatch - and

      This you must form it as cronjob of root. I hope that it serves to you.

  2. Transformation for PrackHost Mediapro September 29, 2018 to 4:37 p.m.

    I have the following problem with partition DEV/MD2 has finished the space to me and how not being solved it, can help me?

    Filesystem Size Used Avail Use% Mounted on
    /dev/md2 20G 14G 5.1G 73%/
    devtmpfs 7.6G 0 7.6G 0% /dev
    tmpfs 7.7G 4.0K 7.7G 1% /dev/shm
    tmpfs 7.7G 9.4M 7.6G 1% /run
    tmpfs 7.7G 0 7.7G 0% /sys/fs/cgroup
    /dev/nvme0n1p1 510M 152K 510M 1% /boot/efi
    /dev/md3 393G 95G 278G 26% /home
    /dev/loop0 628M 1.1M 594M 1% /tmp
    tmpfs 1.6G 0 1.6G 0% /run/user/0

    • Transformation for PrackHost PrackHost October 1, 2018 to 12:15 p.m.

      Hello, it seems that when you formed the servant you put little space in the main partition €œ/€. In this partition usually they go the data of the data bases MySQL (/var/lib/mysql) and surely is what more space is occupying you.
      We recommended to you that you analyze the occupied space in that folder of this form from ssh:

      # CD /var/lib/mysql/
      # du - shx *

      And you see the space that occupies to you. If it is space enough, the solution would happen to move the MySQL directory to €œ/home€ for example, that is where you have more space.

It leaves a commentary





New features

Point you at our Newsletter to maintain to you informed into our new features and supplies.

Categories

Who we are?

PrackHost is specialized in Premium Web for the managers of used contents more. Some of our characteristics:

  • NVMe discs 6 times faster than discs SSD.
  • Servers with LiteSpeed Web server.
  • Gratuitous groups.
  • Control Panel cPanel.
  • Backups of 2 months.
  • Professional support.