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!

Create virtual public_html directories for Client Accounts

Discussion in 'General Discussion' started by Oliver-Sofibix, Jan 21, 2013.

  1. Oliver-Sofibix

    Oliver-Sofibix Registered

    Jan 21, 2013
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    What I would like to know is, if there is a way of creating a virtual public_htlp folder that points to actual files in a root/user/all/public_html folder.

    In other words there are 3 websites hosted on my server:, and, all three sites have the identical files and folders, each site is provided with unique content, by the fact that when a client makes a request for a file from, with PHP $_SERVER['SERVER_NAME'] I establish the clients url, check this against the database, and provide the request with the clients content, logo etc.

    Also if an end user uploads a photo and/or file to the clients site, this same file can be viewed on all other sites.

    I do not wish to copy all the files to each clients public_html folder, but rather have one folder for all clients?

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