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-hsI978g6 // Here unique ID is hsI96dg6
cd /usr/local/cpanel
cd cloudflare-Cloudflare-CPanel-hsI978g6
./cloudflare.install.sh -k 304147ad51eb219f558611f976 -n 'Royalclouds'
// Replace your API KEY. 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