• 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!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Issue Mounting in multiple disks to one domain results in permission denied 404 on webpage

Snix

New Pleskian
Server operating system version
Red Hat Enterprise Linux Server release 7.9
Plesk version and microupdate number
18.0.46.2
Hello, I got some help earlier this year with mounting in 3 NFS disks to a wordpress bedrock installation.

In essence the NFS disks got mounted in at /mnt/<directory> with only read permissions.
I later after tip added the directory to the site
ex:
mount --bind /mnt/<directory> /var/www/vhosts/<web_site>/httpdoc/html/web/<directory>.

Everything have worked great for a couple of months now, until a server restart the other day.

The folders lost their mounts, and when i remount them, the root user can still access the files, I've tried to access them as the domain_user and it works fine too.
I can also access the files from the plesk file system for the specific domain.

The issue comes when i go out to the site and try to access it from <site_name>.com/<folder_name>/<file_name>.pdf I'm greeted with a 404,
When i check the logs i can see permission denied:
[crit] 4428#0: *13144 stat() "/var/www/vhosts/<web_site>/httpdocs/html/web/<folder_name>/<file_name>.pdf" failed (13: Permission denied)

I've run out of ideas and am happy for any kind of help that would give a hint of how i can mount the folders back.
 
Found the issue. It was SELinux that was blocking the files from being served on the website.

I followed this thread to try it out.
 
Back
Top