Just got a new Red Hat 3 Enterprise server with Cpanel/WHM set up on it. When I go into WHM and create an account everything works just fine. I create an account for www.domain.com - document root is set to /home/domain/public_html and the hostname is set to domain.com
When I set up a second account, www.mysite.com, it pulls the hostname and document root from the first domain created. i.e. for the next account I make the document root is set to be /home/domain/public_html and not /home/mysite/public_html - and the host name for that account is set to domain.com and not mysite.com ...
I noticed this problem at first when the second account I created was using PHP files that utilized the $_SERVER['DOCUMENT_ROOT'] variable. It kept printing the doc root as the previous account's doc root and would create errors because the files the pages required were not being found.
Any idea what the problem is?
When I set up a second account, www.mysite.com, it pulls the hostname and document root from the first domain created. i.e. for the next account I make the document root is set to be /home/domain/public_html and not /home/mysite/public_html - and the host name for that account is set to domain.com and not mysite.com ...
I noticed this problem at first when the second account I created was using PHP files that utilized the $_SERVER['DOCUMENT_ROOT'] variable. It kept printing the doc root as the previous account's doc root and would create errors because the files the pages required were not being found.
Any idea what the problem is?