JFolder :: create: Failed to create directory on all pages

i installed joomla2.5 and see this error on all admin pages even on the login page!

JFolder::create: Could not create directory 

I made every decision I found how changing the path of tmp and logs to '/ logs' or './logs/', but it didn't work. folder resolution is 755. can anyone help me?

0
source share
2 answers

Permission 755 provides group / other read and execute permissions in the directory.

This means that group members cannot create new directories.

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

To find out which user 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 it does not give the desired result, just study the conclusion:

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

You can find which group belongs to using:

$ groups [username]

Then change the owner of the joomla folder. I use 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 regular user, lines preceded by # require root privileges - you can use sudo or your favorite method.

+2
source

Change the following variable in the configuration file ( configuration.php ) as shown.

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

Also make sure that this folder has a resolution of 755 folders.

More details

JFolder :: create: Failed to create directory - Joomla

0
source

All Articles