Archives

Use different cPanel accounts for main domain and subdomains

A lot of clients ask us if they can host a subdomain on a separate cPanel domain.
The answer is YES, you can have a separate cPanel account for your subdomain.

Normally, you can create your subdomains in cPanel->Subdomains->Create a Subdomain. See our article on  How to create/delete subdomains in cPanel.

But, as we said, you can have a separate cPanel account. Just follow the normal steps for creating a new cPanel account in WHM, and instead of the the main domain, enter the subdomain. See the image:

whm create subdomain

 

Be sure the subdomain doesn’t exist on the server. Otherwise, you will not be able to create it in WHM.

Notice that you can also host your subdomain on another host. To do so:
1. Create the account for the subdomain on the other host.
2. Edit the DNS settings for the main domain and add a record like:
subdomain dns ip

Share this post:

Installing Perl Modules in cPanel

Perl Modules are in fact libraries of functions that will help you in your source code. 
By default, the module include path is:

/home/username/perl

To let Perl know how to find the modules, use at the beginning of your script:

#!/usr/bin/perl
use cPanelUserConfig;

or

#!/usr/bin/perlml

The Perl system modules installed by cPanel are listed below. You can manually install the Perl modules that you want.

System Perl Modules
CPAN
CPAN::Meta::Requirements
CPAN::Meta::YAML
Crypt::PasswdMD5
DBD::mysql
DBI
Digest::MD5
Digest::SHA1
Expect
ExtUtils::MakeMaker
GnuPG
IO::Tty
LWP
LWP::Protocol::https
Mozilla::CA
Net::HTTP
Regexp::Assemble
Test::Pod
Test::Simple
Try::Tiny
URI
local::lib
version

To install a Perl Module in cPanel:

  1. Log into the cPanel account
  2. Locate Perl Modules in the SOFTWARE section
  3. If you know the exact module name that you want to install, just type its name in the Install a Perl Module edit box and click the Install Now button.
  4. If you don’t know the exact module name click the Show Available Modules, look for the desired module, and click the Install link.
  5. Click the Go Back button
  6. You will see the installed modules in the Installed Perl Module(s) section. 

From the Installed Perl Module(s) section, you can Update, Reinstall, Uninstall and view the docs for each module.

Contact your host if you are getting error messages while installing Perl modules.
Some modules have dependencies, so other modules may be installed with your desired module.

Video tutorial for installing a Perl Module – in this case the String::Diff module:

If you have SSH access you can use perl -v and instmodsh commands for more information.
Examples:

root@web [~]# perl -v

This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi
(with 34 registered patches, see perl -V for more detail)

Copyright 1987-2012, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

root@web [~]# instmodsh
Available commands are:
   l            - List all installed modules
   m    - Select a module
   q            - Quit the program
cmd? l
Installed modules are:
   CPAN
   CPAN::Meta::Requirements
   CPAN::Meta::YAML
   Crypt::PasswdMD5
   DBD::mysql
   DBI
   Digest::MD5
   Digest::SHA1
   Expect
   ExtUtils::MakeMaker
   GnuPG
   IO::Tty
   LWP
   LWP::Protocol::https
   Mozilla::CA
   Net::HTTP
   Perl
   Regexp::Assemble
   Test::Pod
   Test::Simple
   Try::Tiny
   URI
   local::lib
   version
cmd? q
root@web [~]#
Share this post:

How to add DKIM and SPF records for your domain from cPanel

DKIM and SPF are two mechanism that allow you to prevent SPAM email messages. Also, they will improve your email delivery rates. You can easily enable them in cPanel.

DKIM is a means of verifying incoming email. It ensures that incoming messages are unmodified and are from the sender from whom they claim to be. This feature works to prevent incoming spam messages.

 

The SPF system allows you to specify servers and IP addresses that are authorized to send mail from your domain(s). This feature works to prevent outgoing spam messages.

 

cPanel DKIM SPF cPanel DKIM SPF

To enable DKIM and/or SPF in cPanel:

  1. Go to yourdomain.com/cpanel and log in
  2. Navigate to EMAIL section, look for Authentication option
  3. On the DKIM section click the Enable button. You will see a confirmation: DKIM has been enabled.
    The DKIM record will look like:

    default._domainkey IN TXT "v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtNG7H+7jKR5uZT/RD7nGbVQk9Pv7PrP279MQ7rEAhq0CRUiXTBh7LSfkeLoEHwjSiFrs0hVXR4sDD7iiDn08BTNfSvH2GaS0Vnz83qeJAAf3nkB1KjrIwqYOD1+Wl+GtDdzCx6/1OFcckRQsN8I3N+hH41sbf5ouVf3O9IANvSpzq6IWWvDqpmncIwebJkt8r" agdAyTNRjpcNHJjlIc9pAMnNz1lMoaaf61kRt3quxkdbnYwVxtvprkWdbyjMJ+zJ7lpwOCBYBAW9HVoM3S5/vUWUA0RB6o3V96qs4edRh7spuMi/aLvygKs7Agsbz5LPajybl5gqqhUYumUnyMOcwIDAQAB\;
  4. Click the Go Back button
  5. On the SPF section click the Enable button. You will see a confirmation like: SPF has been enabled. Your raw SPF record is: v=spf1 +a +mx +ip4:192.255.1.1 ~all
  6. Click the Go Back button
  7.  You can also change other advanced settings. Modify them only as you know what are you doing. Otherwise, don’t modify these settings or ask your host about them.
  8. This is all. You have configured DKIM and SPF for your domain.

You can check the DNS entries which has been added in cPanel->DOMAINS section->Zone Editor.

The video tutorial for this knowledge base post:

Related KB post:
Add a DMARC record to your domain in cPanel

Share this post:

How to enable gzip compression (Apache mod_deflate) in cPanel

To speed up loading times for your site and to save bandwidth, you can enable gzip compression. This means that content of your site will be served by the Apache Web Server in a compressed form.

Please notice that the Apache mod_deflate module must be installed on the server. Contact your host if you are unsure.

cPanel Optimize Website cPanel Optimize Website

To enable the gzip compression for your site, follow the steps:

  1. Go to yourdomain.com/cpanel and log in
  2. Look for Optimize Website entry (SOFTWARE cPanel section)
  3. Here you have 3 options:
    Disabled – which will disable the compression
    Compress All Content – with this option all content will be compressed
    Compress the specified MIME types – here, you will be able to input only certain MIME file types.
  4. So, choose the second option and click the Update Settings button. A confirmation message will appear: Website optimization preferences updated. Content compression is now enabled. Content compression is now enabled for all content.
  5. Your site is using now the gzip compression.
You can test if the gzip compression is working on your site at http://www.gziptest.com/ .

And the video tutorial:

 

Resources:
Apache Module mod_deflate

Share this post:

Add an email account in Windows Mail

Windows Mail/Mail is the default email client that comes with Windows 7/8/10. Here we will show you how to add an email account to it.

Windows Mail Windows Mail

How to add an email account to Mail :

1. Start the Mail program.
2. Click the Accounts button from the left menu, then click the +Add account button
windows mail 2

3. In the next window, chose the account type you want to add – in our case we will select Other account (POP3, IMAP)
windows mail 3

4. The Add an account window will open. Here, enter your email address, your name(as you want your receivers to see) and the password. Click Sign in button. You will get a message: All done! Your account was set up successfully! Click the Done button to close the window.
windows mail 4

5. Now, everything is set up. You can use the Mail software to send and receive email messages.
windows mail 5

If you prefer, check the video tutorial here:

Share this post:
Page 2 of 14
1 2 3 4 14