We have a new documentation site for cPanel & WHM! You can find our new documentation site at docs.cpanel.net.
We will continue to maintain our API documentation on this server.
The Select a Domain section of the interface lists the domain name and website directory (document root) for every domain that your cPanel account owns. If a domain currently uses a Site Publisher website, the interface also lists the website's template's name.
If your cPanel account owns a large number of domains, the interface automatically paginates the table. Click the page numbers in the top right corner of the section to navigate between pages of domains, or use the Search text box at the top of the list to search for a domain.
When you publish a Site Publisher website, cPanel automatically performs the following actions:
The script saves a copy of the domain's document root's current contents as a tarball in the
/home/user/site_publisher/backups/ directory, where
user represents your cPanel account's username.
If the system encounters a file system or file quota error during this step, it will not save the tarball and will not publish the new Site Publisher website.
The system saves configuration information for the new website in the
/home/user/site_publisher/configurations/ directory, where
user represents your cPanel account's username. It saves this file as the
home-user-public_html-example.com.json file, where
home-user-public_html-example.com represents the Site Publisher website's target directory, with hyphens (
- ) instead of slashes (
The configuration file stores all of the data for your Site Publisher website. We strongly recommend that you do not modify this file directly. Instead, always use cPanel's Site Publisher interface (cPanel >> Home >> Domains >> Site Publisher) to modify Site Publisher websites.
Your selected template determines the other files that your website uses. These files may include HTML files, images, or other types of files.