KNOWNHOST WIKI

User Tools

Site Tools


developmental:cloudflare-for-resellers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
developmental:cloudflare-for-resellers [2020/05/13 13:45]
Karson N. [Installing the Cloudflare Plugin for cPanel]
developmental:cloudflare-for-resellers [2020/05/26 13:07] (current)
Karson N.
Line 21: Line 21:
 First, you must apply. You must fill out and submit the following application to Cloudflare in order to become a Hosting Partner: First, you must apply. You must fill out and submit the following application to Cloudflare in order to become a Hosting Partner:
  
-((https://​www.cloudflare.com/​partners/​become-a-partner/​))[[https://​www.cloudflare.com/​partners/​become-a-partner/​]]+((https://​www.cloudflare.com/​partners/​become-a-partner/​))[[https://​www.cloudflare.com/​partners/​become-a-partner/​|Cloudflare partnership portal]]
  
 You must provide your Company Name, Type of Business, Company URL, Contact First Name, Last Name, and Email Address. It can take  up to two business days before you receive a decision from Cloudflare regarding the application. Once you receive your approval, you can then implement the self-serve mechanism you choose to use, whether it be the API or a panel-specific plugin. Let's discuss the cPanel Cloudflare plugin.  ​ You must provide your Company Name, Type of Business, Company URL, Contact First Name, Last Name, and Email Address. It can take  up to two business days before you receive a decision from Cloudflare regarding the application. Once you receive your approval, you can then implement the self-serve mechanism you choose to use, whether it be the API or a panel-specific plugin. Let's discuss the cPanel Cloudflare plugin.  ​
Line 28: Line 28:
 ===== Installing the Cloudflare Plugin for cPanel ===== ===== Installing the Cloudflare Plugin for cPanel =====
  
-First of all, you must log into Cloudflare and get your API Key. ((https://​support.cloudflare.com/​hc/​en-us/​articles/​200167836-Managing-API-Tokens-and-Keys ))+First of all, you must log into Cloudflare and get your API Key. ((https://​support.cloudflare.com/​hc/​en-us/​articles/​200167836-Managing-API-Tokens-and-Keys ))[[https://​support.cloudflare.com/​hc/​en-us/​articles/​200167836-Managing-API-Tokens-and-Keys|Cloudflare Managing API Tokens and Keys]]
  
 Then, you must SSH into your server as the root user: Then, you must SSH into your server as the root user:
Line 46: Line 46:
  
  
-Once the installation is complete, your customers will have 2 different options to use Cloudflare. They can either do so via CNAME setup  on their subdomains, or they can enable Full DNS setup, which will make Cloudflare their Authoritative Nameservers. The default option is the CNAME setup. Both options will require that they are able to make advanced DNS changes via the panel. This means that you will need to ensure that either the Advanced Zone Editor or both Zone Editors in cPanel are enabled for your users via WHM's Feature Manager (Home »Packages »Feature Manager »Feature Lists) ((https://​documentation.cpanel.net/​display/​74Docs/​Feature%20Manager#​FeatureManager-Predefinedfeaturelists)) You will select the Feature List that your Cloudflare clients will be using from the "​Manage feature list" and then click the "​Edit"​ button. Alternatively,​ you could click "Add Feature List" under "Add a new feature list" to add a new feature list for your Cloudflare clients. Below you will see that there are two DNS Zone Edit options under the feature list  and only one of those is enabled by default. Both need to be enabled in order to allow the Cloudflare reseller plugin to function. ​+Once the installation is complete, your customers will have 2 different options to use Cloudflare. They can either do so via CNAME setup  on their subdomains, or they can enable Full DNS setup, which will make Cloudflare their Authoritative Nameservers. The default option is the CNAME setup. Both options will require that they are able to make advanced DNS changes via the panel. This means that you will need to ensure that either the Advanced Zone Editor or both Zone Editors in cPanel are enabled for your users via WHM's Feature Manager (Home »Packages »Feature Manager »Feature Lists) ((https://​documentation.cpanel.net/​display/​74Docs/​Feature%20Manager#​FeatureManager-Predefinedfeaturelists))[[https://​documentation.cpanel.net/​display/​74Docs/​Feature%20Manager#​FeatureManager-Predefinedfeaturelists|cPanel Predefined feature lists]] ​You will select the Feature List that your Cloudflare clients will be using from the "​Manage feature list" and then click the "​Edit"​ button. Alternatively,​ you could click "Add Feature List" under "Add a new feature list" to add a new feature list for your Cloudflare clients. Below you will see that there are two DNS Zone Edit options under the feature list  and only one of those is enabled by default. Both need to be enabled in order to allow the Cloudflare reseller plugin to function. ​
  
 {{:​developmental:​feature-list-must-enable-adv-dns-zone-editor.png?​nolink&​1200|}} {{:​developmental:​feature-list-must-enable-adv-dns-zone-editor.png?​nolink&​1200|}}
Line 114: Line 114:
 You may consider adding this to a cron and running it once a week or so to keep the plugin updated automatically. ​ You may consider adding this to a cron and running it once a week or so to keep the plugin updated automatically. ​
  
-Cloudflare has issued a warning that this command may not work, though and provided a workaround if so. (( https://​www.cloudflare.com/​static/​media/​pdf/​cloudflare-cpanel-installation-activation-guide.pdf )) If you notice that your Clouflare plugin is not being updated, you can use the following command instead to reinstall the plugin:+Cloudflare has issued a warning that this command may not work, though and provided a workaround if so. ((https://​www.cloudflare.com/​static/​media/​pdf/​cloudflare-cpanel-installation-activation-guide.pdf))[[https://​www.cloudflare.com/​static/​media/​pdf/​cloudflare-cpanel-installation-activation-guide.pdf|Cloudflare installation guide for cPanel plugins]] ​If you notice that your Clouflare plugin is not being updated, you can use the following command instead to reinstall the plugin:
  
   bash <(curl -s https://​raw.githubusercontent.com/​cloudflare/​CloudFlare-CPanel/​master/​cloudflare.install.sh) -k [YOUR_HOST_API_KEY] -n '​[YOUR_COMPANY_NAME]'​   bash <(curl -s https://​raw.githubusercontent.com/​cloudflare/​CloudFlare-CPanel/​master/​cloudflare.install.sh) -k [YOUR_HOST_API_KEY] -n '​[YOUR_COMPANY_NAME]'​
developmental/cloudflare-for-resellers.1589395505.txt.gz · Last modified: 2020/05/13 13:45 by Karson N.