When you receive an error as below
Permission denied: /home/username/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
(1) ensure the folder ownership is correct
(2) ensure the folder permission is 755 while file is 644. For short cut, you can run the command as below
find . -type f -print0 | xargs -0 chmod 644;find . -type d -print0 | xargs -0 chmod 755
No restrictions on permissions. Anybody may do anything. Generally not a desirable setting.
The file’s owner may read, write, and execute the file. All others may read and execute the file. This setting is common for programs that are used by all users.
The file’s owner may read, write, and execute the file. Nobody else has any rights. This setting is useful for programs that only the owner may use and must be kept private from others.
All users may read and write the file.
The owner may read and write a file, while all others may only read the file. A common setting for data files that everybody may read, but only the owner may change.
The owner may read and write a file. All others have no rights. A common setting for data files that the owner wants to keep private.