!! 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”
Categories: OS & Software
Worked perfectly for me, Thank you!!!
LikeLike
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.
LikeLike
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”.
LikeLike
Hey Guys ,this didnt worked for me i tried this,can any one help me what else can be the reason…..
LikeLike
thanks a lot for the infos 🙂
LikeLike
thanks Cristi,
cmodding cache was the one thing I was forgetting.
LikeLike
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.
LikeLike
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.
LikeLike
Please help me I dont know whats going on i can get it to work and i need to deliver this site to my client. Please help
LikeLike
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. 🙂
LikeLike
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
LikeLike
Dude… you are the bomb!!!!!! I’ve been fighting with this for hours !!!!!!
Finally it worked !!!!
LikeLike
Worked for me, thx a lot!
LikeLike
i can’t install joomfish in joomla 1.6 .
the error is following
* JFolder::create: Could not create directory
* Warning: Failed to move file!
LikeLike
Check your host Quota
LikeLike
Interesting affair, didn’t thought it would be so awesome when I saw the link!
LikeLike
Great, I didn’t know about this topic up to now. Thx!
LikeLike
Your comment is awaiting moderation.
thanx. It has finally installed the module I wanted to.
LikeLike
thanx. It has finally installed the module I wanted to.
LikeLike