Website file permission settings

1. Switch the path to the root directory of the website
2. Change the user and user group of the file

chown -R www-data:www-data ./

3. Change folder permissions

find ./ -type d -exec chmod 755 {
    
    } \;

4. Change file permissions

find ./ -type f -exec chmod 644 {
    
    } \;

Guess you like

Origin blog.csdn.net/weixin_45579994/article/details/112381384