Specific page can not be accessed for a Plesk domain: Symbolic link not allowed

Started by mahesh, Dec 09, 2024, 06:33 AM

Previous topic - Next topic

mahesh

Question:
Specific page can not be accessed for a Plesk domain: Symbolic link not allowed or link target not accessible
Symptoms
  • A specific or particular page on a Plesk domain can not be accessed with:

403 Access denied
AH00037: Symbolic link not allowed or link target not accessible: /var/www/vhosts/example.com/sub.example.com/public_html/storage_link
  • The option Restrict the ability to follow symbolic links in the Domains > sub.example.com > Apache & nginx Settings is disabled.
  • The ownership of the symbolic link from the log error is incorrect:
#ls -la /var/www/vhosts/example.com/sub.example.com/public_html/storage_link
lrwxrwxrwx 1 root root 62 Mar 24 12:17 storage_link -> /var/www/vhosts/example.com/sub.example.com/storage/app/public

Cause
Incorrect ownership to the symbolic link for storage_link

Resolution
1.Connect to the server via SSH.

2.Correct the ownership with the the path from the error, where jdoe is the Domain sysuser. e.g.:

#chown -h jdoe:psacln /var/www/vhosts/example.com/app.example.com/public_html/storage_link