• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved Plesk with symbolic link | 403 No permission to view website data

Markus Riedel

New Pleskian
Hello,
I created two websites:
  • domain1.com
  • domain2.com

domain1.com
is holding a folder with images in this path:
Code:
/var/www/vhosts/domain1.com/httpdocs/public/uploads/images

I would love to access these images with domain2.com. I created a symbolic link folder in:
Code:
/var/www/vhosts/domain2.com/subdomain.domain2.com/

lrwxrwxrwx 1 root         root 52 -sniped- uploads -> /var/www/vhosts/domain1.com/httpdocs/public/uploads/

If I now go to subdomain.domain2.com/uploads/images/IMAGE.PNG I'll get this message:
Server Error 403 Forbidden You do not have permission to access this document.

I changed permission to 755 in the folders and files from domain1.com.


What is the issue?

Best regards,
Markus.
 
The issue is the different subscription owners that are reflected in the file and directory ownerships. It simply does not work across different subscription for security reasons. Image if it worked: This would mean that one subscription use could access files in any other subscription by simply guessing at their names (which is very easy to do for example for Wordpress or Joomla installations).
 
The issue is the different subscription owners that are reflected in the file and directory ownerships. It simply does not work across different subscription for security reasons. Image if it worked: This would mean that one subscription use could access files in any other subscription by simply guessing at their names (which is very easy to do for example for Wordpress or Joomla installations).
Thanks for your reply. Is there any option to make possible what I'm looking for?
 
I am trying the same, and I have put these domains under the same subscription in Plesk but still get errors. "You don't have permission to access /upload/media/bla.html on this server."

Which user/group rights do these folders / images need so I can access them?

Thanks!
 
Thanks I did this + User and Group rights on the symbolic link as well and now it works.

chown -h <username>:psacln FOLDER
 
another question to symlinks.

how to execute PHP-FPM or PHP FastCGI with a symlink, i can access *.css but no stuff that needs to be executed?
 
Back
Top