Jfolder::Create: Could not create directory [Joomla]

!! This post has been updated.  Read this post for an easier, universal solution!!

IF you’re trying to install something into Joomla – a template, module or plug-in – you might run into the following error:

JFolder::create: Could not create directory

Warning! Failed to move file.

This error could be solved by two things: file permission problems, or problems with the configuration file.  The most common cause seems to be the latter, and I just so happen to have the fix for that.

This error is often seen after you’ve copied a whole Joomla site to another location.  To fix this problem, you’ll have to change a few things in your configuration.php file.  Here’s what you should do:

1.  Open your configuration.php file

2.  Find the line that looks like this: var $log_path = /some/path/logs
You’ll have to change this line, as it’s pointing to a wrong directory.  Everything before /logs should be changed to reflect your new location of your joomla website.

e.g var $log_path = ‘/var/www/myjoomlasite/logs’


3.  There’s another line in configuration.php that needs your attention as well.
     Find the following line:  var $tmp_path = /some/path/tmp.  It should be right below the   line you just edited. 
You’ll have to change this line as well.  Everything before /tmp has to be changed to reflect the new location of your Joomla website.

e.g var $tmp_path = ‘/var/www/myjoomlasite/tmp’

After you change these two lines, the problem should be resolved. 

If you want some help editing your config file, feel free to post a comment or contact me.  You can find my contact data at this website under “About me”

23 thoughts on “Jfolder::Create: Could not create directory [Joomla]”

  1. Pingback: jfolder:: create path not in open_basedir paths « Joomla and more

  2. Pingback: One year anniversary « Joomla and more

  3. Pingback: 2010 in review « Joomla and more

  4. i can’t install joomfish in joomla 1.6 .
    the error is following

    * JFolder::create: Could not create directory
    * Warning: Failed to move file!

  5. Problem: foldercreate-could-not-create-directory-joomla/
    OK, thanks, it works!
    I deleted on my remote server config.php file the words ‘some/path’ completely, replaced the text with one dot, and now it looks like this:
    public $ log_path = ‘./logs’ and
    public $ tmp_path = ‘./tmp’

    and it works.
    NB. After changing config.php file reload your site!
    Thanks indeed!
    Imants Vilks, http://artificialintelligence.lv

    1. Hello,

      Have you tried enabling the FTP layer in Joomla!?. Supposedly, that is one way to solve the permission problem. If that still doesn’t fix your problem,
      I suggest contacting the hosting company or whoever is in charge of managing the server your site is sitting on.

      Hope this helps. 🙂

  6. Hi, beside what everyone is telling here there is one more folder that should be chmod-ed. the “cache” folder. Apparently some modules use cache folder instead of tmp folder. Try to chmod the cache folder guys.

    Best regards.

  7. Darren Prince

    Thanks very much! I had this very problem on a test XAMPP/Mac deployment that I had cloned from one of our production LInux servers.

  8. Hey Guys ,this didnt worked for me i tried this,can any one help me what else can be the reason…..

  9. Hello Atul,

    You could have permission problems for a bunch of reasons, including how your server is configured. I’m afraid it requires some trial and error to pinpoint the exact solution.

    1. Thanks Steve for your reply,

      I have changed the permissions of my folder to 0777.My extension are installed properly,the only issue is when i logout it gives me error “JFolder::create: Could not create directory”.

  10. Pingback: Jfolder::Create: Could not create directory [Joomla] « simmylinux

Comments are closed.

Discover more from PowerUser Guide

Subscribe now to keep reading and get access to the full archive.

Continue reading