Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    43,617
    Likes Received:
    1,787
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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:
    43,617
    Likes Received:
    1,787
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice