CDO.Message.1 error ‘80070005’

When there is error as below when your web application try to send email out

CDO.Message.1 error ‘80070005’

Access is denied.

Solution:
You might need to ensure the mail sending path have the “Everyone”, “Network Service” and “Users” permission and grant to all the subfolder on it.

unable to check htaccess file, ensure it is readable

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

Solution:

(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

Permission Value Meaning

777(rwxrwxrwx)
No restrictions on permissions. Anybody may do anything. Generally not a desirable setting.

755(rwxr-xr-x)
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.

700(rwx——)
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.

666(rw-rw-rw-)
All users may read and write the file.

644(rw-r–r–)
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.

600(rw——-)
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.