• 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

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