SlideShare a Scribd company logo
1 of 19
Copying Addon Domains
to a New Account
Table of Contents
2
Introduction
Example Values
Create a Backup File
Create a New Account
Extract the Backup File
Extract the Backup File
(Continued)
Import the Databases
Update Cron Job Paths
Change File Ownership
Confirm the Functioning of
the Account
Remove the Addon Domain
Change the Placeholder
Domain’s Name
Copy Over Email Account
Information
Change the Ownership of
Files
Log in Confirmation
 Once you have created an addon domain, an entirely new account can be created from that addon
domain. For this purpose, the information from the addon domain needs to be copied and added to a
newly-created account.
 The following slides will run you through the steps involved in copying addon domains to a new
account.The information that has been provided here is valid for only version 54 and the earlier
versions of cPanel & WHM.The Convert Addon Domain to Account interface of WHM needs to be
used for cPanel & WHM version 56 and later.
 WHM >> Home >>Transfers >> Convert Addon Domain to Account
 It needs to be mentioned here that only the root user or those resellers, who have root-level
privileges, will be able to carry out this action, as it requires moving files.
3
Introduction
The below-mentioned example values are used in the information contained in the following slides.
 username – It represents the account’s user.
 newusername – It represents the new account’s user.
 addonname – It represents the addon domain’s name.
 addondirectory – It represents the addon domain’s directory.
 To digress, the facility to register and transfer domains is provided by many web hosting companies,
such as HTS Hosting. HTS Hosting has been consistently referred to as the “Best Web Hosting
Company”, the “Best Cloud Hosting Company”, etc. due to the high quality of service offered by it at
affordable prices.
4
ExampleValues
 Carry out full backup of the account which contains the addon domain. Use the Backups interface of
cPanel (cPanel >> Home >> Files >> Backups) for this purpose, or run the following script:
/usr/local/cpanel/scripts/pkgacct
5
Create a Backup File
6
1-800-123 -8156
Whoa!That’s a big number, aren’t
you proud?
 Create a new account that has a placeholder name in the Create a New Account interface in WHM.
 WHM >> Home >> Account Functions >> Create a New Account
 It needs to be mentioned here that you should not use the name of the addon domain as the new
account name.
7
Create a New Account
The below-mentioned steps need to be performed to extract the backup file.
1. Create the /home/backup-username directory by running the following commands:
 mkdir /home/backup-username
 mv cpmove-username.tar.gz /home/backup-username/
! Then move the backup file into it.
 Navigate to the /home/backup-username directory by running the following commands:
 tar -xzf cpmove-username.tar.gz
 cp /home/backup-username
Then the backup needs to be uncompressed.
It needs to be mentioned here that the above-mentioned commands extract the contents of the backup file to either
the cpmove-username or username directories. 8
Extract the Backup File
 Run the following command:
 cp -R homedir/public_html/addondirectory/* /home/newusername/public_html/
 This command adds the homedir/public_html/addondirectory/ subdirectory to the /home/backup-
username/public_html/ directory.
9
Extract the Backup File (Continued)
Carry out the following steps to import the databases:
 Recreate the databases of the addon domain and create the database users in the MySQL Databases
interface in cPanel.
 cPanel >> Home >> Databases >> MySQL Databases
Prepend newusername to the databases at the time when you create them. An example of this is when you
create the newusername_dbname file. In it, dbname represents the name of the database.
 Import the database backups of each domain, after creating the databases and database users. For this
purpose, you need to run the below-mentioned command for each backup.
mysql newaccount_dbname < /home/backup-username/username/mysql/username_dbname.sql
10
Import the Databases
You need to carry out the following steps for updating the new account’s cron paths:
 Open the /home/backup-username/username/cron/username file. Then check for the cron jobs of the
addon domain.
 Add the paths for the cron jobs of the addon domain to the new account in the Cron Jobs interface in
cPanel.
cPanel >> Home >> Advanced >> Cron Jobs
You need to ensure that the paths of the cron jobs match the paths of the new account to the same cron
jobs files.
11
Update Cron Job Paths
 The chown command needs to be used in order to grant ownership of the copied public_html files to
the newusername user.
 find /home/newusername/public_html -uid 0 -exec chown newusername:newusername {} +
12
Change File Ownership
 You must confirm that the account functions properly after any change in the ownership of the files.To
ensure this, you have to point the hosts file of your operating system to the temporary domain
placeholder.
13
Confirm the Functioning of the Account
 Remove the addon domain of the old account in the Addon Domains interface in cPanel.
cPanel >> Home >> Domains >> Addon Domains
14
Remove the Addon Domain
 Navigate to the Modify an Account interface in WHM.
WHM >> Home >> Accounts >> Modify an Account
 Next, change the main domain name of the new account to the name of the addon domain.
15
Change the Placeholder Domain’s Name
Change the domain name.After that, copy the emails, forwarders, autoresponders, and filters of the old
account to the new account. For that purpose, you need to open the /home/backup-username/username
directory and then run the following commands:
 cp va/addonname /etc/valiases/
 cp vf/addonname /etc/vfilters/
 cp homedir/.autorespond/*addonname* /home/newusername/.autorespond/
 cp -R homedir/etc/addonname /home/newusername/etc/
 cp -R homedir/mail/addonname /home/newusername/mail/
16
Copy Over Email Account Information
 Once you have copied the emails, filters, forwarders and autoresponders, you need to change the
ownership of those files to the new user.You should run the following commands to attain that:
 chown newusername:mail /etc/valiases/addonname
 chown newusername:mail /etc/vfilters/addonname
 chown newusername:newusername /home/newusername/.autorespond/*addonname*
 find /home/newusername/etc -uid 0 -exec chown newusername:mail {} +
 find /home/newusername/mail -uid 0 -exec chown newusername:mail {} +
You should append asterisks ( * ) on either side of addonname to ensure that it keeps the wildcards.
17
Change the Ownership of Files
 You need to confirm that you can log in to the Webmail account of the user after you have changed
the files’ ownership.
 Navigate to the /home/newusername/etc/addonname directory and find the users as well as the email
passwords for authentication to Webmail, IMAP, and POP3.
18
Log in Confirmation
19
Thanks!
ANY QUESTIONS?
www.htshosting.org

More Related Content

Similar to Copying Addon Domains to a New Account

How to Migrate IIS Website to Another Server.pdf
How to Migrate IIS Website to Another Server.pdfHow to Migrate IIS Website to Another Server.pdf
How to Migrate IIS Website to Another Server.pdfHost It Smart
 
Unlocking the Full Potential of Your Website with cPanel Web Hosting
Unlocking the Full Potential of Your Website with cPanel Web HostingUnlocking the Full Potential of Your Website with cPanel Web Hosting
Unlocking the Full Potential of Your Website with cPanel Web Hostingyabhishek8795
 
Information on Basic Web Host Manager Setup
Information on Basic Web Host Manager SetupInformation on Basic Web Host Manager Setup
Information on Basic Web Host Manager SetupHTS Hosting
 
Virtual Hosts Configuration with Weblogic Server
Virtual Hosts Configuration with Weblogic ServerVirtual Hosts Configuration with Weblogic Server
Virtual Hosts Configuration with Weblogic ServerPawan Kumar
 
Common Errors in cPanel and WHM
Common Errors in cPanel and WHMCommon Errors in cPanel and WHM
Common Errors in cPanel and WHMHTS Hosting
 
What is cPanel and how is it used.pdf
What is cPanel and how is it used.pdfWhat is cPanel and how is it used.pdf
What is cPanel and how is it used.pdfJames Brown
 
Basic Web Host Manager Setup
Basic Web Host Manager SetupBasic Web Host Manager Setup
Basic Web Host Manager SetupHTS Hosting
 
How to Transfer Magento Project from One Server to another Server
How to Transfer Magento Project from One Server to another ServerHow to Transfer Magento Project from One Server to another Server
How to Transfer Magento Project from One Server to another ServerKaushal Mewar
 
How to reset the lost weblogic admin user passwd
How to reset the lost weblogic admin user passwdHow to reset the lost weblogic admin user passwd
How to reset the lost weblogic admin user passwdRavi Kumar Lanke
 
cPanel: Information about Useful Terms
cPanel: Information about Useful Terms cPanel: Information about Useful Terms
cPanel: Information about Useful Terms HTS Hosting
 
How to Export Exchange 2016/13/10 Mailbox to Outlook PST File
How to Export Exchange 2016/13/10 Mailbox to Outlook PST FileHow to Export Exchange 2016/13/10 Mailbox to Outlook PST File
How to Export Exchange 2016/13/10 Mailbox to Outlook PST FileTej Pratap Shukla ~Dexter
 
Exchange outlook2007setup
Exchange outlook2007setupExchange outlook2007setup
Exchange outlook2007setupthexyz
 
Exchange Outlook 2007 Setup
Exchange Outlook 2007 SetupExchange Outlook 2007 Setup
Exchange Outlook 2007 Setupthexyz
 
Drupal Deployment Troubles and Problems
Drupal Deployment Troubles and ProblemsDrupal Deployment Troubles and Problems
Drupal Deployment Troubles and ProblemsAndrii Lundiak
 
Sharing Multiple IP Addresses
Sharing Multiple IP AddressesSharing Multiple IP Addresses
Sharing Multiple IP AddressesHTS Hosting
 
The Password & Security Interface of cPanel
The Password & Security Interface of cPanelThe Password & Security Interface of cPanel
The Password & Security Interface of cPanelHTS Hosting
 
Important Terms that are Encountered Frequently by cPanel Users
Important Terms that are Encountered Frequently by cPanel UsersImportant Terms that are Encountered Frequently by cPanel Users
Important Terms that are Encountered Frequently by cPanel UsersHTS Hosting
 

Similar to Copying Addon Domains to a New Account (20)

Penguin recovery
Penguin recoveryPenguin recovery
Penguin recovery
 
How to Migrate IIS Website to Another Server.pdf
How to Migrate IIS Website to Another Server.pdfHow to Migrate IIS Website to Another Server.pdf
How to Migrate IIS Website to Another Server.pdf
 
Unlocking the Full Potential of Your Website with cPanel Web Hosting
Unlocking the Full Potential of Your Website with cPanel Web HostingUnlocking the Full Potential of Your Website with cPanel Web Hosting
Unlocking the Full Potential of Your Website with cPanel Web Hosting
 
Information on Basic Web Host Manager Setup
Information on Basic Web Host Manager SetupInformation on Basic Web Host Manager Setup
Information on Basic Web Host Manager Setup
 
Virtual Hosts Configuration with Weblogic Server
Virtual Hosts Configuration with Weblogic ServerVirtual Hosts Configuration with Weblogic Server
Virtual Hosts Configuration with Weblogic Server
 
Common Errors in cPanel and WHM
Common Errors in cPanel and WHMCommon Errors in cPanel and WHM
Common Errors in cPanel and WHM
 
What is cPanel and how is it used.pdf
What is cPanel and how is it used.pdfWhat is cPanel and how is it used.pdf
What is cPanel and how is it used.pdf
 
Basic Web Host Manager Setup
Basic Web Host Manager SetupBasic Web Host Manager Setup
Basic Web Host Manager Setup
 
How to Transfer Magento Project from One Server to another Server
How to Transfer Magento Project from One Server to another ServerHow to Transfer Magento Project from One Server to another Server
How to Transfer Magento Project from One Server to another Server
 
How to reset the lost weblogic admin user passwd
How to reset the lost weblogic admin user passwdHow to reset the lost weblogic admin user passwd
How to reset the lost weblogic admin user passwd
 
cPanel: Information about Useful Terms
cPanel: Information about Useful Terms cPanel: Information about Useful Terms
cPanel: Information about Useful Terms
 
Microsoft Lync Server 2010 Installation
Microsoft Lync Server 2010 InstallationMicrosoft Lync Server 2010 Installation
Microsoft Lync Server 2010 Installation
 
How to Export Exchange 2016/13/10 Mailbox to Outlook PST File
How to Export Exchange 2016/13/10 Mailbox to Outlook PST FileHow to Export Exchange 2016/13/10 Mailbox to Outlook PST File
How to Export Exchange 2016/13/10 Mailbox to Outlook PST File
 
Exchange outlook2007setup
Exchange outlook2007setupExchange outlook2007setup
Exchange outlook2007setup
 
Exchange Outlook 2007 Setup
Exchange Outlook 2007 SetupExchange Outlook 2007 Setup
Exchange Outlook 2007 Setup
 
Dc kyiv2010 jun_08
Dc kyiv2010 jun_08Dc kyiv2010 jun_08
Dc kyiv2010 jun_08
 
Drupal Deployment Troubles and Problems
Drupal Deployment Troubles and ProblemsDrupal Deployment Troubles and Problems
Drupal Deployment Troubles and Problems
 
Sharing Multiple IP Addresses
Sharing Multiple IP AddressesSharing Multiple IP Addresses
Sharing Multiple IP Addresses
 
The Password & Security Interface of cPanel
The Password & Security Interface of cPanelThe Password & Security Interface of cPanel
The Password & Security Interface of cPanel
 
Important Terms that are Encountered Frequently by cPanel Users
Important Terms that are Encountered Frequently by cPanel UsersImportant Terms that are Encountered Frequently by cPanel Users
Important Terms that are Encountered Frequently by cPanel Users
 

More from HTS Hosting

Web Hosting and WordPress Hosting
Web Hosting and WordPress HostingWeb Hosting and WordPress Hosting
Web Hosting and WordPress HostingHTS Hosting
 
Availing Windows Dedicated Servers of HTS Hosting
Availing Windows Dedicated Servers of HTS HostingAvailing Windows Dedicated Servers of HTS Hosting
Availing Windows Dedicated Servers of HTS HostingHTS Hosting
 
HTS Dedicated Servers
HTS Dedicated ServersHTS Dedicated Servers
HTS Dedicated ServersHTS Hosting
 
Linux Dedicated Server Plans
Linux Dedicated Server PlansLinux Dedicated Server Plans
Linux Dedicated Server PlansHTS Hosting
 
HTS Dedicated Servers
HTS Dedicated ServersHTS Dedicated Servers
HTS Dedicated ServersHTS Hosting
 
Common Web Hosting Solutions
Common Web Hosting SolutionsCommon Web Hosting Solutions
Common Web Hosting SolutionsHTS Hosting
 
Essential Features in Web Hosting Plans
Essential Features in Web Hosting PlansEssential Features in Web Hosting Plans
Essential Features in Web Hosting PlansHTS Hosting
 
Difference Between Managed VPS Hosting Self-Managed VPS Hosting
Difference Between Managed VPS Hosting Self-Managed VPS HostingDifference Between Managed VPS Hosting Self-Managed VPS Hosting
Difference Between Managed VPS Hosting Self-Managed VPS HostingHTS Hosting
 
Web Hosting, Web Servers, Web Hosts and More
Web Hosting, Web Servers, Web Hosts and MoreWeb Hosting, Web Servers, Web Hosts and More
Web Hosting, Web Servers, Web Hosts and MoreHTS Hosting
 
Know about Hosting a Business Website
Know about Hosting a Business WebsiteKnow about Hosting a Business Website
Know about Hosting a Business WebsiteHTS Hosting
 
Web Hosting Terms
Web Hosting TermsWeb Hosting Terms
Web Hosting TermsHTS Hosting
 
Reseller Hosting and Dedicated Web Servers
Reseller Hosting and Dedicated Web ServersReseller Hosting and Dedicated Web Servers
Reseller Hosting and Dedicated Web ServersHTS Hosting
 
Reseller Hosting and Managed VPS Hosting
Reseller Hosting and Managed VPS HostingReseller Hosting and Managed VPS Hosting
Reseller Hosting and Managed VPS HostingHTS Hosting
 
Backup Tarball Contents
Backup Tarball ContentsBackup Tarball Contents
Backup Tarball ContentsHTS Hosting
 
VPS and Dedicated Servers
VPS and Dedicated ServersVPS and Dedicated Servers
VPS and Dedicated ServersHTS Hosting
 
Best WordPress Hosting Plans
Best WordPress Hosting Plans Best WordPress Hosting Plans
Best WordPress Hosting Plans HTS Hosting
 
Best Linux Dedicated Hosting Plans
Best Linux Dedicated Hosting PlansBest Linux Dedicated Hosting Plans
Best Linux Dedicated Hosting PlansHTS Hosting
 
Different Types of Web Hosting Services
Different Types of Web Hosting ServicesDifferent Types of Web Hosting Services
Different Types of Web Hosting ServicesHTS Hosting
 
Linux Dedicated Hosting and Windows Dedicated Hosting
Linux Dedicated Hosting and Windows Dedicated HostingLinux Dedicated Hosting and Windows Dedicated Hosting
Linux Dedicated Hosting and Windows Dedicated HostingHTS Hosting
 

More from HTS Hosting (20)

Web Hosting and WordPress Hosting
Web Hosting and WordPress HostingWeb Hosting and WordPress Hosting
Web Hosting and WordPress Hosting
 
Availing Windows Dedicated Servers of HTS Hosting
Availing Windows Dedicated Servers of HTS HostingAvailing Windows Dedicated Servers of HTS Hosting
Availing Windows Dedicated Servers of HTS Hosting
 
HTS Dedicated Servers
HTS Dedicated ServersHTS Dedicated Servers
HTS Dedicated Servers
 
Linux Dedicated Server Plans
Linux Dedicated Server PlansLinux Dedicated Server Plans
Linux Dedicated Server Plans
 
HTS Dedicated Servers
HTS Dedicated ServersHTS Dedicated Servers
HTS Dedicated Servers
 
Common Web Hosting Solutions
Common Web Hosting SolutionsCommon Web Hosting Solutions
Common Web Hosting Solutions
 
Essential Features in Web Hosting Plans
Essential Features in Web Hosting PlansEssential Features in Web Hosting Plans
Essential Features in Web Hosting Plans
 
VPS Hosting
VPS HostingVPS Hosting
VPS Hosting
 
Difference Between Managed VPS Hosting Self-Managed VPS Hosting
Difference Between Managed VPS Hosting Self-Managed VPS HostingDifference Between Managed VPS Hosting Self-Managed VPS Hosting
Difference Between Managed VPS Hosting Self-Managed VPS Hosting
 
Web Hosting, Web Servers, Web Hosts and More
Web Hosting, Web Servers, Web Hosts and MoreWeb Hosting, Web Servers, Web Hosts and More
Web Hosting, Web Servers, Web Hosts and More
 
Know about Hosting a Business Website
Know about Hosting a Business WebsiteKnow about Hosting a Business Website
Know about Hosting a Business Website
 
Web Hosting Terms
Web Hosting TermsWeb Hosting Terms
Web Hosting Terms
 
Reseller Hosting and Dedicated Web Servers
Reseller Hosting and Dedicated Web ServersReseller Hosting and Dedicated Web Servers
Reseller Hosting and Dedicated Web Servers
 
Reseller Hosting and Managed VPS Hosting
Reseller Hosting and Managed VPS HostingReseller Hosting and Managed VPS Hosting
Reseller Hosting and Managed VPS Hosting
 
Backup Tarball Contents
Backup Tarball ContentsBackup Tarball Contents
Backup Tarball Contents
 
VPS and Dedicated Servers
VPS and Dedicated ServersVPS and Dedicated Servers
VPS and Dedicated Servers
 
Best WordPress Hosting Plans
Best WordPress Hosting Plans Best WordPress Hosting Plans
Best WordPress Hosting Plans
 
Best Linux Dedicated Hosting Plans
Best Linux Dedicated Hosting PlansBest Linux Dedicated Hosting Plans
Best Linux Dedicated Hosting Plans
 
Different Types of Web Hosting Services
Different Types of Web Hosting ServicesDifferent Types of Web Hosting Services
Different Types of Web Hosting Services
 
Linux Dedicated Hosting and Windows Dedicated Hosting
Linux Dedicated Hosting and Windows Dedicated HostingLinux Dedicated Hosting and Windows Dedicated Hosting
Linux Dedicated Hosting and Windows Dedicated Hosting
 

Recently uploaded

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 

Recently uploaded (20)

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 

Copying Addon Domains to a New Account

  • 1. Copying Addon Domains to a New Account
  • 2. Table of Contents 2 Introduction Example Values Create a Backup File Create a New Account Extract the Backup File Extract the Backup File (Continued) Import the Databases Update Cron Job Paths Change File Ownership Confirm the Functioning of the Account Remove the Addon Domain Change the Placeholder Domain’s Name Copy Over Email Account Information Change the Ownership of Files Log in Confirmation
  • 3.  Once you have created an addon domain, an entirely new account can be created from that addon domain. For this purpose, the information from the addon domain needs to be copied and added to a newly-created account.  The following slides will run you through the steps involved in copying addon domains to a new account.The information that has been provided here is valid for only version 54 and the earlier versions of cPanel & WHM.The Convert Addon Domain to Account interface of WHM needs to be used for cPanel & WHM version 56 and later.  WHM >> Home >>Transfers >> Convert Addon Domain to Account  It needs to be mentioned here that only the root user or those resellers, who have root-level privileges, will be able to carry out this action, as it requires moving files. 3 Introduction
  • 4. The below-mentioned example values are used in the information contained in the following slides.  username – It represents the account’s user.  newusername – It represents the new account’s user.  addonname – It represents the addon domain’s name.  addondirectory – It represents the addon domain’s directory.  To digress, the facility to register and transfer domains is provided by many web hosting companies, such as HTS Hosting. HTS Hosting has been consistently referred to as the “Best Web Hosting Company”, the “Best Cloud Hosting Company”, etc. due to the high quality of service offered by it at affordable prices. 4 ExampleValues
  • 5.  Carry out full backup of the account which contains the addon domain. Use the Backups interface of cPanel (cPanel >> Home >> Files >> Backups) for this purpose, or run the following script: /usr/local/cpanel/scripts/pkgacct 5 Create a Backup File
  • 6. 6 1-800-123 -8156 Whoa!That’s a big number, aren’t you proud?
  • 7.  Create a new account that has a placeholder name in the Create a New Account interface in WHM.  WHM >> Home >> Account Functions >> Create a New Account  It needs to be mentioned here that you should not use the name of the addon domain as the new account name. 7 Create a New Account
  • 8. The below-mentioned steps need to be performed to extract the backup file. 1. Create the /home/backup-username directory by running the following commands:  mkdir /home/backup-username  mv cpmove-username.tar.gz /home/backup-username/ ! Then move the backup file into it.  Navigate to the /home/backup-username directory by running the following commands:  tar -xzf cpmove-username.tar.gz  cp /home/backup-username Then the backup needs to be uncompressed. It needs to be mentioned here that the above-mentioned commands extract the contents of the backup file to either the cpmove-username or username directories. 8 Extract the Backup File
  • 9.  Run the following command:  cp -R homedir/public_html/addondirectory/* /home/newusername/public_html/  This command adds the homedir/public_html/addondirectory/ subdirectory to the /home/backup- username/public_html/ directory. 9 Extract the Backup File (Continued)
  • 10. Carry out the following steps to import the databases:  Recreate the databases of the addon domain and create the database users in the MySQL Databases interface in cPanel.  cPanel >> Home >> Databases >> MySQL Databases Prepend newusername to the databases at the time when you create them. An example of this is when you create the newusername_dbname file. In it, dbname represents the name of the database.  Import the database backups of each domain, after creating the databases and database users. For this purpose, you need to run the below-mentioned command for each backup. mysql newaccount_dbname < /home/backup-username/username/mysql/username_dbname.sql 10 Import the Databases
  • 11. You need to carry out the following steps for updating the new account’s cron paths:  Open the /home/backup-username/username/cron/username file. Then check for the cron jobs of the addon domain.  Add the paths for the cron jobs of the addon domain to the new account in the Cron Jobs interface in cPanel. cPanel >> Home >> Advanced >> Cron Jobs You need to ensure that the paths of the cron jobs match the paths of the new account to the same cron jobs files. 11 Update Cron Job Paths
  • 12.  The chown command needs to be used in order to grant ownership of the copied public_html files to the newusername user.  find /home/newusername/public_html -uid 0 -exec chown newusername:newusername {} + 12 Change File Ownership
  • 13.  You must confirm that the account functions properly after any change in the ownership of the files.To ensure this, you have to point the hosts file of your operating system to the temporary domain placeholder. 13 Confirm the Functioning of the Account
  • 14.  Remove the addon domain of the old account in the Addon Domains interface in cPanel. cPanel >> Home >> Domains >> Addon Domains 14 Remove the Addon Domain
  • 15.  Navigate to the Modify an Account interface in WHM. WHM >> Home >> Accounts >> Modify an Account  Next, change the main domain name of the new account to the name of the addon domain. 15 Change the Placeholder Domain’s Name
  • 16. Change the domain name.After that, copy the emails, forwarders, autoresponders, and filters of the old account to the new account. For that purpose, you need to open the /home/backup-username/username directory and then run the following commands:  cp va/addonname /etc/valiases/  cp vf/addonname /etc/vfilters/  cp homedir/.autorespond/*addonname* /home/newusername/.autorespond/  cp -R homedir/etc/addonname /home/newusername/etc/  cp -R homedir/mail/addonname /home/newusername/mail/ 16 Copy Over Email Account Information
  • 17.  Once you have copied the emails, filters, forwarders and autoresponders, you need to change the ownership of those files to the new user.You should run the following commands to attain that:  chown newusername:mail /etc/valiases/addonname  chown newusername:mail /etc/vfilters/addonname  chown newusername:newusername /home/newusername/.autorespond/*addonname*  find /home/newusername/etc -uid 0 -exec chown newusername:mail {} +  find /home/newusername/mail -uid 0 -exec chown newusername:mail {} + You should append asterisks ( * ) on either side of addonname to ensure that it keeps the wildcards. 17 Change the Ownership of Files
  • 18.  You need to confirm that you can log in to the Webmail account of the user after you have changed the files’ ownership.  Navigate to the /home/newusername/etc/addonname directory and find the users as well as the email passwords for authentication to Webmail, IMAP, and POP3. 18 Log in Confirmation