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.

Cagefs and allowing access to directories outside of root

Discussion in 'CloudLinux' started by searchmaster, Jun 18, 2013.

  1. searchmaster

    searchmaster Member

    Joined:
    Jul 20, 2007
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    New Zealand
    cPanel Access Level:
    Root Administrator
    I am using cloudlinux and cagefs on a new dedicated server.

    I have a cms that uses a core set of files outside of root for each client. Therefore, I can't use php open_basedir for them. I am wanting to use cagefs.

    How do I set up cagefs so that the common /home/cms files can be accessed by /home/[client].

    I have tried adding a cfg file
    - /etc/cagefs/conf.d/cms.cfg created and cagefsctl --force-update

    and have tried adding the directories to cagefs.mp

    But the files are still not accessible.

    Your help would be appreciated.

    Thanks
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    The official documentation page for CageFS is available at:

    CageFS Documentation

    Igor (user: iseletsk) may be able to shed some more light on this issue for you, but you may also want to check out the Cloud Linux forums on their official website, as there are more Cloud Linux specific discussions there:

    Cloud Linux Forums

    Thank you.
     
  3. iseletsk

    iseletsk Well-Known Member

    Joined:
    Mar 3, 2010
    Messages:
    163
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Princeton, New Jersey, United States
    Move it somewhere outside /home (like /opt, or /usr/share)
    and then you can add it.
    The problem with /home is that this is where user's directories are, and as such that directory protected/we don't show anything inside that directory.
     
  4. searchmaster

    searchmaster Member

    Joined:
    Jul 20, 2007
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    New Zealand
    cPanel Access Level:
    Root Administrator
    Thanks for your advice Igor. Appreciated!

    - - - Updated - - -

    Of the following, which method should be used to make say /usr/share available?

    Adding a cfg file
    - /etc/cagefs/conf.d/cms.cfg created and cagefsctl --force-update

    adding the directories to cagefs.mp

    or both?
     
Loading...

Share This Page