How To Monitor Resource Usage & Metrics In cPanel

As a website owner or admin, you really don’t want your systems or systems you manage for someone to run out of resources.

Yes, it is true that 2cPanel offers unlimited bandwidth and disk usage for all hosting packages.

But keeping an eye on these resources help ensure that you do not violate our Fair Use Policy.

The hosting tutorial below will help you figure out how to monitor resource usage in cPanel.

The best approach to ensure that you are top of things is to make it a habit to take a closer look to see how your website resources are being used, what kind of request is being made to your website and where these, are coming from.

Knowing about these can also help you (among other things) determine:

  • how to reduce memory usage or disk usage.
  • where your customers are coming from and where to focus your marketing effort.
  • figuring out the pages that are taking too much time to load.
  • identifying links on your website that your visitors are trying to access but are no longer available.

cPanel has built-in tools via the control panel interface that you can see things as clear as the day.

You can view resources such as Disk Usage and the Metrics pane gives you access to Bandwidth, CPU and Concurrent Connection Usage along with log analyzers: Awstats and Webalizer.

Disk Usage

One of the basic task as a website owner probably managing the files/directories in your hard disk space.

The interface you see at Files >> Disk Usage displays information about how you use your account’s disk space after logging to cPanel.

Bandwidth

Bandwidth is the amount of information that your server transfers and receives.

For example, if your domain sends 5 MB of information to a visitor’s computer, you use 5 MB of bandwidth.

The interface located at Metrics >> Bandwidth displays bandwidth usage information in several sets of graphs.

Each graph contains information about bandwidth usage over a specific period of time.

The graphs display bandwidth information in six categories:

  • HTTP — Web traffic.
  • POP3 — Email that your accounts received.
  • IMAP — Email that your accounts received.
  • FTP — File transfers.
  • SMTP — Email that your accounts sent.
  • Total (all services)

CPU

The core differences between the hosting packages that we offer are CPU and RAM.

And these are designed in such a way that each customer gets a fair share of the server’s resources.

When you as a customer hits the CPU limit, processes within that limit are slowed down to an acceptable limit until your website usage returns to its preassigned limits.

Your website will remain fully available during this time.

To monitor this or see when these happen,

  • Log in to cPanel.
  • In the METRICS section of the cPanel home screen, click CPU and Concurrent Connection Usage.
  • On the Resource Usage Overview page, cPanel displays a summary for your account.
  • To view detailed resource usage information for your account, click [Details].
  • To view resource usage snapshots, click [Snapshots].
  • In the calendar, select the date you want to view.

RAM:

To determine your account’s current memory usage,

Login to cPanel.

  • Login to cPanel.
  • Once in, look at the right-hand side of your cPanel interface.
  • Under Statistics, locate Physical Memory Usage.

The total memory usage for the hosting account will be displayed.

Please note that the Physical Memory Usage value also includes disk cache usage.

So the actual amount of physical memory usage you see might not entirely reflect true usage.

To drill down on this, use any of the statistics tools below.

As a 2cPanel customer, you can select metrics programs to process your log files and provide traffic analysis for your account’s domains by visiting cPanel >> Home >> Metrics >> Metrics Editor.

For each domain on your account, select the checkbox for each metrics program that you wish to use.

You can select from the following programs:

  • Webalizer
  • Analog Stats
  • AWStats

Click Save.

Awstats

You can find the Awstats interface once you log in to cPanel at Home >> Metrics >> Awstats.

AWStats (Advanced Web Statistics) is a powerful, full-featured web server logfile analyzer which shows you all your web statistics in graphs and tables.

The information you will include:

  • visitors,
  • pages hits & their HTTP codes,
  • operating systems,
  • browser information,
  • hours,
  • search engines,
  • links & keywords through which visitors access/find your website,
  • broken links,
  • robots
  • and other useful information.

Webalizer

Webalizer http://www.webalizer.org/ interface (available at cPanel >> Home >> Metrics >> Webalizer) also displays traffic statistics from the Webalizer statistics program.

To view Webalizer statistics, click View for the domain that you wish to view.

A new interface will appear and display a graph and a summary of the Webalizer traffic statistics for that domain.

To view detailed monthly statistics, click that month’s link.

A new interface will appear and display charts and tables with the following information:

  • daily and hourly statistics in graphs and tables.
  • the links through which visitors access your website.
  • HTTP codes.
  • operating systems.
  • browser information.
  • countries of origin.

Analog Stats

Analog produces a simple summary of all the people who have visited your site.

It is fast, provides great lightweight statistics, have limited content but can be helpful to see where your main users are from.

Been able to consistently monitor your website(s) gives you insights that you need to make better decisions regarding the hosting account and website(s) that it holds.

We suggest that you set on your Reminders an alert that prompts you every week or every two weeks to use these tools in your cPanel.

How To Host Your Website With Old PHP Version

PHP (created 1994 by Rasmus Lerdorf ) is one of the most popular and widely used server-side web programming language.

It’s the language that over 80% of websites on the internet are built on.

The language is so versatile that you embedded a PHP code into HTML code or used it in combination with various web template systems, web content management systems, and web frameworks.

This ease-of-use and low barrier to entry make it ideal as an extensible platform that is used by companies, corporate bodies, businesses.

As a set release cycle, each PHP branch is designed to be fully supported for two years from its initial stable release.

During this period, bugs and security issues that have been reported are fixed and released in regular point releases.

But once this two year period of active support has elapsed, the branch is then supported ONLY for an additional year for critical security issues.

What happen next after this is that it will reach what is called EOL (End of Life) which means that the version will no longer receive maintenance, troubleshooting or other support.

For most companies and businesses, the fact that these two versions (PHP 5.6 and 7.0) both reached their end of life in December 2018 is a serious cause of concern.

If you are still using the older PHP versions, it means your website or app is still using obsolete PHP functions & configurations to function.

This undeniably opens your website and application that are dependent on such version to vulnerabilities and exploitation.

Such website will then become a plaything for malicious hackers.

It is at this point that a 400-pound guy sitting in a basement somewhere will insert malicious contents (adult material links, malware) into your pages, or start mining crypto-currencies with your resources or simply deface the website for laughs.

The fact that this happens every day hasn’t stopped many businesses, government agencies, start-ups, e-commerce portals and, web agencies with possibly hundreds of sites, from running on unsupported PHP versions.

Often the reason might be the significant cost or the risk of breaking things that may come with the upgrade process.

If you are in such a situation, we have a perfect solution for you in the form of a service called HardenedPHP hosting that offers the same solid protection as supported PHP versions.

HardenedPHP not only secure your old PHP versions (4.4.9, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 7.0, 7.1) with the ionCube Loaders, PHP extensions that each of these old versions requires, but you can also take advantage of a PHP Selector that allow you to select the version of PHP you want each of the website to run.

It takes minutes to get up and running and our team, always on a 24 hours watch to ensure that you never run into any issue will even migrate your whole websites from the old server to their new home.

Try it out today!

Now for some context.

When it comes to PHP, the fact is that Mr. Lerdorf never meant it to be a programming language because according to him, “he has absolutely no idea how to write a programming language” at that time.

So it is not completely wrong to say that for PHP at the early stages of its development, it was about figuring out what the PHP community wants and finding ways to add these.

Of course.

This means that most of the older PHP versions didn’t have the consistency that you will find with languages such as C/C++, Java, Perl, Python or other equally interesting languages out there.

Most codes that developers wrote back in the old days were awful, full of security holes (about 30% of all vulnerabilities listed since 1996 in this database are linked to PHP) and frankly even today, there were tons of bad PHP code floating out there.

But PHP remain one of internet’s favorite language because:

  • it is open sourced.
  • its popularity makes it super-easy to find PHP developers with experience.
  • it is easy to create dynamic web-pages with PHP.
  • it is dynamically typed and easy to learn making development simple.
  • it is stateless like HTTP making development simpler and the backend stack simpler.
  • it comes in one bundle with almost every library needed for simple to medium scale web development, yet also has libraries in C and C++ as well as PHP libraries for more use cases.
  • and for many people even without formal education, they can earn a good living out of it.

The language has come a long way since version 3 or 4 yet and the advent of 7.2 heralded an improved PHP with a promised 200% percent increase in performance (this allows systems to execute nearly twice as many requests per second in comparison with PHP 5.6), new features, functionalities and improvements for developers to write better code.

However, at the last count, it was estimated that 82.6% of WordPress sites are still using PHP 7.0 or lower with 36.9% still using PHP 5.6.

As you can expect, these figures will certainly double over the next couple of weeks if users are still unable to update their websites to a supported PHP version.

But why is it that a significant portion of the internet is still stick on these older PHP versions?

Well for the start, developers often write their scripts to accommodate a particular PHP version.

And when a version becomes obsolete, companies are not always able to update and change programs to accommodate newer versions.

It goes without saying that running these unpatched, unsupported PHP versions outs your whole enterprise at risk.

So, what are your options.

Upgrade to a new PHP version.

To ensure the best possible experience, you should really use the latest available, stable and supported versions of PHP.

Not only does this guarantee that your system is in a well-managed position to react to future vulnerability risks, but you will get faster performance and increased efficiency.

While PHP 7.2 may throw up some easily fixable issues because of its stronger requirements for better code, websites and applications that are actively been developed and maintained over the years will still be able to run on a modern PHP 7.2 or 7.3 without any issue.

As a customer, it takes just a few clicks to upgrade your version of PHP via our control panels.

But before you do this, please back up your existing system and make sure that you tested the new version in your development environment before going live with it.

This will reduce the the risks of downtime from upgrading if not eliminated entirely.

If the template, theme, module or plugin you are using with the older PHP version won’t work with the newer PHP version, look for a template, theme, module or plugin that support new PHP version.

Use our HardenedPHP

HardenedPHP delivers security fixes for older PHP versions not supported by CentOS, RHEL or PHP.net.

It makes it possible for you to use their older PHP versions without re-writing scripts or worse, risk breaking your site.

Setting up this up requires very little configuration, and our team is here to help you get started quickly and easily.

Why not take advantage of this offer right away?

How To Transfer Domain Name and Hosting From A Service Provider

There are many reasons why you may want to switch your hosting provider.

Might be because you have outgrown what your present provider is capable of giving or you just realize that all the promises they made to you were empty words.

Or perhaps you just figure out that you can get more for less.

Whatever the reason might be, transferring your domain or website/hosting from one host to another is as normal as breathing.

If done by a competent crew, you won’t have anything to worry about.

If it is to move your hosting account and leave the domain name where it is, it is process that shouldn’t exceed 5-10 minutes for most websites.

You simply just need to change your “A” record and name-servers to point to the ones that you got from your new hosting provider.

To avoid downtime, arrange with your new web host for the day, hour and minute for the migration, then an hour to that time, reduce your TTL (Time-To-Live) to something like 300 seconds at your domain registrar.

Time to live (TTL) is a numerical value that determines how long a DNS cache server can serve a DNS record before reaching out to the authoritative DNS server and getting a new copy of the record.

It refers to the amount of time or “hops” that a packet is set to exist inside a network before being discarded by a router.

Once the prescribed event count or timespan has elapsed, data is discarded or revalidated.

If it is a migration that with large number of accounts, then careful planning is required to ensure that minimal downtime for the websites.

If you would be moving your domain name along with the hosting, then you probably need to make adequate preparation for this.

The same goes if you want to transfer domain to another registrar.

One of things that you need to have access to is the domain’s EPP.

EPP (alternatively called an auth code, a transfer key, a transfer secret, an EPP code, EPP authentication code, or EPP authorization code) is a transfer secret key or code granted by all the domain name registrars.

This code is used as a protection mechanism, to ensure that only the rightful domain owner can control the transfer of the domain registration.

Domain names are valuable and important properties, and theft has been a problem.

If you are unsure who your domain registrar is, perform a whois search on the domain name you wish to transfer.

Look at the registrar field.

This whois field will list your current domain name registrar.

The simply follow these instructions listed below for that particular registrar to obtain your domain name’s authorization code.

You many need to check any help or knowledge base available on your current registrar’s site.

If your registrar doesn’t have a an article on Authorization Codes or Auth Codes, email your existing registrar’s customer support from the domain’s administrative contact address and request your Authorization Code or Auth Code for a particular domain name.

Don’t buy it if you are told that the domain name does not have an authorization code (unless it s .jp domain or similar extension).

Be persistent!

To recap, follow steps below before attempting a domain transfer:

  • Ensure that the domain is at least 60 days old. Regulations prohibit transferring domains that are less than 60 days old (or were transferred between registrars within the last 60 days). Please wait at least 60 days before transferring.
  • If your domain expired with your old registrar and you renewed it with them, please do not transfer it within 45 days of the previous expiry date since it will not add 1 more year to your domain name and you will lose out on the renewal fees paid to the older registrar.
  • Retrieve the EPP Authorization key from your current registrar.
  • Unlock the domain.
  • Make sure the WhoIS information is up-to-date.
  • Since transfer verification email will be sent to the Administrative Contact email address, make sure you have access to the email address stated in the WhoIs Information.
  • Update the assigned name-servers prior to initiating the transfer.

This process can take up to 7 days, so please allow plenty of time for your previous registrar to approve the transfer.

If the domain transfer fails, there are two things that always tend to be the reason.

  1. Incorrect Email Address: Make sure that the email addresses associated with your domain at the domain registrar are correct and working. Once you start the transfer, the current registrar is going to email this address asking for permission to move the domain. If the email listed isn’t your email or doesn’t work, you can’t respond to this email and thus the transfer will fail.
  2. Locked Domain Prevents Transfer: Make sure that the domain isn’t locked. If it is locked, even if you agree to the transfer, the transfer will fail.

If everything is OK and you have gained access to your EPP, it is time to start the migration.

Sign up for a new hosting account before you cancel your existing plan. If you are setting up home with us, we made it fast and easy.

To do that, purchase a hosting account.

You can do that by visiting: https://dashboard.cpanelcontrolpanel.com/cart.php

During the signup process, you will be given three (3) options regarding the domain you want to use with the hosting account.

Either to register a new domain, transfer your domain from another registrar or use a domain you already owned and change the name-servers to point to our servers after completing your order.

Select the second option and follow the prompt until completion.

Once your hosting order has been approved, you will asked for the login credentials to either your former hosting account’s cPanel or Plesk.

Mostly these would be:

  • cPanel URL:
  • cPanel Admin Username:
  • cPanel Password:
  • SSH Port:

If you have two-factor authentication enabled on the source server, you may need to remove it so the Migration Team can log in.

To make this a seamless experience, the process might require modifying your existing account username to use the one you that we are migrating from since your application databases may depend on it.

Once your new hosting account is set up, you will be given an IP address on which you can edit your website before any domain name changes are processed (whether or not you’re moving your registration).

That’s it!

Your website, data, email and application will now have a new home.

And since you will be sticking with same domain name, you really don’t need to worry about losing SEO authority during the move.

However, it’s extremely important that you carry out this process out as surgically careful as possible as anything less than this may impact the site as a whole.

The simple rule to follow is to:

  • Ensure that the domain is at least 60 days old.
  • Make sure the WhoIs information is up-to-date.
  • Make sure you have access to the email address stated in the WhoIs Information.
  • Update name-servers to the new name servers prior to initiating the transfer.
  • Unlock the domain.

The Answer To What Is My cPanel Username?

Or how to find cPanel username and password?

On cPanel, cPanel users can access the cPanel interface via port:2083 or using a service domain such as cpanel.domain_name.com to manage most aspects of their website.

Only the server root user or the reseller who owns the cPanel account can specify each cPanel account’s username and privileges when setting up the account the first time.

As a rule, each cPanel username must a unique username that contains 16 characters or fewer and doesn’t start with a number or the string test that the system uses to identify each account.

Now, your cPanel username is not the email you used to sign up for the hosting account.

Most of the time, your cPanel username will be derived from the domain name that was used to order the web hosting account.

So if the domain name is “sundomain.com”, the cPanel username might likely be something like “sundoma” or even “sundomain“.

It is this name that you will need to type in and access your cPanel control panel.

On systems that have database prefixing enabled, this cPanel username is use as an identified for MySQL or PostgreSQL databases.

It is important to note that cPanel & WHM reserves some usernames for the system’s use, and these cannot be used for cPanel or WHM accounts.

This is a growing list of reserved usernames that seem to grow with each new versions of cPanel & WHM.

To find your cPanel username, either:

  • look for the hosting account information email that your hosting provider sent to you when your account was provisioned. It definitely will contain your username and password.
  • if you didn’t receive this email or unable to find it, contact the web hosting provider’s support team so they can resend the email or give you the credentials.

Can I change cPanel Username?

Yes … you can ask for your cPanel username to be changed after the account has been provisioned but this is not really recommended.

If you don’t have this level of access, then you’d need to contact your hosting provider to change your cPanel username as it is something that needs to be done on the root level.

If you are a 2cPanel customer, do let our Technical or Infrastructure team to know and we will take it from there.

There are things to keep in mind though when your cPanel username is changed to something new:

  • the new name must be the same length or shorter because a longer name may cause MySQL® to truncate the account’s database names and database usernames, which causes problems.
  • you cannot use the associated websites and databases while the data transfer to the new username.
  • the system will rename your home directory.
  • we probably may need to rename your prefixed databases and database users which help preserve the visual correspondence between database names and the username. And when we do, in applications that depend on the previous names will run into errors.
  • if we don’t rename the prefixed databases and database users and you are using PostgreSQL®, you cannot log in until you reset your password.