Support

Admin Tools

#42548 Error on Clean Temp Directory

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
5.4.1
PHP version
8.4.15
Admin Tools version
7.8.4

Latest post by nicholas on Monday, 15 December 2025 00:57 CST

stewart9643

Please look at the bottom of this page (under Support Policy Summary) for our support policy summary, containing important information regarding our working hours and our support policy. Thank you!

 

Admin Tools for Joomla! - An unhandled Exception has been detected 500 SplFileInfo::getMTime(): stat failed for /tmp/.s.PGSQL.5432

File <root>/administrator/components/com_admintools/src/Model/CleantempdirectoryModel.php Line 180

 

Got the above error when accessing Clean Temp Directory. 

Regards

Stewart

 

nicholas
Akeeba Staff
Manager

It looks like you have made a mistake which impacts your site's security: you've set the Joomla temp-directory to be the same as the system's temporary directory.

The system temporary directory (usually /tmp on Linux) is a shared location that every user and every web‑application on the server can read from and write to. It is intended for short‑lived files that are automatically cleaned up by the operating system. Because it is globally accessible, any script or site that gains access to the server could also read from or write to this folder.

If Joomla’s own temp‑directory points to the system's temporary directory, then:

  • All users on the server can read/write the same files. A compromised site on the same host could potentially modify or retrieve files that belong to your Joomla installation.
  • Joomla cannot differentiate its own temporary files from those placed there by other applications. This makes automatic clean‑up unreliable and may leave stray files that could be exploited later.

In short, sharing the system temporary directory reduces isolation between sites, and between your site and other processes on your server, which weakens overall security as a direct result.

How to change Joomla’s temporary directory

You can safely point Joomla to a private folder that only your site can access. Here’s a step‑by‑step guide:

  1. Using your hosting control panel, SSH client, or FTP, create a directory named tmp inside your Joomla installation, for example /home/yourusername/public_html/tmp.
  2. Make sure the new tmp folder permissions are set to 0755 (read/write for the owner, read‑only for others).
  3. Go into your site's administrator backend, then click on System, Global Configuration.
  4. You’ll find a text box labelled Path to Temp Folder. Replace the existing value (e.g., /tmp) with the full path to the new folder you created, such as /home/yourusername/public_html/tmp.
  5. Click the Save & Close button at the top‑left of the page.
  6. Go to Components, Admin Tools, and click on Check Temp and Log Directories.

If anything feels unclear or you run into trouble while following these steps, please don’t hesitate to reply back to this ticket. I am here to help.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!