View Single Post
  #9  
Old 13th July 2009, 18:04
X-admin X-admin is offline
Member
 
Join Date: Jun 2009
Posts: 31
Thanks: 8
Thanked 0 Times in 0 Posts
Unhappy

Quote:
Originally Posted by _X_ View Post
also almost all folders and files should be owned by www-data:www-data (user:group) so only apache can access those files. only some folders in images folder should be own by web1_ftp:web1 so images can be uploaded by ftp user.

to correct ownership of files type in console (SSH):
cd /var/www/web1
chown -R -v -f www-data:www-data/*

to set ownership of files and folders in images folder:
cd /var/www/web1/images
chown -R -v -f web1_ftp-web1:web1_ftp-web1/*
Dear _X_!
i don't know about this quote. who www-data:www-data any else? I think there is only a user:group is web1_ftp:web1 for each directory and file in /web
apache user is in group web1?
Reply With Quote