Archive for April 2008

Cron Jobs button Cron jobs allow you to automate repetitive tasks on the server that hosts your web site. This is a powerful tool that allows you to take a hands-free approach to repetitive tasks. For example, you could add a cron job that automatically copies a MySQL database to a separate location on your site as a backup.

There are two different modes you can use to add a cron job:

  • Standard – Provides a range of pre-set options that you can choose. This is the simplest method and is recommended.
  • Advanced (Unix Style) – Provides the regular Unix style cron options. Recommended for users who are used to this method of entering cron entries.

Warning: You need to have a good knowledge of Linux commands before you can use cron jobs effectively. Check your script with your hosting administrator before adding a cron job.

To add or modify a cron job:

  1. Click on the Cron jobs button on the home page.
  2. If you want to use the Standard mode, click on the Standard button.
    1. Enter the e-mail address to send the results of running the cron job in the top field.
    2. Enter the command the you want to run in the Command to run field.
    3. Click on one option from each of the available lists.
    4. Click on the Save Crontab button. Your cron job has now been added or updated.Note: You can always click on the Reset Changes button to change the cron job back to whatever it was before you started entering information.
      Click to display image

    If you want to use the Advanced mode, click on the Advanced (Unix Style) button.

    1. Enter the times for the cron job in the Minute, Hour, Day, Month, or Weekday fields. Refer to the following page to check exactly how to enter values in these fields –
    2. Enter the cron job script in the Command field.
    3. Click on the Commit Changes button. Your cron job has now been added or updated.Note: You can always click on the Reset Changes button to change the cron job back to whatever it was before you started entering information.

Disk Usage button The Disk Usage Viewer enables you to see exactly how much disk space is being taken up by various parts of your web site. Several different viewing options are available:

  • Show Parent Directories – Displays the parent directories as individual items.
  • Show More Directory Depth – Displays directories one level deeper as individual items.
  • Show Less Directory Depth – Displays directories one level higher as individual items.
  • Show Top Level – Displays the top level of the web site.
  • Clear File Usage Cache – Deletes all file usage information from the cache and recalculates all disk usage information.
  • Show Small Files – Displays very small files.
  • Show File Size as bytes/Megabytes – Displays file sizes as bytes or megabytes. There are 1024 bytes to one megabyte.

To use the Disk Usage Viewer:

  1. Click on the Disk Usage button on the home page.
  2. A list of items that take up space on your web site is now displayed, from largest to smallest. Click on the required buttons to view the use of space on your web site.

Redirect

The Redirects option allows you to redirect Internet traffics from one web page to another. This is generally used when a web page has been moved to another location.

To redirect a webpage, just follow these steps:

  1. Click on the Redirects button on the home page.
  2. Enter the address of the web page to move in the first field.
  3. Enter the redirection address in the second field.
  4. Choose one of the following options in the drop-down list:
    • Temporary – This tells Internet traffic agents (browsers, search engines, etc.) that this is only a temporary redirection, and that they should return to this initial location again in the future for the same page.
    • Permanent – This tells the Internet traffic agents to go to the redirection address in the future, as the old address will never be used again.
  5. Click on the Add button.

Backup

The Backup area allows you to download the daily, weekly, or monthly backup file of your entire web site, or a particular MySQL, alias, or filter backup file.

To download or restore a backup file:

  1. From the main page, Click Backups.
  2. To download the backup select the type of the backup from following options weekly backup, full backup, home directory backup, MySQL backup or email forwarders.
  3. To restore the backup use browse option specify the path and click upload.
  4. Save the file to disk.

MIME Types

Mime types tell browsers how to handle specific extensions. MIME types are often used to handle new technologies as they appear.

To add MIME Types, just follow these steps:

  1. Open a web browser and connect to your Control Panel located at https://ip address:2083.
  2. Login as the user for the domain.
  3. From the main page, click MIME Types.
  4. Enter MIME Type (copy the MIME type from Cpanel), enter in MIME Type field.
  5. Enter Extensions() (copy the Extensions() from Cpanel), enter in Extensions() field.
  6. Click Add.

FTP Account

FTP Account allow you to access your web site’s files through a protocol called FTP. You will need a third party FTP program to access your files.

To add a FTP Account, just follow these steps:

  1. Open a web browser and connect to your Control Panel located at https://ip address:2083.
  2. Login as the user for the domain.
  3. From the main page, click FTP Accounts.
  4. Click on the Add Account.
  5. Enter the name of the FTP account in the Login field and the password for the account in the Password field.
  6. Enter the path to the directory to which this FTP account has access.
  7. Click Create.

Default Address

The default email address will “catch” any mail that is sent to an invalid email address for your domain. All mail that is sent to an address that does not exist will go to the default email address.

To add a  Default Address, just follow these steps:

  1. Open a web browser and connect to your Control Panel located at https://ip address:2083.
  2. Login as the user for the domain.
  3. From the main page, click Default Address.
  4. Just select the domain name from drop down option.
  5. Enter the email address which you want to set as default address in Forward to email address field.
  6. Click Change.

To check the website before DNS propagation in Cpanel, just follow these steps:

  1. Open web browser connect to site through following url http://ip address/~username.
  2. Thats it you can check your website.

domain.com is different than www.domain.com. domain.com will not work on www.domain.com and vice versa.

I want to purchase SSL Certificate. Can I use it for both https://domain.com and https://www.domain.com?

Yes, the certificate is issued on exact domain name and the www prefix is never a domain rather a subdomain. If you’ll buy the certificate on domain.com then it would work on www.domain.com as well but throw a warning message that this certificate is not for the www.domain.com rather domain.com. If you want the same certificate to work for domain.com/www.domain.com/*.domain.com then you’ll have to buy a Widlcard Certificate which works on all subdomain on a domain.

I am using google mail services. How can I add SPF record for my domain.

In Helm CP (Windows)

* Login into helm cp
* Open yourdomain.com domain
* Open DNS Zone editor
* Click on Add new
* Add txt record as per following:
Record Type: TXT (Text Data Record) 
Record Name: @   
Record Data: v=spf1 mx a:nf-out-0910.google.com a:wa-out-1112.google.com -all
* Delete all existing txt records.

In WHM (Linux)

* Login into WHM
* Click on Edit DNS Zone under DNS Functions
* Type your domain name and click on edit
* Go down to Add New Entries Below this Line
* Enter your domain name
* Select TXT  
* copy: v=spf1 mx a:nf-out-0910.google.com a:wa-out-1112.google.com -all in blank text field
* Delete all existing txt records.