Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Apr 2005
    Posts
    5

    Default DocumentRoot

    This is definitely a new user question. I am moving from WebMin to cPanel and can't figure out where to set the document root for various domains.

    Obviously I can edit it by hand in /usr/local/apache/conf/httpd.conf but the benefit of WebMin (and presumably cPanel) is to minimize the amount of hand editing required.

    So, where on cPanel do I set the DocumentRoot for various names?

    Thanks!

  2. #2
    Member
    Join Date
    Feb 2005
    Location
    North Carolina
    Posts
    237

    Default

    Hi Chris:

    By default the DocumentRoot for accounts is:

    /home/AccountName/public_html

    Does that help?

  3. #3
    Member
    Join Date
    Apr 2005
    Posts
    5

    Default

    Quote Originally Posted by RickG
    Hi Chris:

    By default the DocumentRoot for accounts is:

    /home/AccountName/public_html

    Does that help?
    Thanks for the reply. :-)

    I did know the default, but what I was hoping to find in cPanel - I've looked in the manual and forums etc - is where you would set the viritual hosts for a domain to something besides the default. e.g. something like /var/www/pages/<virtual host directories for each domain>

    I am moving from a server with WebMin with about 100+ domains and would prefer to not have to create an account for each and then set up a directory for each since it makes it difficult for one person to modify them all due to permissions.

    I tried using the "Add On" domains, but I continually get messages like "could not be modified because it does not resolve to a valid ip address. Please ask the system admin to check their resolv.conf and their dns trust relationship Ignore any messages of success this can only result in failure! "

    Now, I know it resolves to a valid IP because I get 100000s of thousands of hits per day. It resolves to the current (being replaced) server.

    I am wondering if my perspective is incorrect and I am going at it from the wrong due to being familiar with the command line and WebMin. :-)

    Thanks!

  4. #4
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    Change the path of your home directory within WHM via "tweak settings".
    Beau Henderson

  5. #5
    Member
    Join Date
    Apr 2005
    Posts
    5

    Default

    Quote Originally Posted by haze
    Change the path of your home directory within WHM via "tweak settings".
    Thanks for the suggestion, but I am looking at this option, "Main >> Server Setup >> Tweak Settings" and don't see anything about home directory in there. I will have to keep looking I guess.

    :-)

  6. #6
    Member
    Join Date
    Dec 2001
    Posts
    1,558

    Default

    "edit setup" my bad.
    Beau Henderson

Similar Threads & Tags
Similar threads

  1. DocumentRoot query
    By martyf in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 10-19-2010, 12:09 AM
  2. DocumentRoot Suggestions?
    By fkatzenb in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-20-2010, 06:25 AM
  3. DocumentRoot
    By StanleyS in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 05-28-2008, 01:12 PM
  4. Subdomain DocumentRoot ALL WRONG !!!
    By mysql_connect in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 12-13-2007, 11:38 AM
  5. documentroot of an account
    By iago in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-05-2003, 10:40 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube