I apologize in advanced if this question is better suited for Stack Overflow.
We have a CentOS cPanel server and we want to share some PHP code base with another user. We don't have open_basedir
enabled on any account and is disabled in httpd. I have created a symbolic link to the code base and set 0711
permissions on recursively but PHP still throws permission errors when scripts are included which are in another user's home dir.
What we hope to achieve is to allow user x to access user y's code base with execute permissions only. We don't mind if user y can see the code we just don't want write access to the code base. Since this code base is constantly updated we'd rather not just copy the code to user y's home dir.
Any suggestions on how to achieve this?
UPDATE: I thought PHP may have been runing in safe mode, I checked php.ini I have both safe_mode
and safe_mode_gid
set to Off