How to use skeleton files to provide default content for customer accounts
This article describes how to use skeleton files to provide default content for new customer accounts.
Using skeleton files
As a reseller, when you create a new customer account, its public_html and public_ftp directories are empty by default. Because there is no index file present, visitors to the new site receive a “403 Forbidden” error message.
However, there is a way to provide default content for every new account that you create in WebHost Manager. For example, you can create an index.html file that is copied to the public_html directory of every new account. The HTML file might say “Welcome! Your site is working, but there is no content yet” or something similar. You can do the same thing for FTP, adding default files that are copied to every new account.
These default files are referred to as “skeleton” files, because they provide a basic structure for all new accounts.
To set up skeleton files for your reseller account, follow these steps:
- Log in to your reseller cPanel account.
- In the Files section of the cPanel home screen, click File Manager. The File Manager Directory Selection dialog box appears.
- Click Home Directory, select the Show Hidden Files (dotfiles) check box, and then click .
- In the file listing pane, double-click the cpanel3-skel directory.
- There are two directories in the cpanel3-skel directory:
- public_ftp: Any files or directories that you create here are automatically copied to the public_ftp directory of new accounts.
- public_html: Any files or directories that you create here are automatically copied to the public_html directory of new accounts. For example, you can create a default index.html file that appears for all new accounts.
- Log in to WebHost Manager and create a new account. The new account's public_html and public_ftp directories contain the files you added to the cpanel3-skel directory.
- Managing WHM accounts
After you have created at least one package in WebHost Manager, you can create an account. Learn how to create, modify, and delete accounts here.
- Managing WHM packages
Before you can create a customer account in WebHost Manager, you must first create a package. A package is a collection of predefined settings for an account. Learn how to set up packages in this article.