Install CloudFlare Plugin on cPanel Server

Install CloudFlare Plugin on cPanel Server

0
0
SHARE
Linux Reseller Hosting

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.

https://www.cloudflare.com/certified-partners 

Installation

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

cd /usr/local/cpanel

curl -k -L https://github.com/cloudflare/CloudFlare-CPanel/tarball/master > 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/

./cloudflare.install.sh -k HOST KEY -n “YOUR COMPANY NAME”

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.

/usr/local/cpanel/bin/cloudflare_update.sh

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 https://raw.githubusercontent.com/cloudflare/Cloudflare-CPanel/master/cloudflare.uninstall.sh) && rm -f cloudflare.uninstall.sh

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.

Windows Shared Hosting

Our Partner

partner-cloudflare
partner-cloudlinux
partner-cpanel-whm
partner-Paralleles-plesk-panel
partner-sitelock
partners-OpenVZ
R1Soft
partners-RV-Globalsoft
partners-Softaculous-auto-installer
partners-solusvm
partners-whmcs
services-cpanel
services-MySQL
services-Perl
services-swsoft-plesk
support-sevices-php