Recently, I moved a website to live and all the file related operations stopped working, for e.g., copy, imagecreatefromjpeg, etc due to permissions issue.
All the files are created in files/ directory. I gave it 755 permission recursively for directories and 644 permission to all the files. Still the PHP functions didn't work. It works only if I give 777 permissions (not even 775 works).
I checked the permissions for other live projects. They had 755 for directories and 644 for files, and still they seem to work fine without any permission issues.
Could anyone please explain me the reason for this issue on this specific website?
Thanks