What are the Automatic Steps cPanel Performs when you Launch a Site Publisher Website?
Posted by Allura on 05 04 2019.
This blog is typically targetted for cPanel and WHM version 68. One can navigate to (cPanel >> Home >> Domains >> Site Publisher) for accessing this feature. This interface can be used to create a simple website with valuable business information. It can also help in creating a placeholder page while preparing a more defined website.
Additional Site Publisher templates can be created by the hosting providers and third-party developers. To know more, one can go through our Guide to Site Publisher Templates documentation.
Site Publisher Files
There are certain steps that cPanel performs when a Site Publisher website is published:
- The first step that the script does is, it saves a copy of the domain’s document root’s current contents. It saves it in the form of a tarball in the /home/user/site_publisher/backups/ directory, where a user will represent one’s cPanel account’s username. It is to note that the ‘tarball’ will not be saved if the system is found encountering a file system or file quota error during the step. As a result, this will not publish the new Site Publisher website.
- Next step followed is, the system removes any existing Site Publisher backups older than 30 days.
- Thirdly, the system works in generating the new Site Publisher website’s files and duly stores it in the domain’s document root.
- The system overwrites the existing file with the new file if in case, one of the new website’s file makes a conflict with an already existing file.
- The system works in restoring the website’s original contents from the backup ‘tarball’ if in case, the system faces an error during its work. As a result, it prevents the publishing of the new Site Publisher website.
- The system works in saving configuration information for the new website in the /home/user/site_publisher/configurations/ Here, the user represents the cPanel account’s username. This file gets saved 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 the help of hyphens (-) instead of slashes (/).
- It is important to know that The configuration file stores each valuable data for one’s Site Publisher website. It is better not to modify this file directly. Instead of that, one can use cPanel’s Site Publisher interface (cPanel >> Home >> Domains >> Site Publisher) for modifying.
The selected template will determine the other files that one’s website uses. These files may include HTML files, images, or other types of files.
To know more on template development, one can read our Guide to Site Publisher Templates documentation.
One can contact its hosting provider or the template creator for getting more knowledge on different templates.
All information about the actions performed by cPanel in publishing Site Publisher Website is outlined in this review.