Strange behavior of php for specific folders in Ubuntu and Apache servers
I just ported a website server that allows file uploads. Now it runs VPS on Ubuntu 11.04.
Uploaded files are stored in the folder call files, similar to other folders, with owner: root and group: root.
But the problem is that when I try to run the php function (readfile()) to read any file from the folder, it doesn’t read the file, but when I change the folder owner and group to 10000 and 1005, it’s the same as the previous server. PHP immediately finds the file and starts downloading. I can’t guess what the problem was and how this happened. Because I’ve tried to change the file and its content group and owner to root.
Can anyone describe how this happened and how to change it again to my own group or owner. And I don’t currently have groups and owners named 10000 and 1005 in my VPS.
Is it some kind of bug or hack on the server?