make a masked redirect from your cpanel

How to make a masked redirect from your cPanel

Learn how to manually forward and mask your domain from your cPanel account by following this quick tutorial!

Code that needs to be inserted:


<html><head><title><strong>Webstie title</strong></title></head>
<frameset cols="*">
 <frame name="main" src="Link to the page you wish to forward" scrolling="auto" noresize>
 <noframes>
 <body>
 Your browser does not support frames
 </body>
 </noframes>
</frameset>
</html>

Need help?
Contact us on our Live chat support if you encounter any issues and we will gladly give you a hand setting it up!

WHM How to Change or Limit Email Attachment size

For those of you who are just starting using WHM and are wondering why your attachments are not sent via email, you might consider looking into this article.
The default maximum file size limit that can be sent and received in cPanel is usually 50 MB – set by default. Need to change it to fit your needs? Well, it just takes a few minutes to edit the settings from your WHM account.

Just do the following:

Login to WHM as root
Under Service Configuration, Click “exim Configuration Manager”
Click “Advanced Editor”
Scroll down and Click “Add additional Configuration Setting”
Find “message_size_limit” in pull-down list and choose
Enter limit that you want to change to
Scroll to bottom and click “save”
..that’s it! You have now configured your message size limit.

Looking for a great VPS or Dedicated Server to send emails? You can check out our premium offer on THCServers.com

How to enable ionCube loader from your WHM using easyapache

ionCube was founded in 2002, and introduced tools to protect software written using the PHP programming language from being viewed, changed, and run on unlicensed computers. The tools use the technique of compiling to bytecode prior to encoding so that source code is eliminated, and runtime overheads are reduced. A PHP extension called the ionCube Loader handles the reading and execution of encoded files at run time.

PHP scripts can be easily read, changed and run on any PHP enabled system. Encoding PHP offers important benefits.

Product Developers: protect and license your code before distribution. Time restricting is ideal for protecting evaluation copies, and server/domain based locking helps secure revenue from multiple domain deployments.

Website Designers: protect your creative work and a revenue stream from future script updates.

Enterprise Customers: successfully enforce internal change control policies by avoiding untracked software tweaks that may get lost on a site reinstall or server move.

Website Owners: hide sensitive data and protect scripts from unauthorised changes that may go unnoticed indefinitely, and be a serious security and data protection risk.

You can easily enable ionCube loader on your machine in you have a cPanel licence by following these next steps:

Login into your WHM account.

Go to easyspache.

easyapache

Customize the Currently Installed Packages

Go to PHP Extensions and search for ionCube

You will find the module for all available PHP versions (in my case, 5.5 and 5.6).

extensions

Install the version of the loader you need (I have installed ionCube5)

Click Next to Review, then press Provision.

provision

Now Apache will rebuild, so it may take a few minutes.

After completion, you will receive the confirmation message.

done

You can now restart Apache server just to make sure and that’s it.

How to disable mod_pagespeed from your .htaccess file

PageSpeed mod_pagespeed is a module for Apache server which is just like a plugin, and since Apache is different from IIS, it cannot be installed on IIS servers.

As for what it does, it does multiple things:

  • Minifies (removes whitespace, comments, etc) or in other words compresses external CSS and JavaScript
  • In addition to minifying JS, it combines multiple external JS files into one JS file which causes less http requests or round trips so the page loads faster
  • Optimizes the cache for the files. Every http header has a cache information, or in other words, for how long should the browser keep the resource, mod_pagespeed optimizes this number
  • Uses the idea of URL fingerprinting for the new JS files. Basically when the mod_pagespeed optimizes and combines multiple JS files into one file, this temporary file is stored somewhere on the server, however, its filename is generated from the content of the JS files using checksum algorithms such as MD5. What this allows to do is that mod_pagespeed tells the browser to store the JS file for a long time (sets a long cache time), however as soon, as the developer will change the content even in one of the JS files, since the checksum of all the files will change, mod_pagespeed will generate a new temp JS file which will have a different URL compared to the old one. So, when the user who has saved the old combined JS file will try to reload the page, since the URL of the new JS file will be new, it will force the browser to download it again. So essentially this is one way to do cache control.
  • Minifies HTML

One downside however is that it uses much more CPU resources on the servers.

Another downside is that it’s incorrectly optimising the css and also constantly caching so testing updates is painful.

 

To disable it,  you need to add this lines in your .htaccess file:

<IfModule pagespeed_module>
ModPagespeed off
</IfModule>

This will do the trick and disable mod_pagespeed for your hosting account.

 

HOW TO CREATE A .HTACCESS FILE

 

 

How to setup an email client

Let’s say that you have created an email account within your cPanel account, you need to access and manage your mailbox by setting up an email client on your desktop or mobile device. This next  article explains where to find your email configuration settings and the links to our setup guides for the most common email clients.

If you will rather access your email account online, please access http://blog.thcservers.com/how-to-log-into-webmail/ for more informations.

Please note that the configuration settings are a bit different for each email account. Follow the steps below to view the unique settings for your email account:

  1. Login to your THCServers’ cPanel account.
  2.  Access the Email Accounts feature

    1

  3.  On your desired email account press ” Set up mail client  ”

    2

  4.   If you’re unable to log in to the cPanel to view your email settings, you can still set up your email client using these basic settings:

    –  SSL settings:

    Username Your email account
    Password The password to access your email account
    Incoming Mail Server The server you are assigned on
    Supported Port 993 (IMAP), 995 (POP3)
    Outgoing Mail Server The server you are assigned on
    Supported Port 465 ( SMTP )

    – non-SSL settings:

    Username Your email account
    Password The password to access your email account
    Incoming Mail Server mail.domain.com
    Supported Port 143 (IMAP), 110 (POP3)
    Outgoing Mail Server mail.domain.com
    Supported Port 25 ( SMTP )
  5.  Lastly, the setup process is a bit different for each email client and many of them support Autodiscover, which automatically detects some or all of the required server settings from your username and password as you can see in the picture below:

    3

    If you have any further questions or concerns regarding  this setup procedure, please don’t hesitate to contact us via Live Chat and Ticket Support. We are online 24/7/365 to help you in any matter!

I just received my hosting details – where do I upload my files?

Firstly, if you have just received your hosting details, we’d like to thank you for trusting THCServers.com !

Now, here’s how you can upload your website’s files:

  • login to your cPanel account using the information provided in your New Account Information email;
  • access File Manager
  • upload a ZIP (not RAR) archive of your website’s files into Public_html folder; this is the folder where you will have hosted all the files for your main domain – it cannot be changed.
  • unzip the files into Public_html
  • Create database and assign a user to it (all privileges); import the sql file into PhPMyAdmin if you already have an old database
  • Edit your config file

…and Voila! Your website is now hosted with us. Don’t forget to change the nameservers – this is done by accessing the Registrar account (where you bought your domain name from).

If you need any help, do not hesitate to contact us! We are always online, 24/7.

Website limits reached – what to do?

When your traffic increases, you might experience a Website limits reached error. But why does this happen and what does it mean?

Every hosting package comes with limited resources:

Geek plan – Cpu 40%, virtual memory 1536Mb, Physical memory 1536, Entry processes 40, Number of processes 20, I/O 1024
Nerd plan – Cpu 50%, virtual memory 3072Mb, Physical memory 3072, Entry processes 50, Number of processes 50, I/O 2048
Freek plan – Cpu 60%, virtual memory 4096Mb, Physical memory 4096, Entry processes 60, Number of processes 100, I/O 2048

Most of the cases, the error is caused by the number of entry processes.

 

What is an entry process?
Well, when logging in your cPanel, you can see in your Statistics the Entry processes number. The number shows just how many PHP scripts you have running at the same time. As you can see above, the limits are 20/50/60 of PHP scripts running at the same time.

Despite rumors, a 20 limit Entry process does not mean that your website can only be accessed by 20 visitors, simultaneously.

 

How to solve the issue?
You can solve this problem by two ways: Upgrade your hosting package in order to gain more resources Or ask us online to restart your services – if you think the limits were reached because of a spike in your traffic, and it is not permanent.

 

Having trouble with your website’s limits? Contact us!

 

 

How to change the domain name for your hosting Account

We are sometimes in a hurry and our mind is wondering – this is the perfect time to buy hosting and make typing mistakes!

Did you make a purchase for one of our Hosting plans, and found out that you had mistyped  the name? Well, there is no need to panic, as we can change it in no time! All you have to do is send us a Ticket with the correct domain name, or, better yet, contact us via Live chat. Our Team works fast and you will have your Hosting account ready in just a few moments.

 

Not using your old domain? Well, just give us your new one and we can replace it! There is no need to cancel the current hosting and buy another one – we can simply modify your account. No days lost, no hidden fees and extra fast!

Remember, we are always here to help you, so do not hesitate to contact us whenever it is needed.

 

Thank you for choosing THCServers.com and have a Great Day!

How to install the MySQLi extension for Linux VPS with WHM

If you want to enable to MySQLi extension in your WHM, you must follow those steps, precisely:

1. Log into the WHM with your root credentials.

2. Go to the “EasyApache” menu, located in the “Software” section or use the search box to find it.

3. On the EasyApache page, make sure your Previously Saved (Default) configuration is selected and click on “Customize Profile”.

4. Keep clicking “Next Step”, until you reach the “Short Options List” page and scroll to the bottom of the page.

5. Click on the “Exhaustive Options List” button.

6. On this page, scroll down to the PHP section and find MySQL “Improved” extension.
You can use the page search option of your browser to locate the extension faster (Ctrl+F).

7. Ensure the check box is filled in and scroll to the bottom.

8. Click the “Save Only” button.

9. On the next page, click the “Build profile I just saved” button.

10. A pop box will appear and ask you to recompile Apache and PHP, select “Yes” and “I understand”, if prompted.

11. Wait until the Build ouput is complete and the MySQLi extension should be installed/enabled. Please do not log out of the WHM or interrupt the rebuild process and wait for it to be completed.

When the process is complete, your MySQLi module will be enabled.

Website down : common errors and how to fix them

Everyone who owns a website has encountered, at some point, a website error. Here, at THCServers.com, we made a list of the top 5 common website errors so you can identify and solve the problems in no time:

  • Server not found error – first, check to see if you typed your address correctly, you might have missed a letter if you were in a hurry. Make sure your DNS propagation process is complete – you can use whatsmydns.net  to see if your website is pointing to the right IP address. DNS propagation can take up to even 48h, usually much less, so patience is sometimes needed. In some cases, you could be banned by the Firewall – contact us on Live chat or Ticket system – we are online 24/7 so do not hesitate!
  • 500 internal server error – this error often appears because there are conflicts between your website and the PHP version. Lucky for you, our cPanel offers the option to change the PHP version manually – just login and search for PHP version, change it to one that works best for you and click to save. You tried every PHP version and it did not work? Check your .htaccess for errors file from File manager. If you can’t find it, use the option to show hidden files – it usually does not show.
  • server connection timed out error – contact us if you encounter this problem. It usually means that our Firewall blocked your IP. We can unblock it in just a few minutes, so give us a shout.
  • 403 forbidden error – most of the times this error comes up if your folders do not have the proper permissions. You can manage folder/file permissions from cPanel – File manager file permission
  • 508 resource limit reached error – this is caused because your account has reached its limits. You can check your usage in cPanel – left area. If the limits are ok, then it might just have been a spike in your graph; you might have received a high traffic in a short time and your resources were overloaded.

Need help? We are always glad to give a hand! Contact us on Live chat or Ticket system and one of our colleagues will reach out to you.

Thank you again for choosing THCServers.com !