One of the settings available in Joomla 3.0 is the Path to Temp Folder. It's safe to assume that this temporary folder is used for miscellaneous purposes, and the files stored in this folder are most likely deleted or moved to a more permanent location almost immediately after being put in the tmp folder.

 

What is the Temp Folder used for?

In an attempt to find out what the temp folder is used for, we changed the permissions of the folder to 000, so that no files could be written to it. We then ran a few tests to find out what processes use the temp folder, as they should report an error because of the changes we made.

The tmp folder is defined here:

File: configuration.php
Variable:
public $tmp_path = '/home/bradm/public_html/github2/tmp';

Components within Joomla can reference this setting by use of the following code:

JFactory::getApplication()->getCfg('tmp_path')

We scanned all the files in Joomla that reference the temp folder, and it appears that in most cases, the tmp folder is used to extract compressed files. For example, if you upload a component in a .zip format, Joomla will use the tmp folder to first unzip the contents of the file.

 

What error do I get if there is a problem with the Temp Folder?

In our testing, when we removed all permissions from the temp folder and tried to upload a Joomla module in a .zip format, Joomla 3.0 gave us the following errors:

no-permissions-on-tmp-folderWarning
Warning: Failed to move file!

JFolder: :files: Path is not a folder. Path: /home/bradm/public_html/github2/tmp/install_503f7ef32c55c

JFolder: :folder: Path is not a folder. Path: /home/bradm/public_html/github2/tmp/install_503f7ef32c55c

JFolder: :files: Path is not a folder. Path: /home/bradm/public_html/github2/tmp/install_503f7ef32c55c

JInstaller: :Install: Cannot find Joomla XML setup file


Error
Archive does not exist

 

To change the location of your temp folder:

  1. Log into your Joomla 3.0 admin dashboard
  2. In the left menu, click the Global Configuration link
  3. At the top of the page, you will see several tabs such as Site, System, Server, etc. Click the Server tab.
  4. Next to Path to Temp Folder, enter the full path to your tmp folder and then click the Save button in the top left of the page.

    By default it will be set to (path/to/joomla)/tmp

    If the new temp folder does not exist, Joomla 3.0 will attempt to create it the next time it needs it.

Continued Education in Course 206: Configuring Server Settings in Joomla 3
You are viewing Section 1: How to change the path to your Temp Directory in Joomla 3.1
Section 2: How to use Gzip Page Compression in Joomla 3.1
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Joomla Community Google+ Hangout #3

June 3rd, 2014

Thank you @RustyJoomla for letting me speak on the Joomla Community Google+ Hangout!

Click here to watch!

n/a Points
2014-07-05 1:12 am

Other errors that can indicate a bad path.

The archive file is corrupt, truncated or archive parts are missing

COM_FINDER_INDEXER_INVALID_DRIVER

Note: The absolute path is the best way to ensure the tmp location will be found.

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

1 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!