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.

Subdomains and main domain

Discussion in 'General Discussion' started by latpanel, Aug 19, 2006.

  1. latpanel

    latpanel Well-Known Member

    Joined:
    Jan 23, 2004
    Messages:
    134
    Likes Received:
    0
    Trophy Points:
    16
    In my server I have a "main domain" which docroot is /home/user/public_html/htdocs
    Each subdomains is allocated in /home/user/public_html/subdomains. That is;

    subdom1 is in /home/user/public_html/subdom1
    subdom1 is in /home/user/public_html/subdom2
    subdom1 is in /home/user/public_html/subdom3

    and so.

    In this installation http://www.mainserver.com points to /home/user/public_html/htdocs
    And http://subdom1.mainserver.com points to /home/user/public_html/subdom1
    And http://subdom2.mainserver.com points to /home/user/public_html/subdom2
    And http://subdom3.mainserver.com points to /home/user/public_html/subdom3

    So there is no http://www.mainserver.com/subdom1 and so.

    It's all OK, but when I install phpBB or osCommerce or any other program with cPanel installer, the script copies files in /home/user/public_html/ and not in main directory (/home/user/public_html/maindir).

    Ah, in http.conf DocumenRoot is set to /home/user/public_html/htdocs, and there are a first virtualserver defined with this docroot and www.mainserver.com as server name.

    Is there any way to install addons modules in the proper directory?

    Thanks
     
Loading...

Share This Page