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.
Masteram
source share