!! 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”
benito
October 6, 2009 at 2:21 pm
thanx. It has finally installed the module I wanted to.
benito
October 6, 2009 at 2:22 pm
Your comment is awaiting moderation.
thanx. It has finally installed the module I wanted to.
Owegiatte
November 27, 2009 at 6:42 am
Great, I didn’t know about this topic up to now. Thx!
Offigngar
December 9, 2009 at 1:31 pm
Interesting affair, didn’t thought it would be so awesome when I saw the link!
kian
December 6, 2010 at 8:19 am
Check your host Quota
Mish
March 3, 2011 at 4:38 am
i can’t install joomfish in joomla 1.6 .
the error is following
* JFolder::create: Could not create directory
* Warning: Failed to move file!
David Domingues
August 3, 2011 at 9:49 am
Worked for me, thx a lot!
Imants Vilks
August 10, 2011 at 7:31 pm
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
Brock
September 2, 2011 at 1:43 am
Dude… you are the bomb!!!!!! I’ve been fighting with this for hours !!!!!!
Finally it worked !!!!
GT MEDIEX Design
September 15, 2011 at 3:50 am
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
Steven Zeegers
September 16, 2011 at 3:21 pm
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.
Cristi
October 11, 2011 at 11:37 pm
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.
Darren Prince
March 16, 2012 at 6:02 pm
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.
yannick
April 17, 2012 at 10:46 pm
thanks Cristi,
cmodding cache was the one thing I was forgetting.