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.

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 our Support Center:
Email Address
Optional, but our team may contact you for more information.
Like this Article?

Post a Comment

Name:
Email Address:
Comment:
Are you a bot?
Submit

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

Write New!
Do you want to publish a tutorial to our support center?

News / Announcements

SSL Certficate Warnings
Updated 2014-04-14 11:34 am EST
Hits: 2228
Heartbleed 0-day OpenSSL security bug
Updated 2014-04-14 04:43 pm EST
Hits: 5650

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
Stack Exchange Q&A site proposal: Joomla

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!