Unable to open main or other pages and files inside a domain: 403 Forbidden

Started by Suhitha, Dec 31, 2025, 07:05 AM

Previous topic - Next topic

Suhitha

Question: Unable to open main or other pages and files inside a domain: 403 Forbidden


Applicable to:

  • Plesk for Linux


Symptoms

  • Unable to open main or other pages and files inside a domain:

Forbidden
Error 403

  • The following error can be found in /var/www/vhosts/system/example.com/logs/proxy_error_log:
[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

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

1.Connect to a Plesk server using SSH.

2.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.