Wednesday, August 8, 2012

How to Assigning Dedicated IPs to Subdomains?

If you plan to perform Install SSL Certificates on a subdomain of the domain itself. With condition the subdomain must have its own dedicated IP. An example is the where subdomain installed dedicated IP and SSL Certificates, the following explanation how to assigning dedicated IPs to Subdomains with easy.
  • Make sure there are empty as the destination IP is the use of subdomain
  • Go to the SSH server console
  • Type cd /var/cpanel/userdata
  • Then to the destination username cpanelnya account, for example here is the user should examp, type cd examp
  • In the examp user directory, there are files, and for example you want to change the subdomain Sub1, from the domain that already exists, for example
  • Open the file, use your favorite text editor such as (vi, vim, pico, nano, etc.)
Edit the IP address as the following example:

format: combined
target: /usr/local/apache/domlogs/
format: “\”%{%s}t %I .\\n%{%s}t %O .\”"
target: /usr/local/apache/domlogs/
documentroot: /home/examp/public_html
group: Group1
hascgi: 1
homedir: /home/examp
owner: Example
phpopenbasedirprotect: 1
port: 80
path: /home/examp/public_html/cgi-bin
url: /cgi-bin/
path: /home/examp/public_html/cgi-bin/
url: /cgi-bin/
usecanonicalname: ‘Off’
user: examp
userdirprotect: ”
  • Edit IP in the example above with the IP Server that will be used.
  • Save the file
  • Do a rebuild Apache, type: /usr/local/cpanel/scripts/rebuildhttpdconf
  • Do restart Apache, type: /usr/local/cpanel/scripts/restartsrv_apache

Done, you can try doing Installing SSL Certificates via WHM and will appear with IP that was set above.

How to use Cron Jobs at cPanel?

Cron jobs allow you to automate certain commands or scripts on your site. You can set a command or script to run at a specific time every day, week, etc. For example, you could set a cron job to delete temporary files every week to free up disk space.

Notice: 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.

How to use Cron Jobs?

Click Cron Jobs icon at Advnaced Tab, see this picture

Cron Email meaning You can have cron send an email everytime it runs a command. If you do not want an email to be sent for an individual cron job you can redirect the command's output to /dev/null like this: mycommand >/dev/null 2>&1

Put your email address and click Update Email at sample above

To add New Cron Job, use this feature setting as this picture

After new Cron Job was set, it wil show at Current Cron Jobs

How to create MySQL Databases at cPanel?

MySQL Databases allow you to store lots of information in an easy to access manner. The databases themselves are not easily read by humans. MySQL databases are required by many web applications including some bulletin boards, content management systems, and others. To use a database, you'll need to create it. Only MySQL Users (different than mail or other users) that have privileges to access a database can read from or write to that database.

Databases offer a method for managing large amounts of information easily over the web. They are necessary to run many web-based applications such as bulletin boards, content management systems, and online retail shops.

If you need to create a database as well as the account that will access it, we recommend using the MySQL Database Wizard. Alternatively, you may create a database, add users, and link a database to an existing user account using this screen.

How to creat MySQL Databases?

Click MySQL Databases icon at Databases Tab, see this picture

In the New Database field, type a name for the database. The new database will appear in the Current Databases table.

After you create the database, you will need to add users and their privileges so that the database can be filled and managed. Please note that MySQL user accounts must be created separately from mail and web administrator accounts.

Under Add New User, enter a username. Enter a password in the Password field. Click Create User.

Privileges define how the user is able to interact with the database. For example, they will determine whether or not the user can add and delete information. To define a user’s privileges:

Under Add User to Database, select a user from the User drop-down menu. From the Database drop-down menu, select the database to which you wish to allow the user access. Click Add. From the MySQL Account Maintenance screen, select the privileges you wish to grant the user, or select ALL PRIVILEGES. Click Make Changes.

How to Redirects your Domains at cPanel?

What is Redirects? this feature allows you to make a specific web page redirect to another page and display the contents of that page. This way you can make a page with a long URL accessible by a page which has a shorter and easier to remember URL.

How to Redirects Domains?

Click Redirects icon at Domains Tab, see this picture

- Enter the URL you would like to redirect, using the pull-down menu and corresponding text box.
In the redirects to field, enter the URL to which you would like to redirect users.
- Select whether to redirect with or without www. preceding the URL
- Click the Wild Card Redirect box if you wish to redirect all files within a directory to the same filename in the new directory.
- And then click Add

A permanent redirect 301 setting will notify the visitor's browser to update any bookmarks that are linked to the page that is being redirected.
Temporary redirects 302 setting will not update the visitor's bookmarks.

How to create Parked Domains at cPanel?

What is Parked Domains (Domain pointers)? it mean allow you to "point" or "park" additional domain names to your existing hosting account. This will allow users to also reach your website when entering the "parked" or "pointed" domain into their browsers.

How to create Parked Domains?

Click Parked Domains icon at Domains Tab, see this picture

Enter your domain name and click Add Domain.
Domains must be registered with a valid registrar before they can be parked. In addition, they will not be functional unless they are configured to point to your DNS servers.

You may also remove Paked Domains if not use anymore.

How to create and use Addon Domains at cPanel?

An addon domain allows visitors to reach a subdomain of your site by typing the addon domain's URL into a browser. This means that you can host additional domains from your account, if allowed by your hosting provider. Addon Domains Subdomains are relative to your account's home directory. And the addon domain’s files will be stored in a subdirectory of your public_html folder.

How to create Addon Domains?

Click Addon Domains icon at Domains Tab, see this picture

 And enter your new domain name, Subdomain/FTP Username, Documen Root (path of your addon domain), Password and then click Add Domain.

This Addon Domain feature must be enabled for your account before you can use it. Addon domains will not function unless the domain name is registered with a valid registrar and configured to point to the correct DNS servers.

How to create and use Sub Domains at cPanel?

Subdomains are URLs for different sections of your website. They use your main domain name and a prefix. For example, if your domain is a sub-domain of your domain might be

Subdomains are relative to your account's home directory. The icon signifies your home directory which is /home/your-cpanel-user.

How to create Sub Domain?
Click Sub Domains icon at Domains Tab, see this picture

And enter your new name for domain at Subdomain field, also destination or path your subdomain directory, then click Create.
It is important to remember that it takes time for the subdomain to become recognized by other computers on the web. Visitors will not be able to view your subdomain immediately; the process takes anywhere from 2 days to a week.

Subdomains can be useful for creating unique user accounts for “vanity domains.” This is helpful if, for example, you have a blog, or any other type of website that uses a domain specifically titled for a user.

Tuesday, August 7, 2012

How to use Password Protect Directories at cPanel?

Password Protect Directories is option will allow you to require a username and password to access a folder or folders from the web. This can be very useful when you need to limit access to a certain part of your site.

How to use Password Protect Directories?

Click Password Protect Directories icon at Security tabs, see this picture

And click the folder to protect

Security Settings mean When a user accesses the protected directory through the web, they will be prompted to enter a username and password. The name that you choose for the protect directory will appear as well.

At least Create User to protect your directory, enter new user and click add/modify authorized user.

Thats all, now when you access the folder site, it will appear and prompted valid username and password.

How to know your Latest Visitors Stats at cPanel?

Latest Visitors Stats is the quick stats lists the most recent 300 visitors or people that have accessed to your website in the last 24 hours. But,  If your web site or the associated domain you choose to view visitor information on has not received 300 visitors, it will only show the number of visitors who have actually accessed or visited your web site.

How to check you Latest Visitors Stats?

Click Latest Visitors icon at Logs tabs, see this picture, and select your domain to view the visitor stats.

Here is the sample log visitor stats from cPanel Account.

Once you have chosen the domain you want to view the last 300 visitors for in Step above, the next page will list sections based on the "Host" IP address, URL, size and etc.

How to know your Website Statistic use Awstats at cPanel?

AWStats is an open source Web analytics reporting tool. and short for Advanced Web Statistics and available on cPanel account features. AWStats is powerful log analyzer which creates advanced web, ftp, mail and streaming server statistics reports based on the rich data contained in server logs file formats including Apache (NCSA combined/XLF/ELF log format or common/CLF log format).  Data is graphically presented in easy to read web pages.

So, Awstats produces visual statistics about visitors of your site.

How to know your website static using AWStats?

Click Awstats icon at Logs tabs, see this picture, and select your domain to view the stats.
Here is the sample monthly website statistic with graph

And here is the sample daily website statistic

With this AWStats tools, you can check all your website real statistic.

How to Create FTP Accounts at cPanel?

FTP accounts allow you to access your website's files through a protocol called FTP. You will need a third-party FTP program to access your files. You can log into via FTP by entering as your FTP host and the username and password of the account you wish to log into.
How to Create FTP Accounts?

Click FTP Accounts Icon at Files Tab like this picture

Put your new FTP data accounts such like Login, Password, Retype Password, Directory of FTP and Quota to able use File manager. And then click Create FTP Account.

Your new user of FTP Account created, you may use FTP software to use this tools.

How to check your Disk Space Usage at cPanel Account?

What is Disk Space Usage?

Disk Usage in cPanel Viewer provides an overview of the disk space that your account is using. It shows disk usage totals for your account’s directories and all of its databases rather than for individual files or databases. Use the File Manager to see disk usage data for individual files, and the MySQL main page to see data for individual databases.

This is a sample picture showing the disk space usage at cPanel account.

How to check your Disk Space Usage?

Click Disk Space Usage Icon at Files Tab like this picture

How to Backup and Restore your MySQL Database?

The database is also importan for your website, just ignore this guide if you don't have any database for your website scripts are not use MySQL Databases.

Databases offer a method for managing large amounts of information easily over the web. They are necessary to run many web-based applications such as bulletin boards, content management systems, and online retail shops.

If you need to create a database as well as the account that will access it, we recommend using the MySQL Database Wizard. Alternatively, you may create a database, add users, and link a database to an existing user account.

How to Download a MySQL Database Backup?

Click Backups Icon at Files Tab like this picture

And download and select the databases from Download a MySQL Database Backup

How to restore a databases file?

Upload your database file at Restore a MySQL Database

How to Backup your Full Website from cPanel Account?

Did you know how backup are important? this will safe your cPanel account if something have problem.

Backups allow you to download (to your computer) a zipped copy of either your entire site (including your home directory, databases, email forwarders configuration, and email filters configuration) or one of the previously mentioned parts of your site. These are not automatically scheduled backups. Automatically scheduled backups need to be enabled by the server owner/administrator.

Full Backup
A full backup includes all of the files in your home directory, your MySQL databases, and your email forwarders and filters. You can back up your account to preserve your data, or to move your account to another cPanel server.

How to Backup?

Click Backups Icon at Files Tab like this picture

Last, you can download all full backup of your cPanel Account by clicking Download or Generate a Full Website Backup, save it on your computer.

Or you may use this for other option

How to restore a backup file?

Upload your backup file at Restore a Home Directory backup

Thats it, i suggest you to always backup your cPanel Account.

Monday, August 6, 2012

What is Error Log in cPanel?

This feature 'Error Log' displays the last 300 errors that have occurred on your website. This can be useful for finding and fixing broken links and misconfigured web applications. Checking it often will aid in keeping your website running smoothly.

How to Check the Error Log?

Just go and click Error Log Icon at Log Tabs like this picture

This is a sample Error Log in one cPanel Account

You may check every error log to fix and correct your website from this tool.

How to use Email Forwarders in cPanel?

After succesfull login into your cPanel area, just click Forwarders icons in Mail Tab like this picture

What is Email Forwarders?

Forwarders allow you to send a copy of all mail from one email address to another. For example, if you have two different email accounts, and, you could forward to so that you do not need to check both accounts. Note that the forwarded mail will still be delivered to the original address as well.

Now, click Add Forwarders to add new forward email

Fill out your email at address section
Put destination email to receive email forwarders from this tools

The first option (Forward to email address) will forward mail sent to non-existent addresses according to what is specified in the ‘Forward to email address’ field. Selecting the first option is a very bad idea as you will likely receive a large volume of junk mail sent to random addresses at your domain (e.g. For this reason, we recommend that all customers set the default address behavior to ‘Discard with error to sender (at SMTP time)’.

The first step in fighting incoming junk mail is to turn off e-mail “catch-all”. This is done by setting the default address behavior to ‘Discard with error to sender (at SMTP time)’.

Another description for Pipe.

When piping to a program, you should enter a path relative to your home directory. If the script requires an interpreter such as Perl or PHP, you should omit the /usr/bin/perl or /usr/bin/php portion. Make sure that your script is executable and has the appropriate hashbang at the top of the script. If you do not know how to add the hashbang, just make sure to name your script file with the correct extension and you will be prompted to have the hashbang added automatically.

How to change your cPanel Style?

After succesfull login into your cPanel area, just click Change Style icons in Preferencs Tab like this picture

The feature allows the overall look and feel of cPanel to be altered to fit your personal style. Several pre-installed styles are available to choose from.

Choose your new style and save it.
Now your new cPanel style are changed.

How to change your cPanel Password?

After succesfull login into your cPanel area, just click Change Password icons in Preferences tabs like this picture

And then put your old password, and new password. Recommended to use Password Generator for high level password like this picture

It's Done

Now you can use new password when login to your cPanel account

How to create and access Webmail Accounts

After succesfull login into your cPanel area, just click Email Accounts icons like this picture

And then give the email account, password, retype password, Mailbox Quota and click Create Account, like this picture

It's Done

Now how to access your webmail account? just type this link:


How To Login your cPanel account?

This is ease guide How to Login your cPanel account, just use this URL to login.


Enter your username and password and click Log in

this is a sample picture when you login at cPanel area.

after a successful login, you'll go to the cPanel area like this sample picture.