cPanel Cheat Sheet: Ports, URLs, DNS and Email Settings

Bookmark this page. It collects the cPanel and WHM ports, URLs, email settings, DNS record types and file permissions that you will look up again and again while managing a website.

cPanel, WHM and Webmail login URLs

ServiceSecure URL (SSL)Port
cPanelhttps://yourdomain.com:2083 or https://yourdomain.com/cpanel2083
WHMhttps://server-hostname:2087 or https://yourdomain.com/whm2087
Webmailhttps://yourdomain.com:2096 or https://yourdomain.com/webmail2096
cPanel (non-SSL, avoid)http://yourdomain.com:20822082
WHM (non-SSL, avoid)http://server-hostname:20862086
Webmail (non-SSL, avoid)http://yourdomain.com:20952095

Tip: If a port is blocked on your office or college network, use the /cpanel, /whm or /webmail path on port 443 instead.

Email client settings (IMAP, POP3, SMTP)

SettingValue
UsernameYour full email address, e.g. you@yourdomain.com
Incoming servermail.yourdomain.com (or the server hostname your host gives you)
IMAP port993 (SSL/TLS)
POP3 port995 (SSL/TLS)
Outgoing (SMTP) servermail.yourdomain.com
SMTP port465 (SSL/TLS) or 587 (STARTTLS)
SMTP authenticationRequired, same username and password as incoming

Other common ports

ServicePortNotes
FTP21Use explicit FTP over TLS (FTPS) where possible
SFTP / SSH22Some hosts use a custom SSH port
HTTP / HTTPS80 / 443Website traffic
MySQL3306Remote access must be allowed in “Remote Database Access”
DNS53Used by nameservers

DNS record types at a glance

RecordWhat it doesExample
APoints a name to an IPv4 addressyourdomain.com → 203.0.113.10
AAAAPoints a name to an IPv6 addressyourdomain.com → 2001:db8::10
CNAMEMakes one name an alias of anotherwww → yourdomain.com
MXTells the world which server receives your emailyourdomain.com → mail.yourdomain.com (priority 0)
TXTHolds text such as SPF, DKIM, DMARC and verification codesv=spf1 +a +mx ~all
NSLists the nameservers for the domainns1.yourhost.com
CAALimits which certificate authorities can issue SSL for your domain0 issue "letsencrypt.org"

File and folder permissions

ItemRecommendedMeaning
Folders755Owner can read, write, open; others can read and open
Files644Owner can read and write; others can only read
wp-config.php / config files600 or 640Restrict access to sensitive settings
Never use777Anyone can write, a serious security risk

Important folders in your home directory

PathWhat it holds
/home/username/public_htmlFiles for your main domain
/home/username/public_html/.htaccessApache/LiteSpeed rules: redirects, HTTPS, caching
/home/username/mailMailboxes for all email accounts
/home/username/logsArchived access logs
/home/username/tmpTemporary files and some statistics
/home/username/etcEmail account and domain configuration

Cron schedule quick reference

ScheduleCron expression
Every 5 minutes*/5 * * * *
Every hour0 * * * *
Every day at 2:30 AM30 2 * * *
Every Monday at 9 AM0 9 * * 1
First day of each month0 0 1 * *

Useful .htaccess snippets

Force HTTPS

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Redirect www to non-www

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]

Block access to a sensitive file

<Files "wp-config.php">
  Require all denied
</Files>

Where to find things in cPanel

TaskcPanel section
Create email addressesEmail → Email Accounts
Fix SPF/DKIMEmail → Email Deliverability
Add a domain or subdomainDomains → Domains
Edit DNS recordsDomains → Zone Editor
Upload filesFiles → File Manager
Take a backupFiles → Backup / Backup Wizard
Create a databaseDatabases → Manage My Databases / Database Wizard
Change PHP versionSoftware → MultiPHP Manager
Install WordPressSoftware → WordPress Manager by Softaculous
Check SSLSecurity → SSL/TLS Status
Schedule tasksAdvanced → Cron Jobs
See resource usageMetrics → Resource Usage (CloudLinux servers)

Frequently asked questions

What is the default cPanel port?

Port 2083 for secure (HTTPS) access. Port 2082 is the unencrypted version and should be avoided.

Should I use IMAP or POP3?

Use IMAP if you read email on more than one device, because it keeps everything in sync with the server. POP3 downloads mail to one device and is rarely the better choice today.

Why can’t I reach cPanel on port 2083?

Some networks block non-standard ports. Try https://yourdomain.com/cpanel, which runs over the normal HTTPS port 443.