G'day peeps,
if i have a webserver with the document root as say '/var/www/example.com/web' and I set '/var/www/example.com/' as a users home directory, so they are chrooted (via FTP) do that directory. What permissions and ownership should I set the 'web' directory to?
It needs to be writable by the user, and I think it may need to be writable by apache as they have wordpress installed, and need it to change plugins etc?
At the moment it is owned by the user, and this doesn't seem to cause apache/wordpress any issues. Is there any documentation, or de-facto standard, on how to get this setup nicely? <with no security issues>
if i have a webserver with the document root as say '/var/www/example.com/web' and I set '/var/www/example.com/' as a users home directory, so they are chrooted (via FTP) do that directory. What permissions and ownership should I set the 'web' directory to?
It needs to be writable by the user, and I think it may need to be writable by apache as they have wordpress installed, and need it to change plugins etc?
At the moment it is owned by the user, and this doesn't seem to cause apache/wordpress any issues. Is there any documentation, or de-facto standard, on how to get this setup nicely? <with no security issues>