InMotion Hosting Support Center

the-php-temporary-directory-is-not-setWhile performing regular maintenance on our Joomla 2.5 website, we found the following warning in the extension manage:

The PHP temporary directory is not set
The PHP temporary directory is the directory that PHP uses to store an uploaded file before Joomla! can access this file. Whilst the directory not being set isn't always a problem, if you are having issues with manifest files not being detected or uploaded files not being detected, setting this in your php.ini file might fix the issue.

Fixing the The "PHP temporary directory is not set" error

To resolve this issue, you'll need to adjust the upload_tmp_dir setting in your php.ini file.

Please note:
Not every user will have a php.ini file! Depending on how your server is setup, you may or may not have access to adjust your php.ini settings. If you don't have a php.ini file, most settings you can adjust via a .htaccess file as well. It is best to contact your hosting provider for help with updating the upload_tmp_dir setting. If you host you website with InMotion Hosting, you can find more help here with adjusting your php settings.

In our example, we created /administrator/php.ini and put in the following code:

upload_tmp_dir = /home/userna5/tmp

userna5 is our cPanel username, and in the root of our account we have a writable folder named tmp.

Was this article helpful?
Continued Education in Course Joomla 2.5
You are viewing Section 4: 305: Joomla 2.5 - The PHP temporary directory is not set
Section 5: 306: How to use the Mass Mail Feature in Joomla 2.5

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!

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

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

n/a Points
2016-06-24 2:15 am

worked well for me :) thnx

n/a Points
2015-03-20 11:50 pm
After installing Joomla the Joomla system does not have access to lower directories like /home/userna5/tmp

In order for joomla to have access to a temp directory it needs to be located here:
n/a Points
2014-11-08 8:05 am
the article is fine but you could explain that the php.ini file should be place on the admin folder and placing php.ini file on the public_html or root of the site is also necessary and the file path in that php.ini file should also be given.
n/a Points
2014-04-04 1:11 pm

Great fix - thanks for posting.

Post a Comment

Email Address:
Phone Number:

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

4 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


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:
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!