User menu

Home » Blog 63 » Linux Apache file permission issue

Linux Apache file permission issue

sudo adduser $USER www-data
sudo chown -R www-data:www-data /home/$USER/public_html
sudo chmod -R 775 /home/$USER/public_html

 

Also, check www permission, should be

chmod 755 /var/www/