Applicable to:
- Plesk 12.5 for Linux
- Plesk Onyx for Linux
Symptoms
-
Website or some parts are inaccessible (for example, directory with css files);
-
Errors in
/var/www/vhosts/system/example.com/logs/error_log
file:CONFIG_TEXT: [crit] [client 203.0.113.2] (13)Permission denied: /var/www/vhosts/example.com/httpdocs/css/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://www.example.com/index.html
Note: the path in bold may differ, e.g it may point to the WordPress theme like
/var/www/vhosts/example.com/httpdocs/wp-content/themes/theme_name/
.
Cause
Incorrect permissions inside the docroot.
Resolution
-
Connect to the server via SSH.
-
Set permissions on the directory mentioned in the error:
# chmod 0755 /var/www/vhosts/example.com/httpdocs/css/
-
Set the correct ownership
# chown john_doe:psacln /var/www/vhosts/example.com/httpdocs/css/
Note: put subscription system user instead of
john_doe
. The system user can be found in Plesk > Domains > example.com:
Comments
0 comments
Please sign in to leave a comment.