Articles in this section

How to clean up temporary Plesk files on a Linux server

Plesk for Linux ABT: Group B kb: auxiliary

Applicable to:

  • Plesk for Linux

Question

How to remove temporary Plesk files on a Linux server to free up the disk space?

Answer

There are two ways to safely remove temporary Plesk files on a Linux server.

Note: Cleaning temporary Plesk files may not free up a lot of disk space. That means this solution may not help when there is no free disk space left on a server.

 

Plesk interface
  1. Open Plesk Repair Kit by navigating to the URL:

    • https://server.example.com:8443/repair/
    • https://203.0.113.2:8443/repair/

    Note: Replace server.example.com / 203.0.113.2 in the URLs above with your server's hostname / IP address.

  2. Input your Plesk Administrator credentials in the corresponding Username and Password fields and click Sign in.


    Plesk_repair_panel.PNG
     

  3. Click the Free Up Disk Space button to clean temporary files:



     

Command-line interface
  1. Connect to your Plesk server via SSH.
  2. Delete temporary files that are older than X days from the /tmp and /var/tmp/ directories. In this example, we are removing temporary files that are older than 14 days:

    # find /tmp -type f -mtime +14 -exec rm {} \;
    # find /var/tmp -type f -mtime +14 -exec rm {} \;

  3. Delete temporary files created by Plesk and its services:

    Note: We recommend to run these commands when there are no active Plesk Installer and Plesk Backup tasks on the server.

    • temporary Plesk backup files:

      # rm -rf /usr/local/psa/PMM/tmp/*

    • other temporary files:

      # rm -rf /usr/local/psa/tmp/*

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.