If you use 777 permissions on a folder or file, probably this error occurs. So the ideal is always record of 755 and 644 for both (unless otherwise stated in the documentation of the software or script).
Is there a way to make this change to all folders and all files, in case you have multiple files and directories with permissions errors.
To change the permissions of all directories to 755, in SSH type:
Code:
find / home / * / public_html-type d-exec chmod 755 ();
To change the permissions of all files to 644, in SSH type:
Code:
find / home / * / public_html-type f-exec chmod 644 ();
Another cause of these errors may be the. Htaccess, trying to change a setting in PHP. Open. Htaccess and see if there are lines with the type of command php_flag and php_value. If there, delete them.
Bookmarks