Symlink Vs suPHP on multiple cpanel acconts

Deleu

Registered
May 9, 2016
2
0
1
Brazil
cPanel Access Level
Root Administrator
Hi,

I'm trying to migrate for a new dedicated server and I've encountered a few setbacks with suPHP as I did not have it before, but I would like to try and keep suPHP enabled since not all accounts in my server belongs to myself and it offers an extra security to my customers.

On the other hand, I would like to know if it's possible to have symlinks in one account's public_html folder pointing to some global folder. The reason I want this is because I own a bunch of domains in this server and all those domains runs the same PHP application with a setup folder that differs from domain to domain.

So, basically I would need to place my app folder in a directory and all it's files would be in the www of various users. When trying to achieve this I always end up getting some permission problem as files cannot be 777 under suPHP, or the owner of the file is the only one allowed to execute the file or the writable group is not allowed by suPHP. Even when changing suPHP setup in the suphp.conf file, I was still unable to execute the symlinks.

Does anybody have any light on this issue?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello,

On the other hand, I would like to know if it's possible to have symlinks in one account's public_html folder pointing to some global folder. The reason I want this is because I own a bunch of domains in this server and all those domains runs the same PHP application with a setup folder that differs from domain to domain.
This is highly discouraged and unsupported due to the security risks involved. An alternative solution is to setup a cron job that syncs the files to each account's home directory on a regular basis, and ensures the files are owned by the account username.

Thank you.