cPanel is a popular web hosting control panel that simplifies website management. It allows you to manage domains, files, databases, emails, and more. Here's how to log in to cPanel and add a site.
How to Log in to cPanel
Option 1: Through a Browser
- Open your web browser.
- Enter the cPanel URL provided by your hosting provider:
- Standard URL:
http://yourdomain.com/cpanel
- Secure URL (recommended):
https://yourdomain.com:2083
- Alternatively, use the server's IP address:
http://<server-ip>/cpanel
- Enter your credentials:
- Username: Provided by your hosting provider.
- Password: Set during account setup or provided in the welcome email.
- Click Log In.
Option 2: Through Your Hosting Provider's Dashboard
- Log in to your hosting provider's account dashboard.
- Navigate to the hosting section or control panel.
- Look for a link or button like Log in to cPanel and click it.
Option 3: Command-Line Access (for Advanced Users)
- Use SSH to connect to your server:
ssh user@yourserver.com
- Once logged in, use the following command to access cPanel:
/usr/local/cpanel/bin/cpanel
Tip: For security, always use HTTPS connection when logging into cPanel.
Adding a Website to cPanel
Once logged into cPanel, you can add a website by creating a new domain, subdomain, or addon domain.
Option 1: Adding a Primary Domain
- During hosting account setup, the primary domain is usually specified.
- The primary domain is automatically added and configured in cPanel.
Option 2: Adding an Addon Domain
Addon domains allow you to host multiple websites under one cPanel account.
Steps:
- Log in to cPanel.
- Navigate to Domains > Addon Domains.
- Fill in the details:
- New Domain Name: Enter the domain name you want to add.
- Subdomain: Automatically generated (can be customized).
- Document Root: Specifies where website files will be stored (default is
/public_html/newdomain.com).
- Click Add Domain.
Option 3: Adding a Subdomain
A subdomain is a prefix to your main domain (e.g., blog.example.com).
Steps:
- Go to Domains > Subdomains.
- Fill in the details:
- Subdomain: Enter the desired subdomain (e.g.,
blog).
- Domain: Select the parent domain from the dropdown.
- Document Root: Define or leave as the default (e.g.,
/public_html/blog).
- Click Create.
Option 4: Pointing an External Domain
If your domain is registered with a different provider:
- Log in to your domain registrar's account.
- Update the nameservers to point to your hosting provider:
ns1.yourhost.com
ns2.yourhost.com
- Wait for DNS propagation (can take 24–48 hours).
- Add the domain to cPanel as an addon or subdomain.
Uploading Your Website Files
Option 1: Using File Manager
- Go to Files > File Manager in cPanel.
- Navigate to the Document Root of your domain.
- For the primary domain:
/public_html/
- For addon domains:
/public_html/addondomain.com
- Click Upload and select your files.
Option 2: Using FTP
- Set up an FTP account in cPanel:
- Go to Files > FTP Accounts.
- Create a new FTP account or use the default one.
- Use an FTP client (e.g., FileZilla):
- Host:
ftp.yourdomain.com
- Username: Your cPanel or FTP username.
- Password: Your cPanel or FTP password.
- Upload files to the corresponding directory.
Option 3: Using cPanel's One-Click Installers
- Go to Software > Softaculous Apps Installer or a similar installer.
- Select the desired CMS (e.g., WordPress, Joomla, Drupal).
- Follow the setup wizard to install the application.
Managing Your Website in cPanel
Common Tasks:
1. Set Up an Email Address:
- Go to Email > Email Accounts.
- Create custom email addresses for your domain.
2. Create Databases:
- Go to Databases > MySQL Databases.
- Add a database, user, and assign privileges.
3. Enable SSL:
- Go to Security > SSL/TLS.
- Install an SSL certificate for your domain (often free with hosting plans).
4. Monitor Resource Usage:
- Go to Metrics > Resource Usage or CPU and Concurrent Connection Usage.
Troubleshooting Login or Website Issues
Unable to Access cPanel
- Incorrect URL: Double-check the URL format (
http://yourdomain.com/cpanel).
- Firewall Blocking Access: Check if your IP is blocked by the server's firewall.
- Forgot Password: Reset it through your hosting provider's dashboard.
Website Not Loading
- Verify domain DNS settings.
- Check that files are uploaded to the correct directory.
- Contact hosting support for server-specific issues.