When running a script I get the following error:
'The folder "x" is not writable.'
Folder's permissions are 755. Folder ownership is user:user. PHP runs as apache.
When changing group ownership of folder to apache it works, but it's not very practical.
Ideal would be if any admin could upload a script which can be executed without problems.
What is the commonly accepted/best solution for it?
P.S. I run standard clean CentOS 6.x
Answer
775 breaks down like this:
first 7 - user read/write/execute
second 7 - group read/write/execute
last 5 - others read/execute
In order for the apache user to be able to write to the folder, it will need write permission, so either it will need to have group perms, ownership of the folder or have full read/write/execute to everyone on the server.
Comments
Post a Comment