Need help setting up domain on CWP panel. I currently have domain setup through DO

November 10, 2019 201 views
CentOS

Hello, I am very new to using VPS. I am trying to move away from shared hosting. But I admit I do not know much about setting it up but I am willing to learn.

I purchased a domain from Namecheap and I pointed my NS to the DO Nameservers. Here is where I am stuck. I want to create a website and host it using CentOS but I am not sure how to setup the Nameservers to host the site.

Do I need the domain to point to Digital Ocean? Or create a domain in CWP using the .com I purchased on Namecheap?

5 Answers

Hello!

Since DigitalOcean is acting as your domain’s authoritative nameservers, the next step will be to create DNS records in your DigitalOcean account to direct traffic to your Droplet’s IP address for your domain.

There are a few guides that should help with this:

How to Add Domains
https://www.digitalocean.com/docs/networking/dns/how-to/add-domains/

How to Create DNS Records
https://www.digitalocean.com/docs/networking/dns/how-to/manage-records/#a-records

I’m not familiar with CentOS Web Panel (CWP) however I found their installation documentation here: http://centos-webpanel.com/installation-instructions

I recommend ensuring that you have enough system resources required by the web panel to properly function along with your operating system and any other applications like a webserver or database. Web panels often make system administration tasks easier however they do require more CPU and RAM to run!

Here are a few other articles for getting started:

Choosing the Right Droplet Plan
https://www.digitalocean.com/docs/droplets/resources/choose-plan/

Droplet How-Tos
https://www.digitalocean.com/docs/droplets/how-to/

I hope this helps!

Thank you so much for this! Right now I just have the 5 dollar plan. Right now I have 3 sites I would like to add, what do you recommend?

So when I use the web panel and I create a domain, do I need to create a custom nameserver in it or can I use the DO one?

No problem!

Hmm so the CWP installation guide recommends the following hardware requirements:

32 bit operating systems require a minimum of 512 MB RAM
64 bit operating systems require a minimum of 1024 MB RAM (recommended)
Recommended System: 4 GB+ RAM so you would have the full functionality such as Anti-virus scan of emails.

The $5 Droplet is going to struggle to run your webserver for your sites and the web panel.

The decision is entirely up to you, but I think you should either use a Droplet with more resources to use the web panel OR go without the web panel and manage the sites through command line if you’re comfortable with this.

There are some excellent guides for getting started, and some other guides which will help if you have existing data that you need to migrate:

How To Install the Apache Web Server on CentOS 7
https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-centos-7

How To Secure Apache with Let’s Encrypt on CentOS 7
https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-centos-7

How To Use Rsync to Sync Local and Remote Directories on a VPS
https://www.digitalocean.com/community/tutorials/how-to-use-rsync-to-sync-local-and-remote-directories-on-a-vps

How To Create An Off-Site Backup Of Your Site With Rsync On Centos 6
https://www.digitalocean.com/community/tutorials/how-to-create-an-off-site-backup-of-your-site-with-rsync-on-centos-6

Initial Server Setup with CentOS 7
https://www.digitalocean.com/community/tutorials/initial-server-setup-with-centos-7

And because you are the only person on your VPS and you have full root access, I highly recommend this article for keeping your Droplet secure:

7 Security Measures to Protect Your Servers
https://www.digitalocean.com/community/tutorials/7-security-measures-to-protect-your-servers

DigitalOcean is an infrastructure provider, so while the datacenters are kept secured your Droplet’s security is not managed and will be your responsibility. There are some bad people out there so be safe!

by zlađurić
This article provides a quick way to backup the most common things in a typical web hosting scenario: website files and database data. We will setup a full daily backup of a website folder and a copying of this data to a remote server (this can also work for another VPS). We will also set up a rsync example to just copy the incremental changes. Finally, we'll set up backup of a MySQL database.

I got it working, but have another question. I have a domain I purchased to use for my website and I used that to create an account in CWP but when I get to add a domain, I am stuck. When I add by purchased domain again it says it is already there. Do I need to have two domain names?

Have another answer? Share your knowledge.