Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

The /tmp directory grows very large and contains many “magick-xxxxx” files in its subdirectories

 
croncron jobscrontablinuxobsidian

Symptoms

  • Plesk Obsidian running on a Linux-based operating system
  • The /tmp directory grows very large and contains a lot of files named magick-xxxxxx files in its PHP-related subdirectories:

    # root@server:~# find /tmp -mtime 0 -type f -size +20M -exec du -h {} + 2>/dev/null | sort -r -h
    287M /tmp/systemd-private-dad58d2003dc46f7be3e15a7d0b108c2-plesk-php80-fpm.service-hRFoZf/tmp/magick-ZzObCMs_8oJXUyrrwzU0J5dysuKlf53e
    287M /tmp/systemd-private-dad58d2003dc46f7be3e15a7d0b108c2-plesk-php80-fpm.service-hRFoZf/tmp/magick-zXuukgf5zr0OHKr5zb2fxbbRmURwZvAr
    287M /tmp/systemd-private-dad58d2003dc46f7be3e15a7d0b108c2-plesk-php80-fpm.service-hRFoZf/tmp/magick-ZnPsDblwmpistIoKyBxDtlaWdeHfRK7S
    287M /tmp/systemd-private-dad58d2003dc46f7be3e15a7d0b108c2-plesk-php80-fpm.service-hRFoZf/tmp/magick-zlpU1JviUboC0MwpfPnJr1pBHK2yAPZD
    287M /tmp/systemd-private-dad58d2003dc46f7be3e15a7d0b108c2-plesk-php80-fpm.service-hRFoZf/tmp/magick-zkgLMhivXjDOpW9DmZk24SJ7MEkRJm19
    ...

  • The imagick (ImageMagick) PHP extension is enabled for the PHP versions that contain such files in Tools & Settings > PHP Settings > PHP_Handler_Name

Cause

The specific website code and its interaction with the PHP extension imagick is generating a great number of files in the mentioned temporary directory.

The issue is not related to Plesk but, is related to ImageMagick itself, which can be confirmed in the following threads:
 
ImageMagick creates huge temporary files · Issue #395 · ImageMagick/ImageMagick · GitHub
carrierwave - imagemagick doesn't delete tmp files - Stack Overflow

Resolution

The recommended initial course of action is to review the website code and the specific portion of it that interacts with ImageMagick and generates these files in order to resolve the issue.

As a workaround, you can set up the automated removal of such temporary files related to ImageMagick by following these steps:

    1. Connect to the server via SSH

    2. Open the crontab editor by executing the following command:

      # crontab -e
    3. Add the following line to create a task which removes files like magick-* from the directory /tmp every minute:

      * * * * * find /tmp -maxdepth 1 -type f -name "magick-*" -delete

Additional information

Scheduling Tasks | Plesk Obsidian documentation

How to set up a task to be executed every X minutes on a Plesk server?

How to Create and Manage Cron Jobs on Linux

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

Plesk Obsidian 18.0.62 is now available

Read More »

Plesk Obsidian 18.0.61 Release

Read More »

How to Check Open Ports in Linux (Simple Commands & Tools)

Read More »
Knowledge Base

How to install / remove additional PHP versions provided by Plesk

Read More »

[BUG] nginx shows configuration error in Plesk: “proxy_read_timeout” directive is duplicate

Read More »

How to enable or disable PHP extensions in Plesk?

Read More »

How to enable ionCube Loader module for PHP shipped with Plesk on Linux?

Read More »

Hosting Wiki

  • Server Redundancy
  • Linux Containers
  • Bare Metal Server
  • PhpMyAdmin
  • phpPgAdmin
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • Linux
  • PHP
  • Plesk
  • Web Server
  • DNS Server
  • SSH
  • Cron Jobs
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family