Friday, 15 February 2019

Default cpanel index page for new customer

Display your custom page for your new cpanel account.
1. Login your reseller cpanel
2. find cpanel3-skel folder
3. create folder public_html
4. create index.php file
5. copy given code and paste save index.php
6. login WHM and create new account
7. visit new account in browes you will be see output of given code.

<--- code start here --->

<!DOCTYPE html>
body {
  background-color: lightblue;

h1 {
  color: white;
  text-align: center;

p {
  font-family: verdana;
  font-size: 20px;
<center><table width="400px"><tr><td>
$domain = $_SERVER['SERVER_NAME'];

echo $domain;
<p>Your hosting account up and running. If you are customer visit laters and if you are owner of this website <a href="https://<?php
$domain = $_SERVER['SERVER_NAME'];
echo $domain;
?>:2083"target="_blank">login</a> and upload your website</p>

<--- code end here --->