write permission for www-data

etrader nginx-forum at nginx.us
Fri Jul 29 19:29:51 UTC 2011

Thanks Jim,

Yes, I run nginx as www-data; I just meant creating files and folders by
root. My own PC run on Ubuntu; thus I connect to server through OS
explorer. I connect to server via sftp with root user. Then, when I
create a folder or php file its ownership belongs to root. I just asked
if it is necessary to create each and every file and folder by nginx or
site user? or it is OK to be owned by root?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,213004,213111#msg-213111

More information about the nginx mailing list