Troubleshoot - by Hostrare
Cloudflare is an administration and security service. With 14 points of presence around the world, a website on Cloudflare typically loads double as quickly, uses 65% less server support, saves 60% of bandwidth, and has an extra layer of protection. Hosting Providers get decreased server load, bandwidth savings, reduction of DDoS attacks, and an IPv4/v6 gateway.
The Cloudflare cPanel plugin makes it easy to mix into your hosting control panel. It gets less than 5 minutes to install on a test server and then the setting is possible to your end clients with two clicks.
Before proceed to fix the Cloudflare plugin, you should get HOST KEY from Cloudflare associates
https://www.cloudflare.com/certified-partners
Install Cloudflare Cpanel plugin Using an SSH customer such as Terminal or Putty:
Step 1. Access cPanel for the server working root user by:
ssh root@SERVER IP ADDRESS or SERVER NAME
Step 2.
cd /usr/local/cpanel
Step 3.
curl -k -L https://github.com/cloudflare/CloudFlare-CPanel/tarball/master > 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:
cloudflare-CloudFlare-CPanel-d03f3b8
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 API HOST KEY mod_cf “YOUR COMPANY NAME”
example for Awesome Hosting Company: ./install_cf 56yt8x9s987dfy4324bnv mod_cf “Awesome Hosting”
Step 7. This will begin the connection. cPanel is placed first, supported by mod_cloudflare. Depending on your server, it will take 15 seconds and 4 minutes. You know it will be done when you see:
Cloudflare module installed fortunately
Step 8. Cloudflare is now happily added to this server. You require to duplicate the process for each extra server (unless you have an automated update script).
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*
cat /etc/cloudflare.jsonor
cat
/usr/local/cpanel/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”, “host_name”:”api.cloudflare.com”, “host_uri”:”/host-gw.html”, “user_name”:”www.cloudflare.com”, “user_uri”:”/api_json.html”, “host_port”:”443”, “host_prefix”:”cloudflare-resolve-to”, “cp_version”:”1.3.0”}
/usr/local/cpanel/bin/unregister_cpanelplugin /usr/local/cpanel/3rdparty/cloudflare.cpanelplugin
To assure that Cloudflare was correctly placed, allow Cloudflare for three test websites from your control panel.
To verify if a website is on Cloudflare, use Terminal. Open Terminal, and enter the next dig right.
dig www.mydomain.com
Output without CloudFlare-enabled:
www.mydomain.com 10782 IN CNAME www.mydomain.com
Output with Cloudflare-enabled:
www.mydomain.com 10782 IN CNAME
www.mydomain.com.cdn.cloudflare.net.
If you see ‘.cdn.Cloudflare.net’ at the end, then Cloudflare is enabled.
our suuport team here for you 24/7
+8801977507015support@hostrare.comsend a leter Whether you are looking for a personal website hosting plan or a business website hosting plan, We are the perfect solution for you. Our powerful website hosting services will not only help you achieve your overall website goals, but will also provide you with the confidence you need in knowing that you are partnered with a reliable and secure website hosting platform.