Skip to main content

How to reorder several domains under client cPanel files ?

Comments

5 comments

  • cPanelMichael
    Hello :) You could use FTP, File Manager, or SSH to manually move the website files into directories named after their domain names. You would then have to update the document root for the primary domain name by editing the "documentroot" entry in the appropriate cPanel user data file: /var/cpanel/userdata/$username/$domain.com
    Then, rebuild the Apache configuration file via: /scripts/rebuildhttpdconf
    Thank you.
    0
  • crossing
    I will have to do that every time the client add new domain ??
    0
  • cPanelMichael
    [quote="crossing, post: 1734471">I will have to do that every time the client add new domain ??
    No, they can choose the document root path when adding the Addon domain names in the cPanel interface. Thank you.
    0
  • crossing
    Hello, I have another question, can I move also the main to addon domain by editing this file /var/cpanel/userdata/$username/$domain.com ? Also there is any way to totally remove main domain ?
    0
  • cPanelMichael
    Hello, I have another question, can I move also the main to addon domain by editing this file /var/cpanel/userdata/$username/$domain.com ? Also there is any way to totally remove main domain ?

    This thread should help:
    0

Please sign in to leave a comment.