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>
<html>
<head>
<style>
body {
  background-color: lightblue;
}

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

p {
  font-family: verdana;
  font-size: 20px;
}
</style>
</head>
<body>
<center><table width="400px"><tr><td>
<h1><?php
$domain = $_SERVER['SERVER_NAME'];

echo $domain;
?></h1>
<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>
</td></tr></table>
</center>
</body>
</html>

<--- code end here --->

1 comment:

  1. Very efficiently written information about cpanel. If you are looking for the Cpanel server management and support services at reasonable price then, Cpanel server management have dedicated staff offering technical support.

    ReplyDelete