CloudFlare: cPanel plugin Installation Guide


In this article, we can check how to install Cloudflare cPanel Plugin.

Cloudflare is a commercial content delivery network that has integrated distributed denial of service(DDoS) defense mechanism. Cloudflare increases performance and security. A website that utilizes CloudFlare loads twice as fast as others. In this documentation, we are going to address how to install this plugin in cPanel and configure it.

Cloudflare Installation Instructions

Before we proceed to install the Cloudflare plugin, you should get the HOST KEY from CloudFlare partners. This installation step requires root access to the server where you need to install the Cloudflare plugin.

1) Login as root to the cPanel server using an SSH customer such as Terminal or Putty:

 

2) Download necessary files and run installation.

 

These commands will download the plugin as a compressed file to the server. The next step is to extract the contents.

 

This command extracts the contents of the file to a specific directory with a UNIQUE Id. Eg: CloudFlare-Cloudflare-CPanel-c03R3b8. Here unique id is c03R3b8.

3) Now for installation, you have to make use of the Host key and company name.

 

eg: #./install_cf 56yt8x9s987dfy4324bnv mod_cf “InterServer Hosting”

This will start the installation. The cPanel plugin files are installed first, followed by mod_CloudFlare. Depending on your server, it will take between 15 seconds and 4 minutes.

4) At the end of the installation, you should see the output below.

 

5) To check if it is installed:

 

You can see below result if the installation is successful

 

Cloudflare Configurations

Cloudflare provides two options on how to provision Cloudflare for the users.

1) CNAME setup.

2) Full DNS setup.

CNAME setup

In this setup, the domain is pointed to the authoritative DNS itself. Only the subdomains are pointed to Cloudflare. This setup enables protection only at the subdomain levels. Your domain’s name servers will not be changed to Cloudflare nameservers.

Full DNS setup

The domain’s name server is updated to point to CloudFlare’s name servers, which means that the authoritative DNS now will be the CloudFlare’s name server. This full DNS setup enables protection at the primary domain as well as for subdomains also.

The default setup for the Cloudflare plugin is CNAME setup. For enabling full DNS setup, it can be easily configured under the config.js file which is located at

 

Also, the CNAME setup cannot be disabled. The available options for how CloudFlare can be enabled are:

1) CNAME setup only.

2) Both CNAME and Full DNS setups.

Enabling the Full DNS configuration is by updating the following parameter:

“featureManagerIsFullZoneProvisioningEnabled”: false – In this condition full DNS will be disabled and all customers will have to use CNAME

“featureManagerIsFullZoneProvisioningEnabled”: true – In this setup full DNS will be enabled and customers can select either full DNS or CNAME.

How to activate Cloudflare in the cPanel interface

After the installation of CloudFlare, Users can see a Cloudflare icon in the cPanel interface at the cPanel section and can configure Cloudflare from there. The users have to create a Cloudflare account first for using this plugin. Sign in to Cloudflare from the cPanel interface. Once your login into CloudFlare you can configure Cloudflare as a CNAME setup or full DNS setup.

The default setup is CNAME setup and can be enabled by clicking “Provision Domain with CNAME setup”. If the full DNS setup is enabled in the config.js file, there will be an option for providing the full DNS set up in the plugin interface as “Provision Domain with Full Zone Setup”.

If you need any further help, please contact our support department.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

List of Common Available Ports On Cloud And VPS Servers

Inside our Cloud and VPS hosting services we want to make assured our clienteles have the skill...

Cloud Hosting VS. Shared Hosting

Shared hosting is the general hosting solution. But using a shared hosting solution user has to...

How to block IP using .htaccess file?

1) You may block entrance to your website from particular IP addresses using .htaccess file.2)...

How to Delete a cPanel Account From SSH

You can also terminate an account using SSH/command line if wanted using the following script....

How to Delete a cPanel From WHM

Eliminating an existing cPanel account is a very fast and easy process, but be advised this move...