WHM Reseller Question

Hi Guys,

OK, I just have a quick question about using WHM and cPanel (in context of having a reseller account).

Say I create a user, and that user creates a subdomain (within cpanel). So therefore this user's subdomain path could be:

/home/username/public_html/mysubdomain/

Will DOCUMENT_ROOT (in terms of php) be set to the above? Or will it be mapped just onto the subdomain - or something else?

The reason I ask is I wish to include files from other directories on a reseller account (i.e. from different usernames dirs etc with appropriate permissions set). I do not have a reseller account yet so I'm afraid I cannot check.

When doing a php include() in a script, will specifiying the above path always work, no matter what user is calling it or what dir it is called from? In the same vain, with the example of the subdomain above, could a php file within this dir do a:

include ("../test.php");
i.e. a file located at /home/username/public_html/test.php

Excuse my ignorance on this topic - I don't entirely understand how the whole virtual stuff works.

Thanks for any pointers,
Russ

 

 

 

 

Top