hosting

If the reseller is selling Web Hosting

Upgrading / Downgrading an Order

After purchasing an Order under a specific Plan should your requirements change, you may choose to switch to another Plan.

Note
  • If while switching to another Plan, you choose a Plan of a lower pricing, then the credit available to you, needs to be immediately utilized towards
    extending the duration of the new Plan.

  • If your Order has Expired, you will not be able to switch Plans, until you have Renewed your existing Order.

  • The upgrade / downgrade functionality is not available for Orders under the following products:

    • Enterprise Email

    • Enterprise Email Lite

    • Dedicated Server

    • Managed Server

  • A SiteLock Order can only be switched (upgraded) to a Plan of higher Pricing.


  • A Weebly Order cannot be downgraded to the Free Plan.

Impact of Switching Plans

Switching from an existing Email Hosting Plan

When you select another Email Hosting Plan or a Website Builder Plan, your existing Email Hosting Order will not get affected under any circumstance:

New Plan Category Impact
Another Email Hosting Plan No change to existing Order
Website Builder Plan No change to existing Order

Switching from an existing Website Builder Plan

When you select another Website Builder Plan or an Email Hosting Plan, your existing Website Builder Order may get affected, depending upon the Plan you chose to switch to:

New Plan Category Impact
Email Hosting Plan Website Builder would be Deleted
Another Website Builder Plan No change to existing Order

To Switch to Another Plan

  1. Login to your Control Panel, Search for the domain name for which you have purchased this Order and go to the
    Order Information view. See details

  2. Click the See Plans & Pricing button.

  3. Click the Switch Plan button under the Plan you wish to switch to and proceed.

    Note

    If the cost of the new Plan is lower than your existing Plan, you would be displayed the arrears. To utilize this credit, you need to select a longer duration of this new Plan, before switching Plans.

    Resellers: The option to extend the duration of the new Plan would be available only if you have added Pricing Slabs of higher duration.

  4. Proceed to pay for the Invoice generated, in case you are switching to a Plan of higher Pricing.

HTTP to HTTPS Redirection - IIS

Windows servers supports IIS URL Rewrite module. You can make use of this module to automatically redirect your visitors from HTTP to HTTPS.

Setting the HTTPS Redirection

  1. Ensure that the Digital Certificate is properly installed on your Hosting Order, and the site is resolving on https://yourdomainname.com.

    Note

    Your site will work on https://yourdomainname.com or https://www.yourdomainname.com or https://subdomain.yourdomainname.com, depending on the Common Name for which you had the certificate issued. Resolving HTTPS on anything other than this Common Name would result in a certificate name mismatch error.

  2. Create a web.config file under the site's directory and add the following lines to it. In case there already exists a web.config in your site's directory, carefully edit it to add these lines:


















    <common_name> needs to be replaced by the Common Name for which the Digital Certificate is issued.

HTTP to HTTPS Redirection - Apache

By default, Linux Servers have the mod_rewrite module enabled. You can make use of this module to automatically redirect your visitors from HTTP to HTTPS.

Setting the HTTPS Redirection

  1. Ensure that the Digital Certificate is properly installed on your Hosting Order, and the site is resolving on https://yourdomainname.com.

    Note

    Your site will work on https://yourdomainname.com or https://www.yourdomainname.com or https://subdomain.yourdomainname.com, depending on the Common Name for which you had the certificate issued. Resolving HTTPS on anything other than this Common Name would result in a certificate name mismatch error.

  2. Create a .htaccess file under the site's directory and add the following lines to it. In case there already exists a .htaccess in your site's directory, carefully edit it to add these lines:


    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{REQUEST_URI}

    <common_name> needs to be replaced by the Common Name for which the Digital Certificate is issued.

ASP Script to Test MSSQL Database Connectivity

Provided below is a simple ASP script to test MSSQL database connectivity.

Sample Script


Set cn = Server.CreateObject("ADODB.Connection")
cn.Open "Provider=SQLOLEDB;Server=;Database=;UID=;PWD=;"
cn.CommandTimeout = 900
cn.Close
Response.write("Connected Successfully")
%>

Explanation about the variables used in the script:

  • Server: The MSSQL Server IP needs to be mentioned.

  • Database: Specify exact database name. For example, reseloaq_mssql.

  • UID: Mention the database user associated with the database.

  • PWD: Mention the password for the above database user.

PHP Script to Test MySQL Database Connectivity

Provided below is a simple PHP script to test MySQL database connectivity. The result of this script displays the names of the tables present within the specified database.

Sample Script



$connect=mysql_connect("dbserver","dbuser","dbpassword") or die("Unable to Connect");
mysql_select_db("dbname") or die("Could not open the db");
$showtablequery="SHOW TABLES FROM dbname";
$query_result=mysql_query($showtablequery);
while($showtablerow = mysql_fetch_array($query_result))
{
echo $showtablerow[0]." ";
}
?>

Explanation about the variables used in the script:

  • dbserver: Mention the value as localhost for Linux Hosting (cPanel). For Windows Hosting (Plesk), MySQL Server IP needs to be mentioned.

  • dbname: Specify complete database name including the prefix. For example, reseloaq_mysql.

  • dbuser: Mention the database user associated with the database.

  • dbpassword: Mention the password for the above database user.

Customizing the Upsell Modal

During the Domain Registration process, the SuperSite 2 displays a modal which upsells Linux Hosting by default. Through your SuperSite 2 Admin Area, you may select a different product to sell in the Upsell Modal.

How do I Select a Product to Sell in the Upsell Modal?

Step 1: Login to your SuperSite 2 Admin Area. Learn how.

Step 2: Navigate to the Upsell settings page.

  • In the Menu, click on the Settings link.


  • Click on the Change Product button under Customize Upsell Modal.

Step 3: Select a product to Upsell.

  • You may choose to upsell either a Combo Plan or any other product. Click on Upsell a Combo Plan or Upsell a Product as required.


  • If you have selected a Combo Plan, you can select a single plan to upsell from the drop down list under Upsell a Combo Plan.


  • In case you wish to upsell a different product, you can select it from the drop down list under Upsell a Product.


  • If you wish to disable the Upsell Modal, you can select None from the list under Upsell a Product.


  • Click on the Save button to submit the changes.

Note

  • The drop-down menu will display only those Products which you have chosen to sell. Products set to No New Orders or Do Not Sell will not be listed here.

  • This process will customize the Upsell Modal for every Language SuperSite that you have created.

  • Your SuperSite 2 will not display the modal if you choose to sell only Domain Names. Hence, the Customize Upsell Modal section will not be visible in your SuperSite 2 Admin Area in this case.

  • If you have chosen to upsell a Combo Plan, the Upsell Modal will be displayed to the customer only if they select a TLD available with the Combo Plan.

Legacy Web Hosting Deprecation

The Legacy Linux and Windows Hosting Products offered by have been deprecated w.e.f. April 16, 2013. The below changes have come into effect due to this deprecation:

Note

will continue to support Legacy cPanel Linux and Plesk Windows Hosting Orders. You can manage/renew these Orders as usual.

Control Panel

  • Customer Control Panel: The Web Hosting option under the Quick Links -> Add New Order section has been removed.

  • Reseller Control Panel: The Products -> Web Hosting -> Buy sub-menu has been removed.

API

  • The API Add Order call will throw an exception if the Plan category is linux_hosting_plan or windows_hosting_plan.

  • The API Modify/Upgrade Order call will be processed only if the new Plan category is websitebuilder_plan or email_plan.

    The new Plan category can be linux_hosting_plan only if the current Plan category is linux_hosting_plan. Similarly, the new Plan category can be windows_hosting_plan only if the current Plan category is windows_hosting_plan. In all other cases, an exception will be thrown if the new Plan category is linux_hosting_plan or windows_hosting_plan.

SuperSite

  • The Web Hosting section will not display any Plans for the Legacy Linux and Windows Hosting Products.

  • A Linux Web Hosting Plan can only be switched to another Linux Web Hosting Plan. Similarly, a Windows Web Hosting Plan can only be switched to another Windows Web Hosting Plan.

    You can switch from an existing Website Builder Plan to another Website Builder Plan or an Only Email Hosting Plan.

    You can switch from an existing Email hosting Plan to another Email Hosting Plan or a Website Builder Plan.

SSH Access

What is Secure Shell (SSH)?

Secure Shell (SSH) is a cryptographic network protocol for secure data communication, remote shell services or command execution and other secure network services between two networked computers that connects, via a secure channel over an insecure network, a server and a client (running SSH server and SSH client programs, respectively). SSH is typically used to log into a remote machine and execute commands. It can transfer files using the associated SSH file transfer (SFTP) or secure copy (SCP) protocols. The standard port used to connect through SSH is 22.

Enabling SSH Access

supports SSH access on all its Linux (Single Domain, Multi Domain and Reseller) Hosting Servers. SSH connection to 's Linux Hosting Servers can be through key or password based authentication.

Connecting to a Server through SSH using Password authentication

For Linux:

  1. Run the below command:

    ssh -l user remote-server
  2. Enter the cPanel password.

For Windows:

  1. Open Putty and enter the Remote Host Name or IP Address.

  2. Click Open and enter the cPanel username and password.

Connecting to a Server through SSH using Key based authentication

Generating a SSH Key Pair

You can generate the key pair (public key and private key) from the cPanel or your local computer.

cPanel

  1. Login to the cPanel of the domain for which you wish to generate the key pair.

  2. Click on SSH Shell Access under the Security section.

  3. Click on Manage SSH Keys.

  4. Click on Generate a New Key.

  5. Enter the key name and password and click on Generate Key.

Note

The private key needs to be stored on your local computer.

  • For Linux, copy the key file to your ~/.ssh folder.
  • For Windows, save the key file to a safe location.

Local Computer

For Linux:

Run the below command:

ssh-keygen -t dsa

OR

ssh-keygen -t rsa

The output would be similar to:

Generating public/private dsa key pair. 
Enter file in which to save the key (~/.ssh/id_dsa): Press [Enter] key 
Enter passphrase (empty for no passphrase): Press [Enter] key 
Enter same passphrase again: Press [Enter] key 
Your identification has been saved in ~/.ssh/id_dsa 
Your public key has been saved in ~/.ssh/id_dsa.pub 
The key fingerprint is: 
<some string>
		

OR

Generating public/private dsa key pair. 
Enter file in which to save the key (~/.ssh/id_dsa): Press [Enter] key 
Enter passphrase (empty for no passphrase): Press [Enter] key 
Enter same passphrase again: Press [Enter] key 
Your identification has been saved in ~/.ssh/id_dsa 
Your public key has been saved in ~/.ssh/id_dsa.pub 
The key fingerprint is: 
<some string>
		

id_dsa or id_rsa is the private key and id_dsa.pub or id_rsa.pub is the public key.

For Windows:

  1. Download PuTTY.

  2. Download PuTTYgen.

  3. Open PuTTYgen.

  4. Select the SSH-2 RSA (or SSH-2 DSA) option and click the Generate button.

  5. Move mouse randomly over the empty space below the progress bar to create some randomness in the generated key.

  6. Click the Save private Key button, without providing any passphrase.

  7. Click Yes on the window asking for confirmation for saving the key without a password.

  8. Save the key file with an appropriate name, say ssh_private_key.ppk.

  9. Upload the public key to the hosting server from the cPanel, using the Import Key option

Authorize the SSH Server to use the Public Key

  1. Click on Manage Authorization for the key you wish to authorize.

  2. Click on Authorize to authorize the key.

  3. Or Deauthorize to deauthorize it.

Accessing the Remote Server

For Linux:

Run the below command:

ssh -l user remote-server

For Windows:

  1. Open Putty and enter the Remote Host Name or IP Address.

  2. In the left menu, click Data under Connection and enter the cPanel username in the Auto-login username field.

  3. In the left menu, click Auth under Connection -> SSH and enter the path of the saved private key file.

  4. Click the Open button to connect to the server.

Modifying the hosts file

What is host file?

A hosts file is an address book, situated on your local desktop, that maps a host name to an IP address (network name resolution). Generally, a domain name (host name) is translated in to IP address via the DNS resolution process. However, the host entries that are present in this file will bypass this DNS resolution.

This can be of great help when:

  • You have modified the Name Servers, and are viewing the cached results due to the DNS propagation delay.

  • You are in process of migrating the hosting server, and want view the website on the new server when its still under development. This way you can preview the site in the developmental stage, whereas your visitors will continue to view the live website on the old server. Thus, the traffic to your site remains unaffected.

    Note

    You can also use the Direct/Temp URL to preview the site on 's server.

  • Creating a hosts file

    To view the results with such immediate effect, you can define a host/domain name in the hosts file.

    For Windows

  1. Go to C:\Windows\System32\drivers\etc and locate the hosts file.

  2. Open it in any text editor like Notepad, Notepad++, etc.

  3. Add your host entires as shown in the snapshot below and save the file.

For Linux

  1. Locate the hosts file at /etc/hosts.

  2. Run the below command to edit file:

    vim /etc/hosts

  3. Add your host entires as shown in the snapshot below and save the file.

Note

You may also need to flush your DNS. Your website's IP address may be saved in your computer's cache. So you need to clear this temporary data so that the IP address you just entered into your hosts file will take effect. To do so:

For Windows

  1. Click your Start Menu.

  2. Go to Accessories and then click Command Prompt.

  3. Run the below command:

    C:\> ipconfig /flushdns

  4. The output would be similar to:

For Linux

  1. Login into the shell of your machine.

  2. Run the below commands:

    root@support [~]# cd /etc/rc.d/init.d
    root@support [/etc/rc.d/init.d]# ./nscd restart

  3. The output would be similar to:

If you have any browsers open, close them and then open them again. You should now be able to successfully test your website on your new server.

Disable SSL

Description

Disables SSL for an existing Web Hosting Order. To learn more, click here.

Note

This API call will not result in a refund being processed for disabling SSL.

Parameters

Name Data Type Required / Optional Description
auth-userid Integer Required Authentication Parameter
api-key String Required Authentication Parameter
order-id Integer Required The OrderId for which SSL needs to be disabled.

HTTP Method

POST

Example Test URL Request


https://test.httpapi.com/api/webservices/disable-ssl.json?auth-userid=0&api-key=key&order-id=0

Response

Returns a map of the execution details of the disabling of SSL operation.