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.

what is traffic and traffic Limit


Hi,
I have a web hosting account. can anyone tell me what is traffic and traffic Limit?

Traffic is the data transferred to and from your website by your visitors plus the data transferred to and from your mailbox by incoming and outgoing mail. You can also have other types of traffic that make up your Summary Traffic.Control Panel navigation is not included into the total traffic.

The use of traffic cannot be physically restricted. This means nothing happens if you exceed your traffic limit that initially equals Free gigabytes allowed with your account: your web-sites, mailboxes and virtual ftp accounts will continue to work. Each GB beyond the limit, however, will be charged at the overlimit rate. To prevent overlimit charges, you can reserve more traffic by changing your traffic limit to the bandwidth level you are expecting to have. With traffic limit increased, each traffic month you’ll be accrued recurrent fee for the whole booked amount, which is usually lower than the usage(overlimit) charges. .

Thanx Axe Solutions

How can we change traffic limit ?

To change traffic limit:

1. Select Account Settings in the Account Menu.
2. Click the Change icon in the Transfer Summary Traffic field.
3. On the page, enter summary traffic you expect to run up over the month.

When you are changing traffic limit, the current traffic cycle closes, and the following calculations are performed:

1. Traffic limit for a traffic cycle is prorated to the period from the start of the traffic month to the day when the traffic limit is changed.
2. The resulting GBs are subtracted from total traffic run up by this day.
* The traffic run up during the last day of the traffic cycle is transferred to the next traffic cycle calculations.
3. If the result is positive, it is accrued usage fee.
4. Traffic is reset.
5. If at the begining of the billing period you pre-paid for the traffic limit, you are refunded the recurrent fee prorated to the time left to the end of the billing period.
6. If new traffic limit is higher than free GBs provided by the plan, you are accrued recurrent fee prorated to the time left to the end of the billing period.

As the result of traffic cycle interruption the billing period for traffic becomes different from the billing period for the account.

For example, you are hosted with 0 free units, the traffic limit is 6 GB, and the billing period of 6 months starts 1 January. By 15 January, you run up 3.5 GB of traffic and decide to increase traffic limit.

1. 6 GB of month traffic limit is prorated to 15 days which makes 3 GB.
2. Prorated traffic limit of 3 GB is subtracted from 3.5 GB of traffic run up for 15 days which makes 0.5 GB.
3. 0.5 GB of excess traffic is charged at a usage fee.
4. Traffic is reset.
5. A new traffic month is open and since then will close on the 15th of each month
6. You are refunded recurrent fee for pre-paid 6 GB traffic limit. The refund is prorated to five and a half month left to the end of billing period.
7. You are accrued recurrent fee for the increased traffic limit. The fee is prorated to five and a half months left to the end of billing period.

Regardless of account’s billing period, traffic usage is calculated at the end of traffic cycle which is one month or less if traffic cycle is forced to close with a traffic limit change or other events, such as billing period closure, changing to another billing period, or other plan. For example, if you sign up on March 7 for a billing period of 6 months, traffic will be closed and reset on the 7th of each month.

The traffic run up during the last day of the traffic cycle is transferred to the next traffic cycle calculations.