Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

how to change main domain contect with cPanel

Discussion in 'General Discussion' started by Fauzi17, Nov 11, 2012.

  1. Fauzi17

    Fauzi17 Registered

    Nov 11, 2012
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Website Owner

    Before i have assigning a main domain for my website, and automatically have put my website content on /home/my_name/public_html/ of course with CPanel's GUI, but currently i want to change or reassign other website to my assigned main domain, what the best way for practice, whether just replace contect of /home/my_name/public_html/ with linux's command or CPanel have elegant way for do that ?

  2. cPanelJared

    cPanelJared Technical Analyst

    Feb 25, 2010
    Likes Received:
    Trophy Points:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I am not sure exactly what you want to do. Do you just want to change the domain associated with a cPanel account? If so, you can do that by clicking, in the WebHost Manager, Home » Account Functions » Modify an Account. Do not try to do it by editing any files manually.

    If you just want to change the contents of the site, and leave the domain the same, then yes, just edit the files in /$HOME/$USER/public_html, where:

    • $HOME = the actual home directory, and;
    • $USER = the actual cPanel user
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice