managing the site


There is any facility in H-Sphere control panel through which we can manage our website.

U can use WebShell File Manager and htProtect for managing your site

WebShell allows you to copy, move, delete, and rename files and directories in your home directory on the server. Also, you can use it to upload, download, compress and decompress files as well as preview them in the browser.

Starting from H-Sphere version 2.3, htProtect utility is integrated into WebShell. Protect utility allows you to password-protect any directory on your site so only authorized visitors can open its content with their browsers.

To launch WebShell, click the File Manager icon on the Quick Access page in the Account menu.
WebShell and Protect manuals are available from the WebShell interface, Help button.

Webalizer, ModLogAn and Urchin Web Analyzers are also important features of H-Sphere control panel.

Information about the operation of your site is critical for decision-making. To obtain this information, you need to analyze statistics data that is written to log files in your home directory on the server:

  • Error log – stores data about errors generated by the server (e.g. Page Not Found error) or by your CGI scripts;
  • Transfer log – stores combined data about every visit to your site, including:
  • Remote host IP (i.e. visitor’s IP);
  • Time of request (i.e. when visitor requested the page);
  • First line of request;
  • Error generated by request, if any;
  • Size of message sent in response to the request;
  • Referrer (i.e. from which page visitor was directed);
  • Agent ID (i.e. type of browser or another agent and related information, such as user’s OS, etc.) ;
  • Referrer log – stores the list of URLs from which visitors are referred to your site; and
  • Agent log – stores data about agents used to enter the site — such as browsers or any other Internet-based software — and all related data.

To enable or disable writing log files, do the following:

  • Select domain Info in the Domain Settings menu.
  • Click the Edit icon next to the Web Service field.
  • On the page that shows, scroll down to the Settings section and click the ON/OFF icon next to the log files.

To view the log files records, do the following:

  1. Select Quick access in the Account menu and click the Web Options icon.
  2. Choose the necessary domain
  3. Scroll down to Log files and click the View icon next to it.
  4. List of log files shows.
  5. Click the necessary file and all its records will show.

Note: Entering end in the Line Number field will show a list of records from the tail of a logfile.

The statistics data in the log files is difficult to read. Web analyzers will read log files to produce visual reports in HTML format for viewing through a browser.

To enable these analyzers and view statistics reports for your sites, do the following:

  1. Select Domain Info in the Domain Settings menu.
  2. Click the Edit icon next to the Webalizer field.
  3. On the page that shows, click OFF to switch it to ON next to the Webalizer field.
  4. Click the Apply link on the right of this domain.
  5. Click the View icon to see your statistics report.

Note: To use Urchin, you need to buy a license.

U can also use Reverse Traceroute

This net troubleshooting tool allows you to ping any Internet host from your hosting server. In other words, you can use this tool to determine if a host is reachable and how long it takes for the signal to go all the way through.

To launch the Reverse Traceroute tool, do the following:

* Select Trace Route link in the Domain Settings menu.
* In the form that appears, enter the host name or the IP address of the server you would like to ping
*Select the timout period. If you see the connection is slow, select a bigger period.
* Click Trace and wait for the result. The next page will show all the hosts that were passed to reach the target server.

authorized with particular directories only


Hi,
Some of my friends and me working on a project. I want to authorized them
to work with particular directories of my account. how can i do it?

The simplest way to authorize your friends or colleagues to work with particular directories of your account is to create FTP subaccounts. An FTP subaccount is a combination of a username and a password, which gives full FTP permissions to a single directory, without giving access to the root directory, other directories or the control panel. No dedicated IP is required for FTP subaccounts. Although each FTP subaccount has a login which is different from yours, both have the same ID in the system.

To create a new FTP subaccount:

* Select FTP User link in FTP/User Account menu.
* At the bottom of the page that shows, find FTP sub-accounts and click the Add icon.
* On the next page, enter the FTP login and password that will be used by this other user, and the directory this user will be restricted to.
The directory must be relative to your home directory. If you leave the directory field empty, FTP sub-users will have access to your whole home directory.

FTP subaccount traffic is a part of the Total/Summary traffic, but you can always see how much FTP traffic has been run up by an individual FTP subaccount by going to the FTP Manager page and clicking the Edit icon next to the subaccount login.

U can also use Virtual FTP

Virtual FTP provides ampler possibilities than FTP sub-accounts. You can give your authorized Virtual FTP users access to more than one directory and specify a different set of permissions for each directory. Virtual FTP users log right into your root, but can enter only those directories you allow them to enter.

To provide Virtual FTP Access to a certain domain, do the following:

1. If you are using a dedicated IP, skip this step. Otherwise, switch to dedicated IP.
2. Select FTP in FTP/User Account menu.
3. Enable FTP for this domain, If you have several domains, choose the one to enable virtual FTP for.
4.Click the confirmation link to agree with the charges.
5. On the next page, add server name for the new virtual host. This name will appear in the welcome message when guest users connect to your server with FTP clients. Also, enter the e-mail address by which FTP users can reach you with questions or comments.
6.Click the Edit icon for FTP for this domain.
7. Click the Add icon for Virtual FTP Users and create a new Virtual FTP User
8. Click the Add icon for Virtual FTP Directories and enter the name for the new Virtual FTP Directory
End it with a slash, e.g.: Dir1/. The location must be specified relative to root. To create a virtual FTP directory inside a different directory, include the path, for example UserDirs/Dir1/.
On the same page, specify permissions to this directory:
Read: check to allow file downloads from this directory.
Write: check to allow file uploads to this directory. List: check to allow viewing / browsing the contents of the directory. It is usually used jointly with Read.
Grant Permissions to all users: check to grant these permissions to all your Virtual FTP users. If you leave this property unchecked, you will have to define permissions on this directory individually for each Virtual FTP User.
9.Click the Edit icon next to the directory you have just created. If you haven’t granted the same permissions to all your Virtual FTP Users, you can specify permissions for each of them individually:

If you have chosen to grant the same permissions to all users, you can skip this step.

Public FTP access to a dedicated directory


I want to give public FTP access to a dedicated directory in my account. How can i do it?

Anonymous FTP can fulfill your requirements.

This feature allows you to give public FTP access to a dedicated directory in your account. A special directory is created in your root, and its content can be viewed and downloaded, but not uploaded.

Anonymous FTP becomes available only after you create a Virtual FTP server. To configure Anonymous FTP, do the following:

  1. Skip this step if you are already using a dedicated IP.
    Select FTP in FTP/User Account menu.
  2. If you have several domains, choose the one to enable virtual FTP for. On the page that appears, switch to dedicated IP. Click here to read about the difference between shared and dedicated IPs.
  3. Skip this step if you have already enabled Virtual FTP.
    Select FTP in FTP/User Account menu. Enable FTP for this domain:ftp
    4.On your control panel home page, select FTP in FTP/User Account menu. Enable Anonymous FTP for this domain

Anonymous FTP Upload Facilities provides this

If you want to allow anonymous FTP users to upload files, enable Anonymous FTP Upload Facilities by doing the following:

  1. Enable Anonymous FTP.
  2. At the bottom of the FTP vhost page you will find a new option to enable anonymous FTP upload facilities:

Turn it on. This will create a dedicated directory inside the Anonymous FTP directory.
The Uploads (Windows based plans) / Incoming (Unix based plans) directory have only ‘upload’ permissions, so it will allow neither downloading nor viewing its content.

Redirect visitor from one web page to another page


I want to redirect my visitor from one web page to another page. how it is possible.

Redirect URL can help u

Use this feature to redirect your visitors from one web page to another or even to a different website.

To create a redirect in a Unix-based account, do the following:

1. Select Quick Access in the Account menu.
2. Click the Web Options icon.
3. Click the Edit icon next to the domain you need.
4. On the Web Service page, scroll down to find the Redirect option and click the Add icon next to it.
5. Agree with the charges.
6. On the page that appears, create the redirect rule.

own index pages


I want to set my own index pages instead of those specified in the default settings. how can i do it?

Directory Indexes tool allows you to set your own index pages instead of those specified in the default settings. In other words, you can tell your visitors’ browsers which page to load as they hit your domain. Usually, it’s /index.html by default, but you can set any other custom welcome page.

Example: If a visitor goes to your site http://www.cpwebhosting.net, the first page to open will be http://www.cpwebhosting.net/index.html. However, if you set /welcome.html as the directory index, the page to open will be http://www.cpwebhosting.netwelcome.html.

Thanx alemcherry

But how can we set your custom directory indexes?

To set your custom directory indexes, do the following:

  1. Select Quick Access in the Account menu.
  2. Click the Web Options icon on the page that shows.
  3. Click the Edit icon next to the domain you need.
  4. On the Web Service page, scroll down to find the Directory Indexes option and turn it on.
  5. Agree with the charges.
  6. In the box that appears, enter the names for files that will be treated as indexes. Put file names in the descending order of priority and separate them with spaces (e.g. index.html cgi.bin about.html)
  7. Skip this step if you are using a Windows-based plan.
    At the top of the Web Service page, click the Apply link for the Server configuration to change. The changes will take effect within 15 minutes.
  8. To edit the list you have made, click the Edit icon next to the Directory Indexes option: with spaces (e.g. index.html cgi.bin about.html).

If you are using a Unix-based plan, click the Apply link at the top of the Web Service page.

MIME Types


What is MIME Types and how can we use it?

MIME Types utililty allows you to define file formats that are not defined in web browsers. This enables the browser to display or output files that are not in HTML format, just like it displays simple text files, .gif graphics files and PostScript files.

To add a definition for your own file format, do the following:

1. Select Quick Access in the Account menu.
2. Click the Web Options icon on the page that shows.
3. Click the Edit icon next to the domain you need.
4. On the Web Service page, scroll down to find the MIME Type option and click the Add icon on its right.
5. Agree with the charges.
6. On the page that appears, enter the extension for this file type
Begin file extension with a dot. The MIME type must comply with MIME type specifications, e.g.: text/rtf or video/mpeg.

Powerful language – PHP


Hi,

I am very much fond of doing programming in PHP, as I find, that this language is a powerful language for creating dynamic web content. form processing, sessions, databases, XML, and graphics. With the technical support provided by the cpwebhosting team, I have launched lot of websites in PHP, and I am very much satisfied with my programmers, who have done a great job for me.

Manish

CGI scripts for dynamic web pages.


I want to add CGI scripts for my dynamic web pages.

Plz. help

To add CGI support, it will suffice to create a CGI alias or, in other words, to specify a CGI file extension and a CGI handler for it, for instance Perl. For example, you can specify that all *.cgi files must be treated as executable Perl scripts.

To add a CGI alias, do the following:

1. Select Domain info in the Domain Settings menu.
2. Click the Edit icon in the Web Service field.
3. On the Web Service page that shows, scroll down to find the CGI-dir option and turn it on. Now all files in the cgi-bin directory will be treated as CGI executables. This is the directory to place all your cgi scripts.
4. On the Web Service page, scroll down to find the CGI option and click the Add icon on its right.
5. Enter an extension beginning with a dot and select the handler from the list:

Can i also add PHP scripts and how?

Yes, u can add PHP scripts

To add PHP support, do the following:

1. Select Domain info in the Domain Settings menu.
2. Click the Edit icon in the Web Service field.
3. On the Web Service page, scroll down to find the PHP option and turn it on.
4. Agree with the charges.
5. Skip this step if you are using a Windows-based plan.
At the top of the Web Service page, click the Apply link for the Server configuration to change. The changes will take effect within 15 minutes.
6. On the Web Service page, click the Add icon that has appeared next to the PHP option.
7. On the page that appears, enter an extension for your PHP pages beginning with a dot, for instance .php4. Select the MIME type from the list.
8. Skip this step if you are using a Windows-based plan.
At the top of the Web Service page, click the Apply link for the Server configuration to change. The changes will take effect within 15 minutes.

U can also add ASP

To add support for ASP (Active Server Pages) in a Windows-based account, do the following:

1. Select Domain info in the Domain Settings menu.
2. Click the Edit icon in the Web Service field.
3. On the Web Service page, scroll down to find the ASP option and turn it on.

customizing storefront


Hi,

We can easily customize our storefront, Let us assume that your storefront is in English, first of all download 2 documents that are there in the webshell file management system.

Path: /yourdomain.com/catalog/includes/languages/english.php
Path: /yourdomain.com/catalog/includes/languages/english/default.php

Now, Open default.php using WebShell or NotePad:

define(‘TEXT_MAIN’, ‘This is a demonstration online-shop, <b>any products purchased will not be

delivered nor billed</b>. Any information seen on these products are to be treated

fictional.<br><br>If you wish to download this sample shop, or to contribute to this project,

please visit the <a href=”http://oscommerce.com”><u>support site</u></a>. This shop is based on

<font color=”#f0000″><b>’ . PROJECT_VERSION . ‘</b></font>.’);

define(‘TABLE_HEADING_NEW_PRODUCTS’, ‘New Products For %s’);
define(‘TABLE_HEADING_UPCOMING_PRODUCTS’, ‘Upcoming Products’);
define(‘TABLE_HEADING_DATE_EXPECTED’, ‘Date Expected’);

if ($category_depth == ‘products’ || $HTTP_GET_VARS
[‘manufacturers_id’]) {
define(‘HEADING_TITLE’, ‘Let’s See What We Have Here’);
define(‘TABLE_HEADING_IMAGE’, ”);
define(‘TABLE_HEADING_MODEL’, ‘Model’);
define(‘TABLE_HEADING_PRODUCTS’, ‘Product Name’);
define(‘TABLE_HEADING_MANUFACTURER’, ‘Manufacturer’);
define(‘TABLE_HEADING_QUANTITY’, ‘Quantity’);
define(‘TABLE_HEADING_PRICE’, ‘Price’);
define(‘TABLE_HEADING_WEIGHT’, ‘Weight’);
define(‘TABLE_HEADING_BUY_NOW’, ‘Buy Now’);
define(‘TEXT_NO_PRODUCTS’, ‘There are no products to list in this category.’);
define(‘TEXT_NO_PRODUCTS2’, ‘There is no product available from this manufacturer.’);
define(‘TEXT_NUMBER_OF_PRODUCTS’, ‘Number of Products: ‘);
define(‘TEXT_SHOW’, ‘<b>Show:</b>’);
define(‘TEXT_BUY’, ‘Buy 1 ”);
define(‘TEXT_NOW’, ” now’);
define(‘TEXT_ALL’, ‘All’);
} elseif ($category_depth == ‘top’) {
define(‘HEADING_TITLE’, ‘What’s New Here?’);
} elseif ($category_depth == ‘nested’) {
define(‘HEADING_TITLE’, ‘Categories’);
}
?>

Page “heading title” can be easily modified. But do the following when you are editing the document:
1. Make copies of english.php and default.php in a separate folder before editing the source

code. This way, if you inadvertently mess up the syntax you can always start over with the

untouched file. Failure to do so could destroy your cart.

  1. You can insert some HTML tags like <b> or <font> in between the ‘ ‘ where the text resides.

For example: define(‘TEXT_SHOW’, ‘<b>Show:</b>’);

  1. When you are done editing any PHP file, upload it back where you got it from and refresh your

storefront page to see the changes. In WebShell make sure the properties of the PHP file are

marked as “Executable” on the right hand side.

Protect php source code


hi,
Does any one have a better idea to protect PHP files so that you can distribute a ‘release’ without the customer being able to read the source files. There are tools on the internet which costs money, BUT your are dependant on their software and if its not open source, its not trustworthy.

Try PHP Encoder to protect, encrypt and encode your PHP source code assets. Includes encryption, protection, security and obfuscation.