You can create your own custom templates for cPanel's Site Publisher feature.
Don't specify protocols in your templates. If, for example, the template uses hard-coded HTTP but a visitor uses HTTPS to access it, the browser will return an error.
To create an Site Publisher template, perform the following steps:
- Create your template's meta.json file .
- Create your template files .
Create a preview image for your template. You
save this image as the
Store the template in the appropriate directory on your cPanel & WHM server:
Store templates that the root user owns within a template-specific directory in the
Store templates that a reseller owns within a template-specific directory in the
/home/username/var/cpanel/reseller/site_templates/directory, where username represents the reseller's username.
- Store templates that the root user owns within a template-specific directory in the
We strongly recommend that you do not store additional templates in the cPanel-provided-template directory.
In cPanel & WHM version 56 through 68, cPanel-provided templates exist in the
In cPanel & WHM version 70 and higher, cPanel-provided templates exist in the
When users publish websites via cPanel's Site Publisher interface (cPanel >> Home >> Domains >> Site Publisher), the system generates the website files and stores them in the target domain's home directory.
When users publish a Site Publisher website, the system logs template information and the target directory to the
Each Site Publisher website uses the following assets:
- The configuration file .
- Template-specific license files, if the template includes a license.
The system does not publish the template's
README files or Template Toolkit files.