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.

Sharing a directory accross multiple cPanel accounts

Discussion in 'General Discussion' started by WhiteDog, Jun 28, 2008.

  1. WhiteDog

    WhiteDog Well-Known Member

    Feb 19, 2008
    Likes Received:
    Trophy Points:
    I have several cPanel accounts thru a reseller account. I created a framework of templates, classes and function libraries that i would like to share accross multiple accounts. These are all files that do NOT need to be accessed directly from the internet.

    I currently copy the files to each account when something changes.

    I assume that I need to give rights to the folder i want to share, but how do I do that, and how do I give rights to only allow certain other sites to access it?

    Related to this question: Are the paths i see real or virtual? If i have an account site1 and site2 (/home/site1/public_html/ and /home/site2/public_html/) are that the real paths on the server hard disk?
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Nov 29, 2006
    Likes Received:
    Trophy Points:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I am going to assume you are using SuPHP and SuExec, otherwise you would be able to simply include files as desired from scripts on other accounts.

    In this scenario, I believe the only way to allow scripts to be shared among users would be to somehow assign them to a group and assign the scripts group privileges. However, in a cPanel/WHM environment, user files are typically granted ownership of user:user where the user is the group as well.

    The paths you see are real.

Share This Page