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.

symbolic link (or any other idea) question...

Discussion in 'General Discussion' started by christi1, May 2, 2004.

  1. christi1

    christi1 Well-Known Member

    Joined:
    Oct 20, 2003
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Texas, USA
    Alright...

    I have 3 accounts: one, two and three.

    In account one, I have the following:

    /
    /admin/
    /admin/files1/
    /admin/files2/
    /graphics/
    /includes/
    /products/

    I need accounts two and three to have the following exact same content as account one:

    /
    /admin/
    /admin/files2/
    /graphics/
    /products/

    While maintaining the following separate directories for accounts two and three:

    /admin/files1/
    /includes/

    Our /admin directory for account one is .htaccess protected as well.

    I should the files in /includes carry different variables for each account, including layout header and footer, etc.

    Is there a relatively easy way to achieve this?? I basically need 2 sites with the exact same content, but different header, footer and globals as are located in our /includes directory and different order information as is located in our /admin/files1 directory.

    It seems extremely redundant to me to create 2 complete sites with all of the above same information when only the information in 2 directories remains different.

    Any help or ideas will be much appreciated.

    Further notes hat may help: I do have root access and am extremely proficient in PHP.
     
  2. bamasbest

    bamasbest Well-Known Member

    Joined:
    Jan 10, 2004
    Messages:
    531
    Likes Received:
    0
    Trophy Points:
    16
    One way, since you are proficient in php .....

    Database your data/images for the ./files* /graphics /products.

    Then, for each account, dynamically serve up the content as needed, including the appropriate headers/footers.
     
  3. christi1

    christi1 Well-Known Member

    Joined:
    Oct 20, 2003
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Texas, USA
    thanks, resolved this yesterday and forgot to post back.
     
Loading...

Share This Page