SlideShare una empresa de Scribd logo
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

Más contenido relacionado

Similar a Copying Addon Domains to a New Account

Penguin recovery
Penguin recoveryPenguin recovery
Penguin recovery
Keith Baxter
 
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
Host 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 Hosting
yabhishek8795
 
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
HTS Hosting
 
Virtual Hosts Configuration with Weblogic Server
Virtual Hosts Configuration with Weblogic ServerVirtual Hosts Configuration with Weblogic Server
Virtual Hosts Configuration with Weblogic Server
Pawan Kumar
 
Common Errors in cPanel and WHM
Common Errors in cPanel and WHMCommon Errors in cPanel and WHM
Common Errors in cPanel and WHM
HTS 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.pdf
James Brown
 
Basic Web Host Manager Setup
Basic Web Host Manager SetupBasic Web Host Manager Setup
Basic Web Host Manager Setup
HTS 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 Server
Kaushal 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 passwd
Ravi Kumar Lanke
 
cPanel: Information about Useful Terms
cPanel: Information about Useful Terms cPanel: Information about Useful Terms
cPanel: Information about Useful Terms
HTS Hosting
 
Microsoft Lync Server 2010 Installation
Microsoft Lync Server 2010 InstallationMicrosoft Lync Server 2010 Installation
Microsoft Lync Server 2010 Installation
Shahab Al Yamin Chawdhury
 
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
Tej Pratap Shukla ~Dexter
 
Exchange outlook2007setup
Exchange outlook2007setupExchange outlook2007setup
Exchange outlook2007setup
thexyz
 
Exchange Outlook 2007 Setup
Exchange Outlook 2007 SetupExchange Outlook 2007 Setup
Exchange Outlook 2007 Setup
thexyz
 
Dc kyiv2010 jun_08
Dc kyiv2010 jun_08Dc kyiv2010 jun_08
Dc kyiv2010 jun_08
Andrii Podanenko
 
Drupal Deployment Troubles and Problems
Drupal Deployment Troubles and ProblemsDrupal Deployment Troubles and Problems
Drupal Deployment Troubles and Problems
Andrii Lundiak
 
Sharing Multiple IP Addresses
Sharing Multiple IP AddressesSharing Multiple IP Addresses
Sharing Multiple IP Addresses
HTS Hosting
 
The Password & Security Interface of cPanel
The Password & Security Interface of cPanelThe Password & Security Interface of cPanel
The Password & Security Interface of cPanel
HTS 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 Users
HTS Hosting
 

Similar a 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
 

Más de HTS Hosting

Web Hosting and WordPress Hosting
Web Hosting and WordPress HostingWeb Hosting and WordPress Hosting
Web Hosting and WordPress Hosting
HTS 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 Hosting
 
HTS Dedicated Servers
HTS Dedicated ServersHTS Dedicated Servers
HTS Dedicated Servers
HTS Hosting
 
Linux Dedicated Server Plans
Linux Dedicated Server PlansLinux Dedicated Server Plans
Linux Dedicated Server Plans
HTS Hosting
 
HTS Dedicated Servers
HTS Dedicated ServersHTS Dedicated Servers
HTS Dedicated Servers
HTS Hosting
 
Common Web Hosting Solutions
Common Web Hosting SolutionsCommon Web Hosting Solutions
Common Web Hosting Solutions
HTS Hosting
 
Essential Features in Web Hosting Plans
Essential Features in Web Hosting PlansEssential Features in Web Hosting Plans
Essential Features in Web Hosting Plans
HTS Hosting
 
VPS Hosting
VPS HostingVPS Hosting
VPS Hosting
HTS 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
HTS 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
HTS Hosting
 
Know about Hosting a Business Website
Know about Hosting a Business WebsiteKnow about Hosting a Business Website
Know about Hosting a Business Website
HTS Hosting
 
Web Hosting Terms
Web Hosting TermsWeb Hosting Terms
Web Hosting Terms
HTS Hosting
 
Reseller Hosting and Dedicated Web Servers
Reseller Hosting and Dedicated Web ServersReseller Hosting and Dedicated Web Servers
Reseller Hosting and Dedicated Web Servers
HTS Hosting
 
Reseller Hosting and Managed VPS Hosting
Reseller Hosting and Managed VPS HostingReseller Hosting and Managed VPS Hosting
Reseller Hosting and Managed VPS Hosting
HTS Hosting
 
Backup Tarball Contents
Backup Tarball ContentsBackup Tarball Contents
Backup Tarball Contents
HTS Hosting
 
VPS and Dedicated Servers
VPS and Dedicated ServersVPS and Dedicated Servers
VPS and Dedicated Servers
HTS 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 Plans
HTS Hosting
 
Different Types of Web Hosting Services
Different Types of Web Hosting ServicesDifferent Types of Web Hosting Services
Different Types of Web Hosting Services
HTS 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 Hosting
HTS Hosting
 

Más de 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
 

Último

GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
Jakub Marek
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
AWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptxAWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptx
HarisZaheer8
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Wask
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
Operating System Used by Users in day-to-day life.pptx
Operating System Used by Users in day-to-day life.pptxOperating System Used by Users in day-to-day life.pptx
Operating System Used by Users in day-to-day life.pptx
Pravash Chandra Das
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Alpen-Adria-Universität
 
Deep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStr
Deep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStrDeep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStr
Deep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStr
saastr
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
kumardaparthi1024
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
Hiroshi SHIBATA
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
DanBrown980551
 
Azure API Management to expose backend services securely
Azure API Management to expose backend services securelyAzure API Management to expose backend services securely
Azure API Management to expose backend services securely
Dinusha Kumarasiri
 
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdfNunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
flufftailshop
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
Wouter Lemaire
 

Último (20)

GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
AWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptxAWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptx
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
Operating System Used by Users in day-to-day life.pptx
Operating System Used by Users in day-to-day life.pptxOperating System Used by Users in day-to-day life.pptx
Operating System Used by Users in day-to-day life.pptx
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
 
Deep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStr
Deep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStrDeep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStr
Deep Dive: Getting Funded with Jason Jason Lemkin Founder & CEO @ SaaStr
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
 
Azure API Management to expose backend services securely
Azure API Management to expose backend services securelyAzure API Management to expose backend services securely
Azure API Management to expose backend services securely
 
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdfNunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
 

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