• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • 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