Initial Site Content

Hi Guys,

This is an enhancement request, unless it already exists and I am just not sure how to go about it.

When I setup a new client using a Specific Server Template, I would like to have an initial index.php file deployed to their public_html folder so that a site forbidden message isn't displayed and they have information on where to look next for setting up their site.

I have looked high and low for this option but only found the options for custom Site Disabled page and Script Installers.

It would be really cool to have a section in the Server Template -> Apache website above the Disabled Site for Initial Site HTML or an initial index.php file path to copy from.

If there is already a way to do this I am all ears : )


Closed (works as designed)


Hi Jamie,

I am creating these new sites with API calls in WHMCS. What is the proper syntax for choosing a template from the API or passing the HTML content?


You need to use the style parameter followed by the content style name. The initial text can be set with the content parameter.

The list-styles API command can be used to list available styles.

Fantastic, thank you Jamie. I will contact Matt at WHMCS and have them add this to their Virtualmin module.