How to setup DNS records for webmail of my domain in digital ocean? - cpanel

I moved to Digital ocean droplets as a hosting provider for my site a few months ago. Earlier I was using shared hosting. What DNS entry I should do in droplet settings to make sure that webmail.mydomain.com points to older shared hosting where I have set up my webmail in CPanel and Roundcube client.
Currently, my name server is set up on quik.CDN and Droplet as hosting for the main domain.

Related

How to move a website from shared hosting to VPS?

Because of resource and performance problems I want to move my website from Shared hosting to VPS. In this process, I also want to migrate from PHP 5.6 to PHP 7.4. Therefore I need to re-code the PHP scripts. So I need time for my own on the new Plesk server to get things done.
I have the next steps in mind:
Create the webspace with the domain name on Plesk.
Upload the sources and database to the VPS.
Install an SSL certificate on the new site.
Add the domain name to the hosts file.
Re-code and test the new site.
Change the DNS to the new IPs.
There is a deadlock situation, however.
I can not issue a new SSL certificate without changing the DNS.
I can not migrate and test the site without an SSL certificate.
Of course, this is done before by many developers, but how it's done?
Does anyone know? And which other problems can I expect?
Purchase a wildcard certificate or create one by letsencrypt
And use a subdomain like test.yourdomaine
And point it to your reverse proxy vps new ip

Migrating servers: 2 Let's Encrypt SSL certificates for the same domainname on 2 different servers

I'm migrating servers, moving my sites from VPS A to VPS B. I use Let's Encrypt for all of my 10 website's SSL certificates. Before I start this migration process I need to know issues that I might be running into.
I have used win-acme to create certificates for ALL of my 10 websites on VPS A.
I want to test migrating 1 site, let's call this site X, to VPS B first.
Then after I copied all data for site X from VPS A to VPS B, I want to generate the SSL certificate and change my DNS settings so site X no longer points to VPS A, but to VPS B.
My question is: when I run win-acme on VPS B and generate a new SSL certificate for site X, can I have 2 SSL certificates for the same domain name that were generated for 2 different servers? Or will Let's Encrypt invalidate one of them?
Hopefully my question is clear, any context/further info is highly appreciated!
Already checked here and here.
Let's encrypt uses the ACME protocol the default verification method is based on the server being able to respond to a specific http request (which is only possible if the IP matches).
It is however possible to use DNS certification, win acme has a plugin to do dns verification. I have no experience with win acme, but with certbot DNS verification is automated for some dns providers and requires manual steps for other dns providers.
With DNS verification it's possible that you have a certificate for a domain on multiple servers. With the regular verification it isn't possible.
You could copy the cert to the other server.
Test it by adding you local dns with the new server ip for the domain you have to test.
The copy steps depend on the system you are using.
https://community.letsencrypt.org/t/move-to-another-server/77985

How to migrate a sub-domain from a shared hosting cpanel to a VPS cpanel

My shared hosting structure is as such that allows we to host up to 5 domain under same account which turns out to be as:
/home/MainDomain/public_html/domian1/
/home/MainDomain/public_html/domian2/
/home/MainDomain/public_html/domian3/
etc...
I want to migrate domain1 to a newly purchased VPS hosting company which they have provided me with WHM/cpanel.
If I use the Backup utility from the old shared hosting, it will backup everything (meaning other domains too).
My question is how do I migrate domain1 with all its DBs, cron jobs, and emails to my new VPS account.
Thank you.
There is a functionality in WHM (WHM 64+ versions I believe) that allows you to to convert an addon domain inside a cPanel account into an invidiual cPanel account.
Since you have multiple domains on the same account and I suppose you have websites for those domains as well, then those domains are added as "addon domains" into your cPanel account. So use that WHM convertor tool, convert the desired domain from that cPanel account as a new invidiual cPanel account.
Then create a full cPanel backup for that account. You can do that either from the cPanel web interface or command line (ssh shell). Once you have the full backup file you can copy it to the new server and restore it from the command line or you can use the WHM transfer tool to transfer the cPanel account from one server to another.

Backup cpanel account with SSL

I have a live server which has cPanel installed on it. It is hosting a website with a SSL certificate that got installed in Cpanel for the cpanel-user hosting the domain.
I now downloaded a backup of this cpanel account to my dev server (and restored it in WHM, dev server is using cpanel too) for testing purposes, however I have a question regarding the SSL:
Does the SSL certificate get copied when the cpanel account gets backed-up?
After changing my host file i am still able to see the website using SSL (even though its on the dev server and there was not a certificate installed). My understanding was that the SSL is specific for each server, because the CSR is done on the server the certificate should run on.
Why am I able to access both live and dev using https?
Yes, SSL certificate will be migrate When you migrate OR restore your account through cPanel/WHM tool.

Hosting my own website via XAMPP?

Basically what I am trying to understand is if I purchase a domain called www.example.com, can I somehow create the website for that domain and host it through my own computer via XAMPP? Or do I need to purchase hosting from some where else such as HostGator?
If you want to host on your computer:
Have an IP Public
Setting your server : use Linux (Cent OS, Red Hat, etc) or Windows server
And other configuration
Recomended to buy a service on hosting service, like Hostgator, hostmonster, bluehost, or etc.
you will get instant and no need to setting.