How to create a cPanel account within WHM

One of the more important features within WHM is the ability to create individual cPanel accounts. If you want to resell your own hosting accounts, you need to follow these steps:

1.Log into your WHM.

WHM Login 2015-07-31 15-52-38
2.In the left menu under “Account Functions“, click “Create a New Account

in_whm_click_create_a_new_account_under_account_functions

3.Fill in the details for the new account. Here’s a brief outline of the settings you’ll be putting in:

  • Domain Information
    • Enter the main domain name on the account, set a cPanel username and password for it, and then enter the email address to be associated with the account.
  • Package
    • WHM allows you to create packages, which make it easier to manage cPanel accounts. If you don’t have any packages set, select the “Select Options Manually” option and set those limitations now.
  • Settings
    • Choose the cPanel theme to assign the user and select the appropriate language for the user.
  • Reseller Settings
    • If you have the access to create a cPanel account, it means that you have reseller permissions. Decide here if this new account you’re creating should have WHM access and be able to create accounts themselves.
  • DNS Settings
    • Decide how the domain’s nameservers should be configured on the server. If the nameservers specified for this domain name are going to be on another server, choose the option “Use the nameservers specified at the Domain’s Regsitrar”
  • Mail Routing Settings
    • Decide how the server handles email for this specific domain. For example, should it attempt to deliver the email locally or should it look at the external MX records and decide? It’s recommended to use “Automatically Detect Configuration” if you’re not sure about this setting.

 

4.After you have filled in all of the details above, click the “Create” button at the bottom of the page.

 

Congratulations, you have just created a new cPanel account!

new_cpanel_account_has_been_created_success_page

 

How to install WordPress

Hello,

This is a tutorial on installing WordPress on your website.

First, you need to login into your cPanel account.

At ‘Software and Services’ tab, you will find the Softaculous Apps Installer which you will have to click.

cPanel X - Main 2015-07-22 21-07-22 - softaculous1

Softaculous is the leading Auto Installer having 300+ great scripts and 1000+ PHP Classes. Softaculous is widely used in the Web Hosting industry and it has helped millions of users install applications by the click of a button.

Select WordPress, which should always be the first app in the list.

Softaculous - Powered by Softaculous 2015-07-22 21-08-38 softaculous2

Click ‘Install’

Softaculous - Softaculous - WordPress 2015-07-22 21-11-25softaculous3

You will have to choose the domain that you want to install wordpress for. Now, you should leave the ‘In Directory’ box blank, so WordPress will be installed in the public_html folder.

Choose a name, make a description, create a password and choose a theme for your WordPress application.

Then click the ‘Install’ button.

Softaculous - Softaculous - WordPress 2015-07-22 21-13-36softaculous4

You have to wait for the installation to be complete.

Start creating your website!

How to change your nameservers

Hello,

This is a tutorial on how to change your nameservers, via your client area.

First login into you client area at: www.thcservers.com

On the left pannel, click on DOMAINS -> My Domains

Client Area - THCServers.com - THC Projects SRL 2015-07-22 21-32-09 domain1

All your domains will apear and you must select the one you want to manage.

Client Area - THCServers.com - THC Projects SRL 2015-07-22 21-36-41domain2

Click on the Nameservers link. You must then input the nameservers of your hosting provider.

Client Area - THCServers.com - THC Projects SRL 2015-07-22 21-44-11 domain4

Our nameservers are:

ns1.thcservers.com

ns2.thcservers.com

ns3.thcservers.com

ns4.thcservers.com

Click on the Change Namerservers button to save.

You will have to wait for the DNS propagation for the changes to take effect.

How to create a .htaccess file

The .htaccess literally means “hypertext access”. The .htaccess is a web-configuration file for use on web servers running on the Apache Web Server Software.

When a .htaccess file is placed in your website’s directory such as the public_html folder, it is in turn ‘loaded via the Apache Web Server’, which is then detected and executed by the Apache Web Server software for browsers as well as other bots and crawlers to read and learn a little about your website’s access and restrictions.

The .htaccess file can be used to alter the configuration of the Apache Web Server software to both enable and/or disable additional functionalities and features that the Apache Web Server software has to offer. These facilities include basic redirect functionalities and/or for more advanced functions such as to password protect a certain directories, denying access to a certain crawlers, spam bots, and hackers or to prevent image leeching.

How to create a .htaccess file? Well it’s as easy as π. You just have to follow these steps:

1. Log in to you cPanel account.

cPanel login

2. Search for the File Manager icon and click it.

filemanager search

3. Once you click on the “File Manager” icon, you will be prompted via the “File Manager Directory Selection” to choose a directory to open. Make sure that you tick the “Show hidden files (dotfiles)”. Then click “GO”.

filemanager selection

4. Make sure that .htaccess file does not exist before creating a new one. Search for .htaccess through “All Your Files” to make sure that you do not already have a .htaccess file.

search for htaccess

5. If you do not have a .htaccess file yet, create a new file by clicking on “New File” icon available at the top left corner.

new file

6. Enter the name of the file with a “dot” in front of the word “htaccess”.It should be in the following manner : .htaccess , withouth any file extension (s) like .php, .html, or .txt added to it. The new file should be created under the “public_html” folder. Enter the following: “public_html” in the field where it says “New file will be created in:”

create file

7. Once the .htaccess file has been created, you can input whatever codes belonging to .htaccess that you wish to enter to this file and then click on “Save Changes”

save

8. Give yourself a pat on the back bcuz you’re done!

 

The common usage of .htaccess file is listed below along with the code that goes with it so that when you need to do basic stuff like this you may look no further than the super cool How To section of our Blog. :)

Authorization/authentication – specifies security restrictions for directory/subdirectory.
You can password protect a directory, or several of them, and any time a visitor tries to access it, username and password will be required.
To set up such protection, you need to:

1. Create the directory you want to protect in /home/cpanel_user/.htpasswds/ folder

   e.g. for public_html/test the path will be .htpasswds/public_html/test/

2. Create passwd file in this directory and add hashed access details using this online generator

3. Add the following directives to .htaccess:

 

            AuthType Basic
            AuthName “Directory Name”
            AuthUserFile /home/cpanel_user/.htpasswds/public_html/passwd
            require valid-user
Blocking – blocks users by IP address or domain. It is very useful to block unwanted visitors, or to allow accessing certain sections of the website by its owner, administration area for example.
To set up certain blocking rules, create .htaccess file with the following text:- to block users with X.X.X.X IP address, allow access to everybody elseorder allow,deny
allow from all          deny from X.X.X.X

– to block all the visitors except for specific admin IP for example, or yourselforder allow,deny
allow from X.X.X.X
deny from all

Custom Error Pages – allows creating custom error pages for a site. This option is very useful as it allows you to show web site visitors an error message matching your website theme if a URL on your web site does not work. This helps to avoid default ‘404 File Not Found’ error for example, and allows you to display customly designed error with the guiding directions back into your web site content, rather than leaving puzzled.

To set up custom error document, create .htaccess file with the following text below:

ErrorDocument 404 /404.html

Whenever a 404 (File Not Found) error appears, this line tells the Apache Web server to load 404.html file, located in the directory root of the domain you set the error page for.

NOTE: To set up document for other errors (403, 500, etc.), just replace 404 with the corresponding error code and /404.html with the path to the error file.

Mod_Rewrite – specifies how web pages and URLs are displayed to the visitors.

We would like to draw your attention to the usage of Mod_Rewrite rules in .htaccess file.

By default, Mod_Rewrite maps a URL to a filesystem path. However, it can also be used to redirect one URL to another URL.

Before creating a redirect, you should choose the redirection type which would be more preferable for you:

Permanent redirect has a status code of 301, and unlike the temporary one is cached in the browser memory. It implies that the page has been moved, and requests all search engines and user agent coming to the page to update the URL in their database. This is the most common type of redirect.

Temporary redirect means that the page is sending status code 302 to the browser. The 302 code tells the browser not to cache this redirect into its saved data. It will redirect the visitor or search engine, but search engine will continue to index to the original page. This is the recommended type of redirect, unless you are absolutely sure that you will never change it in the future.

The list of the most common and useful redirects, which can be set through .htaccess file can be found below (the domains specified in examples should be replaced with your own ones):

// Permanent redirect from example.com to domain.com

RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.example\.com$
RewriteRule ^/?$ “http\:\/\/domain\.com\/” [R=301,L]

// Temporary redirect from example.com to domain.com

RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.example\.com$
RewriteRule ^/?$ “http\:\/\/domain\.com\/” [R=302,L]

NOTE: Below are the examples of permanent redirects. Temporary one can be defined by replacing [R=301,L] with [R=302,L] in the end of the code (where necessary).

// Redirect from example.com/subfolder to domain.com

RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.example\.com$
RewriteRule ^subfolder$ “http\:\/\/domain\.com\/” [R=301,L]

//Redirect from HTTP to HTTPS

– for any domain .htaccess takes effect on:

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

– for a certain domain, example.com:

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]

//Redirect from non-WWW to WWW

– for any domain .htaccess takes effect on:

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

– for a certain domain, example.com:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]

//Redirect from WWW to non-WWW

– for any domain .htaccess takes effect on:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

– for a certain domain, example.com:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]
RewriteRule (.*) http://example.com/$1 [R=301,L]

//Changes the directory root for the main domain to public_html/subfolder

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?example.com$
RewriteCond %{REQUEST_URI} !^/subfolder/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /subfolder/$1
RewriteCond %{HTTP_HOST} ^(www.)?example.com$
RewriteRule ^(/)?$ subfolder/index.php [L]

NOTE: .htaccess file should be located in the directory root of the domain you wish to configure certain rules for.

 

 

How to change your email account password in cPanel

In this tutorial will show you how to change your email account password in cPanel in just few steps.

STEP 1 – CLICK ON THE EMAIL ACCOUNTS ICON

The step is to access the email account admin screen by clicking on the Email accounts icon shown boxed in red in the image below under the Mail section in cPanel.

step1

STEP 2 – SELECT THE “CHANGE PASSWORD” OPTION FOR YOUR CHOSEN EMAIL ACCOUNT

As you can see in next image, there are various actions you can take, including “change password”.  This is the option we need.

step2

STEP 3 – ENTER NEW PASSWORD

Once you click the “change password” option, a new section will appear just underneath which allows you to enter a new password.

step31

 

You will need to confirm the password by entering it a second time.  You will see a “strength” field which will show a number between 0 and 100 showing the complexity of your password.  The higher the strength the safer your password will be.  By default cPanel will not let you set a password with a strength lower than 40, but your web hosting provider may have changed this to require a stronger password.

We actually recommend using the Password Generator when changing your email password, as this is much more secure.  To use this click the “password generator” button next to the Strength field.  A pop-up box will appear as shown below:

step32

To ensure you have recorded your new password cPanel will require you to confirm that you have copied this to a secure location.  To use the password just click the “use password” button and it will copy it to the relevant fields in the previous screen.  You can alter the way cPanel generates your email password in the advanced options by specifying the length of the password, as well as whether to use capital letters \within cPanel numbers.

STEP 4 – CLICK “CHANGE PASSWORD”

Once you are happy with your chosen password, click the “Change Password” button as shown below:

step41

You will then see confirmation that the password has been changed:

step42

As you can see, changing your password is very easy within cPanel.

 

 

 

How to setup a cronjob in cPanel

It is very easy to set up a cron job in cPanel.

Cron jobs are scheduled tasks that the system runs at predefined times or intervals. Typically, a cron job contains a series of simple tasks that the system runs from a script file.

 Note: Exercise caution when you schedule cron jobs. If you schedule them to run too often, they may degrade your server’s performance.

Please follow the given procedure to setup the cron in cPanel.

1. Select the “Cron Jobs” tab in cPanel. You can do this either by searching for it or by finding it in the “Advanced” menu.

cron job search

2. Add a cron email.

The Cron Email section of this interface allows you to specify an email address at which you would like to receive notifications whenever your cron jobs are run. To specify an email address:

  • Enter the email address at which you wish to receive the notifications in the email field.

Click the Update Email button.

cron job email noti

3. Add a new cron job.

cron job add a new cron job

For this first configure the interval at which you wish to run the cron job.

  • Common Settings— This menu allows you to select a commonly used interval without having to specify settings for the minute, hour, day, month, and so on.
  • Minute — Use this drop-down menu to select the number of minutes between running the cron job, or the minute each hour on which you wish to run the cron job.
  • Hour — Use this drop-down menu to select the number of hours between running the cron job, or the hour each day on which you wish to run the cron job.
  • Day — Use this drop-down menu to select the number of days between running the cron job, or the day of the month on which you wish to run the cron job.
  • Month — Use this drop-down menu to select the number of months between running the cron job, or the month of the year in which you wish to run the cron job.
  • Weekday — Use this drop-down menu to select the day(s) of the week on which you wish to run the cron job.

  General cron job format is as follows:

[path to environment] [Path to script] [Script parameters]

 For example, if you want to run PHP script located in public_html directory, the correct cron command will be:

/usr/local/bin/php /home/cPaneluser/public_html/yourscript.php

or if you want to use relative path (different commands are divided by “;”):

cd /home/YourcPuser/public_html/; /usr/local/bin/php yourscript.php

For Python and Perl scripts there is no need to use full path to environment, environment interpreter directive will be enough on shared servers.

python /home/YourcPuser/public_html/yourscript.py

perl /home/YourcPuser/public_html/yourscript.pl

Alternatively you can just use curl request as cron job command for the same purpose:

curl “http://yourdomain.com/script.php?argument1=arg1&argument2=arg2”
curl “http://yourdomain.com/script.py”
curl “http://yourdomain.com/script.pl”

However unlike first method, curl-based cron jobs will work only if URLs specified in curl requests are resolving, e.g. DNS records for the domain are correct and running.

Creating an Addon Domain

THCServers offers unlimited Addon Domains for our Freek hosting plan! Go and check it out it’s a very cool offer.

This article explains what an Addon Domain is and how it can be accessed.

How an Addon Domain Works

An addon domain is a fully functional domain that can be created from within your control panel. This addon domain is a new, unique website hosted in a new folder on your account so that you can host several domains from one control panel. You can give an addon domain email addresses, forwarders, and more the same way as a primary (main) domain on the account.

Let’s start by logging in to your cPanel and search for Addon Domains.

cartoonish search

You then enter a new domain name, a unique user name for the domain and choose a good password. Like so:

cartoonish fields

Click Add domain and voilà! You are done. Note that there may be a time delay before the domain begins working on the server. This is known as propagation time.

You host or point your add-on domain to a folder in the public_html folder of your main domain name. Like your main domain, you will need to register your add-on domain and set the nameservers for the add-on domain to point to the same nameserver as your main domain name. If your domain name is registered on our servers you can do that very easily on the website from your client area.

When you create an Addon domain, 3 things happen:

  1. a folder is created in the ‘public_html’ directory
  2. a subdomain is created for the primary domain and attached to the new folder
  3. the new domain name is associated with the subdomain

For example, if the primary domain was ‘abc.com’ and you assign the Addon Domain ‘123.com’ to the folder ‘123’, the following routes (URLs) would be true:

  • abc.com/123
  • 123.abc.com
  • 123.com

All three of these paths would access the same directory and show the same website. However, in concern to your website’s viewers going to 123.com , there is no evidence that they are being routed through 123.abc.com and everything will function as normally.

This all happens automatically when an Addon domain is assigned to an account; there is no further action necessary other than loading content into the addon domain folder.

Although addon domains do not have their own cPanel, you may still create email accounts, subdomains, QuickInstall installations, redirects, etc.

How to upload a file to your website using a ftp client – Filezilla

So you’ve got yourself that domain you’ve always wanted, you got a nice hosting plan at www.thcservers.com now it is time you get your website working.

The first thing you will have to do is to upload files to your website. And this is how you do it using one of the most popular ftp clients – Filezilla.

First thing to do: download the client

filezilla client

After the succesful install you will have to know the following informations from your web host:

– know the name of the FTP server for your website. For example, your host may tell you that your FTP hostname is “ftp.example.com”.
– your username or login username for your FTP account.
– your password for this FTP account.
– the specific directory where you need to have your files so that they can be seen by a web browser visiting your site. For example, your host may tell you to place the files in a subdirectory called “www” or “public_html” or even the default directory that you see when you log into your FTP site.

 

So how do you upload or publish a file to your Web Server step by step:

We will assume that you wish to upload a file called “test.php”. When you see “test.php” mentioned, you can substitute that name with the name of the file you wish to upload. FileZilla does not restrict you to uploading only files of that name. You can upload images (eg, GIF, JPG, PNG, etc), HTML files, video clips, music files (eg MP3 files, WAV files, MIDI files), PHP scripts, Perl scripts, etc.

1.  You must click the “File” menu followed by the “Site Manager” item on that menu. A new dialog box will show up.

howtofilezilla1

2.  Click the “New Site” button on that dialog box. This will create a new item under “My Sites” called “New FTP site”. Rename “New FTP site” to the name of your site if you wish. We used “TestSite” in this tutorial. This name can be anything you wish – it is not required for accessing your site but it will be easier if you change the name to that of your site rather than “New FTP site”.

howtofilezilla2

3.  On the tab “General”, enter the name of your FTP server in the “Host” input box. If your web host told you that your FTP hostname is “ftp.example.com”, enter “ftp.example.com” into the space provided.

howtofilezilla3

4.  Do not modify the “Port” and (on advanced tab)  the “Server type”entry boxes. Select “Normal” from the drop down list box for “Logontype”. This will enable the “User” and “Password” boxes for the next step.

5.  Now you must enter your user id or your login name (or whatever your web host calls it) into the “User” input box. Also enter your password into the “Password” input box. Note that this information is automatically saved onto your computer and will be re-used the next time you run FileZilla, so you do not have to re-enter them again. (It means that you should not use FileZilla in this way on public computers that others may have access to.)

howtofilezilla4

6.  You will click the “Connect” button. FileZilla will proceed to log you into your server. If it is successful, you will see a list of directories of your website’s account in the right hand side of the FileZilla window. On the left hand side of the FileZilla window shows the directories and files on your own computer.

howtofilezilla5.0

7.  Your web host might tell you to only upload in a specific subdirectory on the web server, such as in the “www” or “public_html” directory; you will have to change to that directory by doubleclicking its name in the folder portion of the right window pane (the “Remote Site” window pane). FileZilla will open that folder and show you its contents in the files portion of the Remote Site window pane.

8.  Locate the file that you wish to upload in the left window pane (the “Local Site” pane) – in this case “Test.php”. Once you have located the file you wish to upload, (for us “Test.php”), doubleclick it to upload it to your website. Alternatively, you can drag that file from the left window pane to the right window pane. The file will be uploaded to the folder that is currently open on the right window pane. Be careful that you have changed to the directory you want before dragging the file there.

howtofilezilla5.1

9.  You should be able to see the upload progress in the bottommost window pane in FileZilla. When the upload has completed, you can disconnect from your website. Do this by clicking the “Server” menu followed by the “Disconnect” item.

howtofilezilla5.2

And that’s it! You have uploaded a file to your website using FileZilla ftp client.

 

Web Hosting At Low Prices Fast Servers Full Support

Our friendly Support Team is available to help you 24 hours a day and all of our paid hosting solutions offer a 99.9% uptime guarantee and around-the-clock technical support from our highly skilled technicians. Our quality servers which are located in America, Canda, Germany and France will ensure your site stays online no matter what time of day it is!

hotfix

SERVER FEATURES

– A minimum of 12 core interprocessors

– 128 GB RAM ECC

– 1 Gbps unmetered bandwidth

We also provide daily external server backups and DDoS protection.

Building your own website has never been easier!Our products include a free website builder with more than 200 templates, multiple php versions selector and Softaculus one click application installs.

Our team of technicians is more than happy to assist you with knowledge and information that you require and our goal is to get you and your info out there up and running in the shortest time possible.

Your quality insurance is our 30 DAY MONEY BACK GUARANTEE

Try it now and don’t miss out! :)

 

7-6-11-How-to-Build-a-Website-for-Business

 

Paysafecard Hosting Payment Added

Now, you can buy any hosting plan from us without a credit card or paypal. Use paysafecard to pay quickly, simply and safely online.

Using paysafecard is extremely easy:
1. Purchase a paysafecard at your nearest sales outlet.
2. Select paysafecard as payment method.
3. Enter the 16-digit paysafecard PIN.

Benefits of using paysafecard:

1. Paysafecard provides a good privacy.
2. Available at 500.000 sales outlets worldwide.
3. Thousands of online shops accept paysafecard.
4. Absolute security, thanks to the prepaid principle.

 

Here, you can find your nearest sales outlet: https://www.paysafecard.com/en-ca/buy/

Buying a webhosting plan is now easier!