# chown -R www-data:www-data /var/www/vhost/example.com/
NOTE!: The
www-data
user is used by nginx and php5-fpm. If you are running php as a different user then change ownership as per that.# Correct Directory Permissions
# find /var/www/vhost/example.com/ -type d -exec chmod 0755 {} \;
# Correct Files Permissions
#$ find /var/www/vhost/example.com/
-type f -exec chmod 0644 {} \;
No comments:
Post a Comment