The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

EasyApache Config - RUID2 symlink to share CMS core with Vhosts

Discussion in 'EasyApache' started by tonyl09, Oct 10, 2015.

  1. tonyl09

    tonyl09 Registered

    Joined:
    Oct 9, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  3. tonyl09

    tonyl09 Registered

    Joined:
    Oct 9, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page