cPanel CDN Enabler Plugin
Requirements
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:
- Modify /var/cpanel/easy/apache/profile/makecpphp.profile.yaml to enable the required modules.
- Run /scripts/makecpphp.
Installation
Login to your cPanel server as root and run the following:
bash <(curl -L http://github.com/aflexi/thirdparty/raw/master/cpanel/webinstall.sh)
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

- Log into WHM as root, navigate to [Main] -> [Plugins] -> [Aflexi CDN] -> [Initial Setup]
- As graph abpove illustrates, fill in your username and authentication key.
- 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.
- Save Settings.
Usage
- WHM Configuration: You may set up your cPanel users, packages and view the reporting data in WHM.
- cPanel Configuration: cPanel users able to configure the CDN site within the cPanel itself.
