• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

Question Issue with uploaded image showing 403 forbidden linux nginx server

hemant

New Pleskian
A image uploaded via php script showig 403 forbidden. [Folder permission is fine, unable to download or delete via FTP client also.] But I can open file via plesk panel/

But if uploaded via FTP on same folder, image appears.
Also all old images within same folder also appears fine.

server linux nginx. plesk 12, php version 5.5


It was working fine before on our old server. due to some reason old server is dead, so new server setup and backup restored.

Not sure why this issue occure.
 
It seems that the PHP script is more restrictive with permissions. Have you compared owner, group and permissions between the files that are uploaded through FTP and the ones that are created by your PHP script? What are the results of a comparison?
 
Back
Top