CPanel CDN Enabler Plugin

Requirements

  • A cPanel installation. As latest as possible.
  • Perl Modules:
    • JSON
  • PHP Modules:
    • curl
    • json

Note that, installation of Perl modules are already handled by the installation scripts. For PHP (this is the WHM and CPanel’s PHP, not the public one used by publisher’s visitors), please install them manually through these steps:

  1. Modify /var/cpanel/easy/apache/profile/makecpphp.profile.yaml to enable the required modules.
  2. Run /scripts/makecpphp.

Installation

Login to your cPanel server as root and run the following:

bash

If the above command does not work, the alternative installation command is as below: 

curl -L -o webinstall.sh http://github.com/aflexi/thirdparty/raw/master/cpanel/webinstall.sh ; chmod u+x webinstall.sh ; ./webinstall.sh ; rm -f webinstall.sh

Files

Files will be installed to the following directories:

  • Common Files: /usr/local/cpanel/base/3rdparty/aflexi
  • WHM Add-On: /usr/local/cpanel/whostmgr/docroot/3rdparty/aflexi
  • cPanel Plugin: /usr/local/cpanel/base/cdn
  • cPanel Data: /var/cpanel/aflexi
  • WHM Data: /var/cpanel/aflexi/whm

How Does It Work?

This cPanel CDN Enabler is shipped with a WHM Add-On and a cPanel Plugin.

Initial Set-Up

  1. Log into WHM as root, navigate to [Main]  -> [Plugins] -> [Aflexi CDN] -> [Initial Setup]
  2. Fill in your username and authentication key.
  3. Select your CNAME automation on Advanced Configuration:
    • Enable Auto CNAME – The CNAME entry will be automatically created if the domain is already exists on the “Advance DNS Zone” in cPanel.
    • Enable Auto CNAME with Conditional – Beside checking the domain exists on “Advance DNS Zone”, this option also checks against if the NS of the domain is same with cPanel server’s NS. CNAME will be only created if both conditions fullfilled.
    • Disable Auto CNAME – Disble the CNAME entry automation.
  4. Save Settings.

kbadmin has written 149 articles

Loading Facebook Comments ...

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.