FIX – JFolder::create: Path not in open_basedir paths

So… switched a site from one host to another.

Installed Joomla, restored the database, restored the template folder, and then started installing Extensions.

First up was JCE. I downloaded the lastest version, tried uploading/installing it from within Joomla’s Admin Panel, and then got the following message:

JFolder::create: Path not in open_basedir paths

Oh boy! Not so good.

Did a little searching around and came across some fixes, although the fix in my case turned out to be pretty easy.

Problem: The temp (tmp) folder wasn’t writable. You can check this from Joomla’s administrator panel by clicking Help, System Info, then choosing the “Permissions” section. unwritable = bad.

Solution: Actually, it’s just that the path set up while on the old host was different from the new host. All it takes is a different username, or a whack of other things. All you have to do to fix it, is drop into Global Configuration / Server and set the Path-to-Temp-Folder.

If you’re not quite sure what to enter, go back to the Help / System Info section and look at the last 4 entries (log, cache directory). Hopefully one of them’s pointing correctly and you can figure it out from there.

If not, try:
…where username is your username (if you’re not 100% sure and are using CPanel you can open CPanel’s File Manager and look far at the left – you should see /home/something at the top of the directory tree. That something is the username.

If your Joomla install is in a sub-domain or addon-domain, adjust appropriately:

If you’re still having issues but are positive the path is correct, see if the tmp directory exists. If it doesn’t, try creating it and set the permissions to 777 while you install the program (then try lowering the permissions afterwards to help out security-wise).


 | Leave a Comment Sort by Oldest | Sort by Newest
  1. Mine is writable.. still no use.


  2. Brandon Maddux

    Thanks so much, spent 2 hours trying to fix it. Your advice helped a bunch

  3. Joseph Myalla

    Your Solution really helped me so quickly, thank you so much

  4. Thank you – you proved to be a lifesaver. I was really stuck on extensions till I read this article.

  5. LENGEN-DARY, many hi-5’s and intenets for you sir

  6. Thanks so much.

Leave a Comment

You can use an alias and fake email. However, if you choose to use a real email, "gravatars" are supported. You can check the privacy policy for more details.

To reduce spam, I manually approve all comments, so don't panic if it looks like the page simply refreshed and your comment doesn't show up immediately.