- Plesk for Linux
- Unable to open WordPress page via a URL like http://example.com. The following error is shown in browser:
/var/www/vhosts/example.com/logs/proxy_error_logthe following error is shown:
[error] 11568#0: *46278 directory index of "/var/www/vhosts/example.com/httpdocs/" is forbidden, client: 203.0.113.2, server: example.com, request: "GET / HTTP/1.1", host: "example.com"
- Ownership for directory /var/www/vhosts/example.com/httpdocs/ is set to different user that is not related to domain example.com:
# stat /var/www/vhosts/example.com/httpdocs/
Access: (0750/drwxr-x---) Uid: (10004/another_username) Gid: ( 1002/ another_username)
Invalid directory ownership. Apache process cannot read files from the directory.
2. Set the correct owner ship and permissions for httpdocs directory:
# chown example_com:psaserv /var/www/vhosts/example.com/httpdocs/
# chmod 0750 /var/www/vhosts/example.com/httpdocs/