Site Publisher

Share This Post

Share on facebook
Share on linkedin
Share on twitter
Share on email

Overview

This interface enables you to quickly create a simple website, even if you have never created a website before. When you use this interface, you will select an appropriate template for your website, and then enter the website content that the template requests.

For example, you can use this interface to create a simple website with your business’s information, or to create a placeholder page while you prepare a more elaborate website.

Create or modify a Site Publisher website

To create or modify a Site Publisher website for one of your domains, perform the following steps:

  1. Select a domain from the list of available domains, addon domains, and subdomains.

    • If you only own a single domain, or if you accessed this interface via a link after subdomain or addon domain creation, the system automatically selects that domain and proceeds to the next step.
    • For more information about domain selection, read the Select a domain section of this document.
  2. Select a template from the available options.

    • The Select a Template section of this interface displays a preview image, name, and description for each available Site Publisher template.
    • If you selected a domain that already uses a Site Publisher website, the system preselects the current template.
  3. Enter or update the desired website content.

     4.  Click Publish. A confirmation message will appear with a link to your new website.

Select a Domain

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.

  • Click the domain name to open the domain in a new browser window.
  • Click the website directory to open that directory in cPanel’s File Manager interface (cPanel >> Home >> Files >> File Manager) in a new browser window.

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.

Site Publisher files

When you publish a Site Publisher website, cPanel automatically performs the following actions:

  1. 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.

      2. The system deletes any existing Site Publisher backups that are more than 30 days old.

     3. The system generates the new Site Publisher website’s files and stores them in the domain’s document root.

    • If one of the new website’s files conflicts with an existing file, the system overwrites the existing file with the new file.
    • If the system encounters an error during this step, it restores the website’s original contents from the backup tarball and does 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 (/).

Your selected template determines the other files that your website uses. These files may include HTML files, images, or other types of files.

  • For information about template development, read our Guide to Site Publisher Templates documentation.
  • For more information about individual templates, contact your hosting provider or the template creator.

Subscribe To Our Newsletter

Get updates and learn from the best

More To Explore

Email

Email Deliverability in cPanel

Use this interface to identify problems with your mail-related DNS records for one or more of your domains. The system uses these records to verify that other servers can trust it as a sender.

Virus Scanner

Overview The Virus Scanner interface scans your cPanel account for security threats. If ClamAV® Virus Scanner identifies a security threat, the system prompts you to perform an

Do You Want To Boost Your Website?

Share your requirements with us and we will get in touch with you shorlty.

ask
anything...

Get in touch