Connecting your domain to MainVPS hosting is a crucial step to get your website online. This guide will walk you through the entire process, starting from purchasing a hosting plan with MainVPS, adding your domain in cPanel, and pointing your domain to the hosting account. With detailed instructions, troubleshooting tips, and answers to common questions, you’ll have your website live in no time.
Step 1: Purchase a Hosting Plan from MainVPS
Before connecting your domain, you need to have a hosting account. Here’s how to get started:
- Visit MainVPS
Navigate to the MainVPS website and explore the available hosting plans (Shared, VPS, or Dedicated Hosting). - Select the Right Plan
Choose a plan that suits your website needs. For smaller websites, shared hosting is ideal, while larger sites might require VPS or dedicated servers. - Create an Account
Sign up for an account and provide your details, including email and payment information. - Receive a Welcome Email
Once the purchase is complete, MainVPS will send you a welcome email containing your account details, including your DNS nameservers (important for later steps).
Step 2: Add Your Domain in MainVPS cPanel
Once you have a hosting account, add your domain to the cPanel. This step ensures that the hosting server recognizes your domain.
- Log In to cPanel
Access your cPanel account using the credentials provided in your welcome email.
- Navigate to the Domains Section
In cPanel, locate the Domains section and click on Addon Domains or Domains, depending on your account type.
- Add Your Domain
- Enter your domain name (e.g., www.example.com).
- Specify the directory where your website files will be stored.
- Create a password for the domain if prompted.
- Click Add Domain or Submit to save the changes.
- Verify Domain Setup
Once added, your domain will appear in the domain list of your cPanel.
Step 3: Update Your Domain’s Nameservers
Now, it’s time to point your domain to the MainVPS hosting server.
- Access Your Domain Registrar
Log in to the account where your domain is registered (e.g., GoDaddy, Namecheap, Google Domains). - Locate DNS/Nameserver Settings
Navigate to the DNS Management or Nameservers section. - Change Nameservers
Replace the default nameservers with the ones provided in your MainVPS welcome email. For example:- Primary DNS: ns1.mainvps.pro
- Secondary DNS: ns2.mainvps.pro
- Save Changes
Double-check your entries for accuracy and click Save or Update Nameservers.
Step 4: Wait for DNS Propagation
DNS propagation refers to the time it takes for your updated nameservers to be recognized across the internet. This process usually takes 24–48 hours, though it can be faster in some cases.
- What to Expect: During propagation, your domain may resolve intermittently to the MainVPS server.
- Tools to Check Propagation: Use tools like DNS Checker to monitor the status of your nameserver updates.
Step 5: Upload Your Website Files
Once propagation is complete, you can upload your website files to the hosting server.
- Log in to cPanel
Access the File Manager section in your cPanel. - Navigate to the Root Directory
Open the directory associated with your domain (usually public_html or the folder specified during domain setup). - Upload Files
Use the upload feature to add your website files or install a CMS like WordPress using the one-click installer in cPanel.
Step 6: Test Your Website
Verify that your domain is live and pointing correctly to MainVPS hosting.
- Visit Your Domain: Open your domain (e.g., www.example.com) in a browser to check if your website is displayed.
- Use DNS Tools: Use tools like WhatsMyDNS to ensure global DNS updates are correct.
Troubleshooting Common Issues
- Website Not Loading: Double-check your nameserver entries and ensure the domain is added in cPanel.
- DNS Propagation Delays: Wait for up to 48 hours for global updates.
- Mixed DNS Records: Make sure to use only the latest DNS details from your MainVPS email.
FAQs
1. What if my domain registrar is not MainVPS?
You can connect domains registered with any registrar to MainVPS by updating the DNS settings.
2. What happens if I enter the wrong DNS details?
Your domain won’t connect to the hosting server, and your website won’t load. Double-check DNS entries to avoid errors.
3. Can I use MainVPS hosting for multiple domains?
Yes, most MainVPS hosting plans allow you to host multiple domains. Add each domain in cPanel and update their DNS settings.
4. What if I don’t see my website after 48 hours?
Clear your browser cache or contact MainVPS support for assistance.
5. Does MainVPS help with domain pointing?
Yes, MainVPS offers 24/7 support to help you with domain pointing and other hosting-related issues.
6. What are the Nameservers of MainVPS?
The nameservers for MainVPS are as follows:
- NameServer1: ns1.mainvps.pro
- NameServer2: ns2.mainvps.pro
For added accuracy or double-checking, refer to the welcome email you received from MainVPS after purchasing your hosting plan. This email contains your specific DNS details and other essential account information. If you have any doubts or need further assistance, you can also contact MainVPS support.
Key Tips for a Smooth Setup
- Backup Existing DNS Settings: Always save your current settings before making changes.
- Clear Your Browser Cache: This ensures you’re seeing the latest version of your website.
- Use DNS Propagation Checkers: Tools like DNS Checker can confirm updates globally.
Conclusion
Pointing your domain to MainVPS hosting is a simple yet crucial step in making your website live. By following this guide, you’ll ensure a smooth and hassle-free setup. Should you encounter any issues, the MainVPS support team is always ready to assist.
Ready to take your website live? Visit MainVPS and start building your online presence today!