If your permissions are incorrect for files and folders in a webroot domain more than likely you’ll get a server 500 error. Here is how to fix them by resetting, especially using the correct defaults for a cPanel domain or other web server for files and directories.
You can bulk fix these permissions on the command line, with these commands:
You can bulk fix these permissions on the command line, with these commands:
cd /home/yourdomain/public_html/
Go to your webroot directoryfind . -type d -exec chmod 755 {} \;
Fix the permissions on directoriesfind . -type f -exec chmod 644 {} \;
Fix the permissions on files
No comments:
Post a Comment