EasyApache Config - RUID2 symlink to share CMS core with Vhosts

tonyl09

Registered
Oct 9, 2015
2
0
1
Jamestown, RI USA
cPanel Access Level
Root Administrator
I am setting up a CentOS 6 cPanel server to service a number of vhosts that will all use the same core CMS.

I want to put a single instance of the CMS files into the /home directory so that I can update that in one place and automatically update all client sites.

The directory structure would be

/home
/CoreCMS.2.x
/CoreCMS.3.x
/MostRecentCMS symlink => CoreCMS Most Recent
/VHost1
/public_html
/CMS symlink => /home/MostRecentCMS
/index.php symlink => CMS/index.php
All files 644, directories 755
/VHost2
...

Is there a way to configure EasyApache with mod_ruid2 to permit symlinking multiple accounts to the core software without using 666/777 permissions?

Thank you
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello :)

It's likely a better idea to develop a script that updates each account individually with the updated files from your content management system. Linking all accounts to a shared directory is considered a security risk.

Thank you.
 

tonyl09

Registered
Oct 9, 2015
2
0
1
Jamestown, RI USA
cPanel Access Level
Root Administrator
Thank you, Michael.

The issue I and others face is that of we have 50 sites or more with duplicate 80MB core software, we are putting out of commission 4GB of disk space...

That said, I do have a working system set up, though without mod_ruid2.

In EasyApache it has:
Version: PHP5
PHP 5 Handler: fcgi
Apache suEXEC: On

Directory Options:
ExecCGI enabled
FollowSymLinks enabled
Includes off
IncludesNOEXEC enabled
Indexes off
Multiviews off
SymLinksIfOwnerMatch off

Thank you
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Thank you for reporting the existing configuration you have in-place that allows you to implement that type of configuration. Note that it's not likely to work for Mod_Ruid2 without unsupported customization that reduce the security of your system.

Thank you.