JFolder::create: Could not create directory in all pages
Asked Answered
N

2

0

i installed joomla2.5 and see this error in all administrator pages even login page!

JFolder::create: Could not create directory

i did every solution i found like changing the tmp and logs path to '/logs' or './logs/' but not worked. folders permission is 755. any one can help me ?

Nightdress answered 31/8, 2013 at 8:30 Comment(3)
It could be due to folder ownership. Check with your host to see if there are any issue with ownershipTaryntaryne
for change the permission of file i must reset the ownership. but the problem is that default permission is 755 and default ownership is 'apache'. i must change this default to solve my problem. thanks for helpNightdress
possible duplicate of JFolder::create: Could not create directory - JoomlaAntineutrino
R
2

The 755 permission gives the group/others the read and execute permissions in the directory.

This means, that non-group members cannot create new directories.

Make sure that the owner of the directory is the user that the server is running as.

To figure out which user that is, you can use:

$ echo $(ps axho user,comm|grep -E "httpd|apache"|uniq|grep -v "root"|awk 'END {if ($1) print $1}')

And if does not provide the desired result, simply explore the output of:

$ ps aux | grep -E "httpd|apache" | grep -v -E "root|grep"

You can find which group it belongs to by using:

$ groups [userName]

Next, change the owner of the joomla folder. I am using www-data as an example:

# chown -R www-data:www-data path/to/your/joomla/root/dir

PS,

lines preceded by $ can be executed by a normal user, lines preceded by # require root privilege - you can use sudo or your favorite method.

Rod answered 31/8, 2013 at 9:0 Comment(1)
@Mohsen, You are welcome. Once you confirm that an answer is indeed valid, it is recommended to accept it in order to mark the question as answered.Rod
A
0

Change the below variable to in your configuration file(configuration.php) as shown.

public $log_path = '/logs';
public $tmp_path = '/tmp';

Also make sure that these folder has the folder permission 755.

Read more

JFolder::create: Could not create directory - Joomla

Antineutrino answered 21/4, 2014 at 11:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.