Applicable to:
- Plesk for Linux
Symptoms
-
Unable to open main or other pages and files inside a domain:
PLESK_INFO: Forbidden
Error 403 -
The following error can be found in
/var/www/vhosts/system/example.com/logs/proxy_error_log
:CONFIG_TEXT: [error] 32190#0: *18506 open() "/var/www/vhosts/example.com/httpdocs/folder/file.txt" failed (13: Permission denied), client: 192.0.2.2, server: example.com, request: "GET /folder/test.txt HTTP/2.0", host: "203.0.113.2"
or
CONFIG_TEXT: Error 71.229.240.164 1307#0: *355 open() "/var/www/vhosts/example.com/crm.example.com/crm/cache/include/javascript/sugar_grp_yui_widgets.js" failed (13: Permission denied) nginx error
- Some website files shows "ERR_INCOMPLETE_CHUNKED_ENCODING" or "err_spdy_protocol_error" in browser's console
Cause
Wrong permissions on the directory /var/www/vhosts/example.com/httpdocs/folder/
or /var/www/vhosts/example.com/
Resolution
-
Connect to a Plesk server using SSH.
-
Correct permissions on the directory using the following commands:
# plesk repair fs example.com -y
# cd /var/www/vhosts/example.com/httpdocs
# find . -type d -exec chmod 755 {} \;
# find . -type f -exec chmod 644 {} \;
# chown -R johndoe:psacln .where
johndoe
is a system user of the affected subscription.
Warning: Note that permissions 755 and 644 in the commands above are just an example, permissions might be different based on the CMS that is used.
Comments
0 comments
Please sign in to leave a comment.