itsensellc
Verified User
- Joined
- Jul 15, 2005
- Messages
- 53
Hello,
I'm in the process of migrating accounts from a system that was running Apache 2.2 with no form of suexec to Apache 2.4 with mod_ruid2 and I'm running into symlink issues that are driving me insane. Here's the layout of the land:
/home/admin/domains/domain.com/public_html/folder/uploads/images contains several subfolders that each contains several images. On the old system the images folder is owned by admin, but all subfolders are owned by apache and all files as well. On the new system I changed all ownership to admin since it's running ruid2. Folders are 755, files are 755 (for now).
I then have another account, call it joe, that has 30 domains and each domain has a symlink to the folder above. So:
/home/joe/public_html/images would be a symlink to the /home/admin/domains/domain.com/public_html/folder/uploads/images. That symlink is owned by admin.admin and is 777.
This setup worked with issue on the old system. It's not working on the new one and to make matter worse I'm not getting much in the way of feedback why. The apache error logs show Symbolic link not allowed or link target not accessible. strace just shows a permission denied error. I've tried all kinds of combinations of ownership and I cannot figure out what it's looking for or what user it's trying to access those files as.
I suspect this is something particular to ruid2 I don't understand but I have no idea what to do at this point and the interweb hasn't been too helpful. Any help would be appreciated!
I'm in the process of migrating accounts from a system that was running Apache 2.2 with no form of suexec to Apache 2.4 with mod_ruid2 and I'm running into symlink issues that are driving me insane. Here's the layout of the land:
/home/admin/domains/domain.com/public_html/folder/uploads/images contains several subfolders that each contains several images. On the old system the images folder is owned by admin, but all subfolders are owned by apache and all files as well. On the new system I changed all ownership to admin since it's running ruid2. Folders are 755, files are 755 (for now).
I then have another account, call it joe, that has 30 domains and each domain has a symlink to the folder above. So:
/home/joe/public_html/images would be a symlink to the /home/admin/domains/domain.com/public_html/folder/uploads/images. That symlink is owned by admin.admin and is 777.
This setup worked with issue on the old system. It's not working on the new one and to make matter worse I'm not getting much in the way of feedback why. The apache error logs show Symbolic link not allowed or link target not accessible. strace just shows a permission denied error. I've tried all kinds of combinations of ownership and I cannot figure out what it's looking for or what user it's trying to access those files as.
I suspect this is something particular to ruid2 I don't understand but I have no idea what to do at this point and the interweb hasn't been too helpful. Any help would be appreciated!