Monthly Archives: January 2018

Migration to cPanel

cPanel is considered one of the best web hosting control panels. If you are using other control panels (like Odin Plesk, DirectAdmin, VestaCP etc) you may consider switching to cPanel.

cPanel offers free migration service. One limitation is that only few source control panels are supported. These are Odin Plesk(Parallels), DirectAdmin and Ensim.

For more details, visit the cPanel Migration Services and Guides

If you are a site owner, our suggestion is to contact your new host and ask for advice on moving to cPanel. Many hosts offer free migration to cPanel.

To switch yourself your site to cPanel there are mainly some steps:

  1. Copy the site’s files from the old server to the new server. You can use a program like FileZilla. Check our KB article Use FileZilla to connect via FTP to your web hosting account 
  2. Copy the MySQL/MariaDB database(s). Here you need to export the database(using a control panel utility or phpMyAdmin) and import it in cPanel. cPanel offers phpMyAdmin out-of-the-box.
  3. Setup any email accounts, email forwarders, email filters, email autoresponders etc.

For server administrators/web hosts, cPanel provides a guide on How to Manually Migrate Accounts to cPanel from Unsupported Control Panels 

Share this post:

Get notifications for abusive email users – WHM

cPanel v66 introduced a new option – Number of emails a domain may send per day before the system sends a notification. With this option, the system will send you a message when a domain exceeds the specified number of daily emails.

cPanel Note: The system counts outbound mail from subdomains and addon domains separately from their parent domain.

whm number emails day

By default the option is set to Unlimited. You can set any value you want – like 10, 100 etc.

 

To set a value for this new WHM/cPanel option:

  1. Log into WHM as root
  2. Go to Server Configuration >> Tweak Settings
  3. From the top menu click on the Mail tab
  4. Look for the option Number of emails a domain may send per day before the system sends a notification
  5. Choose Unlimited or enter a value (10,100 etc)
  6. Scroll down the page and click the Save button
  7. You will see the confirmation message:

    Your changes have been saved.

    Restarting cPanel daemons…done.

    Updating your system to reflect any changes…
    Updating “Number of emails a domain may send per day before the system sends a notification.” from “10” to “100”.
    “Number of emails a domain may send per day before the system sends a notification.” was updated.
    Done.

When the condition is triggered, you will receive an message stating that The domain demo123.com on account demo123 exceeded the maximum number of emails per hour. The domain violated its domain-level limit, which is currently 100.

abusive users email message

Share this post:

How to force HTTPS via .htaccess

Nowadays most web browsers will show a warning when you visit a site that is not using an SSL certificate. The message looks like in Chrome Web Browser:

chrome insecure site

Your connection to the site is not secure.
You should not enter any sensitive information on this site (for example, passwords or credit cards), because it could be stolen by attackers.

To fix this message you should install an SSL certificate. You can buy one, or if you are using cPanel, you can ask your host to install one for free for you. cPanel offers free SSL certificates (powered by Comodo).

When loading the same site – which now have an SSL certificate installed – you will see:

chrome secure site

Secure connection.
Your information (for example, passwords or credit card numbers) is private when it is sent to this site.

Now you probably will want to redirect requests made to http to https. Do do this, edit the .htaccess file in your site’s and add the following lines to the beginning of it (replace domain.com with your domain name):

RewriteEngine On
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.domain.com/$1 [R=301,L]

If you don’t want to use www in URLs, use:

RewriteEngine On
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://domain.com/$1 [R=301,L]

Related KB article: How to force www or non-www URLs for your domain via .htaccess in cPanel

Share this post:
Page 2 of 2
1 2