Configure new domain in cwp
Here's a step-by-step guide on how to configure a new domain in cPanel Web Panel (CWP):
Prerequisites:
- You have a CWP account with a valid license.
- You have a domain name registered with a registrar (e.g., GoDaddy, Namecheap, etc.).
- You have a valid DNS setup for your domain (e.g., A records, MX records, etc.).
Step 1: Log in to CWP
- Open a web browser and navigate to your CWP login page (e.g.,
https://yourdomain.com:2087
). - Enter your CWP username and password to log in.
Step 2: Create a new domain
- In the CWP dashboard, click on the "Domains" tab.
- Click on the "Add Domain" button.
- Enter the following information:
- Domain Name: Enter your new domain name (e.g.,
example.com
). - Domain Alias: Leave this field blank.
- Document Root: Choose a document root directory (e.g.,
public_html
). - IP Address: Choose the IP address you want to use for your domain (e.g.,
192.0.2.1
).
- Domain Name: Enter your new domain name (e.g.,
- Click the "Add Domain" button to create the new domain.
Step 3: Configure DNS settings
- In the CWP dashboard, click on the "DNS" tab.
- Click on the "Add DNS Record" button.
- Enter the following information:
- Type: Choose the type of DNS record you want to create (e.g., A record, MX record, etc.).
- Name: Enter the name of the DNS record (e.g.,
@
for the root domain). - Value: Enter the value for the DNS record (e.g., the IP address of your server).
- Click the "Add DNS Record" button to create the new DNS record.
Step 4: Configure email settings (optional)
- If you want to set up email accounts for your new domain, click on the "Email" tab.
- Click on the "Add Email Account" button.
- Enter the following information:
- Email Address: Enter the email address you want to create (e.g.,
[email protected]
). - Password: Enter a password for the email account.
- Email Address: Enter the email address you want to create (e.g.,
- Click the "Add Email Account" button to create the new email account.
Step 5: Verify your domain
- To verify your domain, you'll need to create a TXT record in your DNS settings.
- In the CWP dashboard, click on the "DNS" tab.
- Click on the "Add DNS Record" button.
- Enter the following information:
- Type: Choose the type of DNS record you want to create (e.g., TXT record).
- Name: Enter the name of the DNS record (e.g.,
_cwpverify
). - Value: Enter the value for the DNS record (e.g.,
yourdomain.com
).
- Click the "Add DNS Record" button to create the new TXT record.
Step 6: Test your domain
- Wait for the DNS changes to propagate (this may take up to 48 hours).
- Test your domain by visiting it in a web browser (e.g.,
https://example.com
).
That's it! Your new domain should now be configured in CWP.