Website shows 403 Forbidden: Symbolic link not allowed or link target not accessible

Created:

2016-11-16 13:18:28 UTC

Modified:

2017-08-08 13:43:12 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Website shows 403 Forbidden: Symbolic link not allowed or link target not accessible

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

After restoration from backup website shows 403 Forbidden error.

In /var/www/vhosts/system/example.com/logs/error_log the following error appears:

Symbolic link not allowed or link target not accessible: /var/www/vhosts/example.com/httpdocs/index.php

Cause

Symbolic links are not allowed in Apache configuration.

Resolution

Add the following directive into .htaccess file of website:

Options +FollowSymlinks

If solution did not help make sure that symbolic link has correct ownership and modify it if necessary:

# chown -h <subscription_user>>:psacln /var/www/vhosts/example.com/symlink

or disable symbolic link owner check by adding the following directive into .htaccess file:

Options -SymLinksIfOwnerMatch
Have more questions? Submit a request
Please sign in to leave a comment.