Install CloudFlare Plugin on cPanel Server

CloudFlare is widely used service which provides security and helps to load website faster. It helps in mitigation of DDoS attack on domain.

So integrating CloudFlare plugin with cPanel helps client to enable the CloudFlare protection on domain easily. Before installing the CloudFlare, you should get HOST KEY from CloudFlare Partners. Kindly refer below mentioned URL for more details. Install CloudFlare Plugin on cPanel Server, Hostripples Web Hosting


Kindly login to your cPanel server using SSH client with root user and run below mentioned commands.

cd /usr/local/cpanel

curl -k -L > cloudflare.tar.gz

tar -zxvf cloudflare.tar.gz

When you extract this compressed file, it will contains a directory with unique ID like cloudflare-Cloudflare-CPanel-9rlc18n

So 9rlc18n is unique ID

cd cloudflare-Cloudflare-CPanel-UNIQUE ID/


HOST KEY : You will get from CloudFlare Partners

This Command will start the CloudFlare plugin installation on your server and will take few minutes to get it complete. Once installation gets completed then you can verify the installation by login to cPanel account. Now CloudFlare Icon will be appeared in cPanel under “Software” Section.

Check CloudFlare Plugin version on cPanel Server

Kindly run following command on shell to check CloudFlare Plugin Version

cat /usr/local/cpanel/base/frontend/paper_lantern/cloudflare/config.js | grep version

Update CloudFlare Plugin on cPanel Server

Kindly run following command to update CloudFlare Plugin on your cPanel server.


Uninstall CloudFlare Plugin on cPanel Server

If you wish to remove CloudFlare plugin from your server then run below mention command to uninstall CloudFlare plugin on your server.

Note: Uninstallation does not remove DNS zones and users which are got registered at Cloudflare through CloudFlare plugin.

bash <(curl -s && rm -f

Enabling Full DNS Setup option in CloudFlare Plugin

CloudFlare plugins provide 2 options to end users to setup cloudFlare. CNAME Setup, which is default enable and cannot be disabled.

Another Option is Full DNS which needs to enable from shell first in order to use it from cPanel. This feature needs domain’s DNS {nameservers} points to CloudFlares DNS {nameservers}. It is very easy to enable Full DNS setup from Shell, you just need to modify following file on server.

vi /usr/local/cpanel/base/frontend/paper_lantern/cloudflare/config.js

Now locate he parameter “featureManagerIsFullZoneProvisioningEnabled” and change its value from “False” to “True” and save this file. Now Full DNS setup is enabled.

That’s all.