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!

Sharing a directory accross multiple cPanel accounts

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

  1. WhiteDog

    WhiteDog Well-Known Member

    Joined:
    Feb 19, 2008
    Messages:
    128
    Likes Received:
    1
    Trophy Points:
    68
    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

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    Location:
    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.
     
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