Install Plugin Cloudflare di cPanel


CloudFlare plugin for CPanel. Please note: The cPanel plugin is for Certified CloudFlare Hosting Partners.



Using an SSH client such as Terminal or Putty:


Step 1. Access cPanel for the server using root user by:


Step 2.

cd /usr/local/cpanel


Step 3.

curl -k -L > cloudflare.tar.gz


Step 4.

tar -zxvf cloudflare.tar.gz

This extracts a directory that includes a UNIQUE ID. For example, the directory will be in this format:


The UNIQUE ID is only: d03f3b8

The UNIQUE ID is not cloudflare-CloudFlare-CPanel-d03f3b8


Step 5.

cd cloudflare-CloudFlare-CPanel-UNIQUE ID/cloudflare/


Step 6.

./install_cf HOST_API_KEY mod_cf 'YOUR_COMPANY_NAME'

example for Awesome Hosting Company: ./install_cf 56yt8x9s987dfy4324bnv mod_cf “Awesome Hosting”


Step 7. This will start the installation. cPanel is installed first, followed by mod_cloudflare. Depending on your server, it will take between 15 seconds and 4 minutes. You know it will be done when you see:

CloudFlare module installed successfully


Step 8. CloudFlare is now successfully added to this server. You need to repeat the process for each additional server (unless you have an automatic update script).


Best SysAdmin practices

Now that CloudFlare is installed, you can remove some of the unnecessary remnant files:


Step 9.

cd ../ ../


This takes you back two levels.


Step 10.

rm -rf cloudflare-CloudFlare-CPanel-UNIQUE ID*

To check if it is installed:

cat etc/cloudflare.json

You should see an output with the following:

root@server1 [/usr/local/cpanel]# cat etc/cloudflare.json
 “host_key”:”32yt5a7b436tuy8974tre -”, (For security purposes, this will not be your host key.)
 “host_formal_name”:”Awesome Hosting”,

Was this answer helpful?

 Print this Article

Also Read

Instalasi cPanel pada Server Centos

Langkah-langkah yang harus disiapkan. 1.Pastikan anda memiliki koneksi Internet yang stabil...

Install Clamav cPanel Command Line

Berikut perintah untuk install clamav tanpa harus login ke WHM...

How to create backup Account via SSH?

Step 1: Log-in to the SSH as Root user. Step 2: Enter the following command string on the...

Install Softaculous di cPanel

Sebelum melakukan install, pastikan ioncube terinstall pada server.Perintah instalasi: wget -N...

Optimize MySQL

You could try running the following script to see the recommendations it provides: Code:...

Powered by WHMCompleteSolution