Correcting ownership and permissions after uploading files as root
Posted: Thu Nov 17, 2022 3:05 pm
In your SSH, as root, run:
Code: Select all
USER='someUsername'
DOMAIN='someDomain'
cd /home/$USER/web/$DOMAIN
find public_html/ -type d -exec chmod 755 {} +
find public_html/ -type f -exec chmod 644 {} +
chown -R $USER:$USER public_html/