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.

modify default html landing dir

Discussion in 'General Discussion' started by StoneyCreeker, Jun 25, 2015.

  1. StoneyCreeker

    StoneyCreeker Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    50
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Upper-East TN
    cPanel Access Level:
    Root Administrator
    I just set up coppermine gallery in the public_html/cm directory on a new account and set it up. How can I direct my domain visitors to that directory instead of public_html? There are no files in the public_html dir.
    I am only using coppermine on this domain. I would rather not have to uninstall it and re-install it to public_html and re-do all my changes. :( I should have installed it right in the first place. :rolleyes:
    WHM 11.48.4 build 4.
     
  2. max_payne

    max_payne Active Member

    Joined:
    Feb 1, 2013
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    You need to either change the document root of the account or simply move the files up one directory. To change the document root from /home/<cpaneluser>/public_html to /home/<cpaneluser>/public_html/cm, follow these steps:

    https://www.servint.net/university/article/the-tech-bench-changing-a-document-root-in-cpanel/

    To move the files up one folder, run the following command from public_html:

    mv -f cm/* .

    Contact your hosting provider to help make these changes if you can not do it.
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,468
    Likes Received:
    196
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  4. StoneyCreeker

    StoneyCreeker Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    50
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Upper-East TN
    cPanel Access Level:
    Root Administrator
    Thank you very much for the quick reply max_payne!
    I made the change as described in the link and it worked perfectly.
     
Loading...

Share This Page