My problem is: I have a huge data directory (400GB) from a website and have a second website enabled for the new design, where I have symlinked the data directory.
Now there are some file checks using is_file()
, but they return false
and if remove the file check, it renders the background-image for example, I can also access all the files in the browser via file listing using the non-original URL.
I've searched trough google, found some things about permissions, users, and groups. so I tried to get the user and group of the PHP-process using
$processUser = posix_getpwuid(posix_geteuid());
the whole thing is running on an ispconfig3 server and both sites are on the same server.
The user and group of the original, hard directory are web1:client1. the user and group of the web directory with the symlink are web14:client1.
The running process is from user web14, which has its permissions set to 775 for the parent directory, where the symlink remains, and the original directory.
As I understand both users are in the same group and group has RWX or what could be the problem?