• 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 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.

Issue [Crit] Nginx Error: Permission to images denied?

Jay Pee

New Pleskian
Hi I am running CentOS6, Fast CGi, php 7.3.7 with WP sites on my server.

On ALL domains I'm getting the exact same error message in each of their logs:

[crit] 12581#0: *1191748 open() "/var/www/vhosts/websitename.co.uk/httpdocs/wp-content/uploads/2019/06/image-files.jpg" failed (13: Permission denied).

Occasionally with stat() too.

The images load correctly on the sites and the sites run as expected. It appears that it is a permissions issue i.e. Nginx can't access the image, am I correct?

I have checked via SFTP the file permissions for all folders down the chain from httpdocs/ down to the actual images and the permissions appear correct. Owner correct for domain, permissions 755. Groups within the httpdocs folder set to psacln.

I have run: plesk repair fs websitename.co.uk
Checking virtual hosts' file system ................................. [OK]
Error messages: 0; Warnings: 0; Errors resolved: 0

I'm stumped a little, is it possible Nginx needs to be added to the group somehow?

Sidenote:
The only additional information would be that I tried to add php-fhm a while back unsuccessfully, it just broke the sites so I reverted back to fast-cgi php with Nginx directives set.

Best regards!
 
Last edited:
It looks like this is your case since your server is running on CentOS6:
Static content (CSS and images) is not loaded by browser: 13: Permission denied

Hi @IgorG, thank you for your reply. I have now tried this and eliminated this, still the same unfortunately. I did check the direct link to the images per the error log and they all deliver in the browser as before correctly.

When I clear the browser cache and refresh the page, for instance on a page with 10 images, 10 error lines come up to match (yet the images all display correctly to the visitor).

In the WP admin panel, when refreshing it is the same: .png, .gif, .woff, .jpg, .ico all show with same nginx error lines. I have disabled everything and the error persists with no extensions running, I am quite satisfied it is now server/Plesk based.

nginx error
[crit] 54391#0: *799 open() "/var/www/vhosts/websitename.co.uk/httpdocs/image-files.jpg" failed (13: Permission denied)
 
Back
Top