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!
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: