• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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