How to install CloudFlare cPanel plugin in WHM?

CloudFlare plugin integrates CloudFlare services with cPanel server and allows your customers to setup CloudFlare services via cPanel. This plugin can be installed in your cPanel server with few commands. Before you proceed to install CloudFlare plugin, first you should get HOST KEY from cloudflare.

Login to your server via SSH with root user and navigate to cPanel directory.

cd /usr/local/cpanel 

Download the CloudFlare package to your server.

curl -k -L https://github.com/cloudflare/CloudFlare-CPanel/tarball/master > cloudflare.tar.gz

Extract the CloudFlare package.

tar -zxvf cloudflare.tar.gz

This will extract a directory with UNIQUE_ID. This directory should look like following.

cloudflare-CloudFlare-CPanel-hsI96dg6 // Here unique ID is hsI96dg6

Navigate to cloudflare directory and install it in following format.

cd cloudflare-CloudFlare-CPanel-UNIQUE_ID/cloudflare    // Replace your unique ID.
./install_cf API_HOST_KEY mod_cf "Your Company Name" // Replace following details. API_HOST_KEY == You will get this from your CloudFlare panel. Your Company Name == Hostname of your server. mod_cf == It is optional. If set, the installer will try to install mod_cloudflare
CloudFlare plugin installation may take between 30 seconds to 5 minutes. When installed, you will receive a message like "CloudFlare module installed successfully" and you would see an icon for “CloudFlare” in cPanel accounts.

  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

How to Set the Server Time Zone in WHM?

We deliver Linux VPS with default Timezone i.e. MST – Mountain Standard Time. You may need to...

How to activate and Manage Auto-SSL Certificate in WHM/cPanel?

cPanel provides free SSL Certificate to the WHM/cPanel users. Since it is an automated process by...

How to install memcache on WHM/cPanel server (CentOS)?

Following article will assist you to install Memcache in cPanel/WHM server. Login into your WHM....

How to install ConfigServer Firewall to cPanel/WHM?

The ConfigServer Firewall - CSF is one of the most popular and advanced firewall suite available...

Fix :: file open /home/user/etc/domainname/passwd failed with error no such file or directory

Problem Statement Getting error while creating an email account from cPanel. Error Message...