What is file usage in cPanel servers

What is file usage in cPanel servers

By default, all shared and reseller hosting accounts have a file usage limit, this is also sometimes known as the inode limit. We place file limits on shared and reseller accounts to keep our systems up and running optimally. Hosting a large number of files on a shared web server can cause issues for the server’s file system and also adversely affect the performance of the backup system when it comes to both backing up and restoring data.

The file count includes all files and folders on your webspace. You can view your current file usage as well as the limit that is set on your account by logging into cPanel and looking under the “Statistics” heading down the side of the page, as shown in the following image.

Decreasing Inode Usage in  CPanel Hosting

Most people will not need to be familiar with Inodes if they are using their hosting in normal circumstances such as for a basic or intermediate website and normal email use. However, to ensure that all our customers get a consistently high level of service we have implemented inode limits per account for reducing resource abusers in our Shared Hosting and Reseller hosting.

Not all inode overages are caused by abuse though. It could just be that you need to do a bit of a clean up of your hosting files. If you experience issues caused by high Inode usage then this tutorial is to help you decrease the number of inodes on your account.

Here are some steps to reduce the inode number limit.

1) Delete Unnecessary Files And Folders
Examine the files and folders manually and decide on if the file is necessary or not. In case if the file is an old backup archive or if the folder is created for testing or staging purpose, you may remove it or download it locally via FTP or cPanel >> FileManager and delete it from the server.

2) Clear Old And Spam Emails
Deleting the old emails helps a lot in decreasing the inode usage. There might be spam mails in your mailbox which are of no use and deleting those mails will hep you to reduce the inode number. You can remove spam emails from email client or webmail. You can seek help from our support department which operates 24*7 to delete the mails easily via shell.

3) Clear The Cache Files
Most of the CMSs uses cache to reduce the response time and application like Joomla can create a lot of cache files which can increase the inode usage tremendously. So it is advised to keep an eye on the cache folders and make sure the number of cache files is the least.

Most of the CMSs now provide the facility to purge the cache and you can make use of it to control the number of cache files. Or you can setup a cronjob to automatically clear the cache files periodically.

If you have the inode limit getting hit regularly or you still have issues after you have cleared up your files, we suggest you to upgrade the package to a higher one with higher inode limit or consider a Virtual Private Server. You can contact our 24/7 support for this.

How do I create a parked domain?

1. Login to your cPanel and click on the Parked Domains icon (cPanel > Parked Domains)

2 Enter domain you want to park in the New Domain Name field, and click Add.

How do I create a backup of my website files?

Login to your cPanel Control Panel and choose “Backup” from the system menu. Click the link which reads “Download a home directory Backup ” Your computer will then prompt you for a place to save your backup files locally for safekeeping.

How do I block an IP address using cPanel?

If there is an IP address you want to block from your website, you can do so inside Cpanel. Here are the steps:

1. Log into your Cpanel account.
2. Under “Site Management”, go to Ip Deny Manager.
3. Under “Add an IP Deny:” enter in the IP address you wish to block.
4. Click “Add”.

You’re all set! In case if you need to remove the IP banning, all you need to do is remove the string it created in your .htaccess file or select it from the drop down menu on the IP Deny Manager page.

Note: NEVER block your own IP address!

Error 500/503/508 – CloudLinux Resource Limit Is Reached Errors and How to Fix Them

Error 500/503/508 – CloudLinux Resource Limit Is Reached Errors and How to Fix Them

This article discusses how Cloud Linux monitors and regulates resource usage on shared and reseller hosting servers to improve performance, stability and uptime. CloudLinux is an operating system that includes many features for optimizing shared hosting servers. Because shared and reseller servers host many accounts, an account using too many resources can lead to problems on the entire server. CloudLinux helps prevent these types of problems by actively monitoring resource usage, and proactively limiting accounts when they exceed predefined resource usage limits.

CloudLinux Limit Types and Related Errors

SPEED Limits (CPU Limit): If your cPanel account’s CPU usage exceeds predefined limits, Cloud Linux slows it down to acceptable limits. Your site remains available during this time. When CPU usage falls below the maximum limit, CloudLinux stops limiting your site. DDoS (Distributed Denial of Service), spambot, and brute force attacks are all possible causes of high CPU usage. A poorly configured site can also cause this limit to be reached.

To determine your account’s current SPEED/CPU usage, log into cPanel. On the cPanel home screen, under Stats, locate CPU Usage.

 

Disk IO Throughput (IO/IOPS): If disk usage exceeds predefined limits, CloudLinux slows down your site to bring it back within acceptable limits. Your site remains available during this time.

Memory Limit (PMEM/VMEM): CloudLinux monitors your account’s virtual and physical memory usage. If memory usage exceeds predefined limits, visitors to your site receive “500 Internal Server Error” or “503 Error” messages in their web browser. Additionally, CloudLinux slows down your site to bring it back within acceptable limits.

To determine your account’s current memory usage, log into cPanel. On the cPanel home screen, under Stats, locate Virtual Memory Usage and Physical Memory Usage.

Process usage Limit (PMEM): CloudLinux monitors the number of processes running on your account. HTTP, SSH, CGI, and PHP connection requests all count towards this predefined limit, which is generous. If your web site exceeds this limit, visitors receive “503 Error” messages in their web browser. The limit is primarily in place to help prevent DDoS, spambot, and brute force attacks from affecting entire servers. However, a poorly configured site can also cause this limit to be reached.

To determine your account’s current process usage, log in to cPanel. On the cPanel home screen, under Stats, locate Entry Processes.

Primary Reasons for These Above Errors:

Comment spamming: When spambots finds an outdated CMS such as wordpress or a web form, massive simultaneous connections are opened to fill the website with spam advertisements. Since such comment spamming is automated, multiple simultaneous connections are opened from different IPs. This exhausts the “Entry Process limit” and renders the website inaccessible with 508 error.

Brute force hack attempts: A popular way to hack into a website is to guess the right admin login details. This process is called brute forcing. Attack bots try various combinations of username and passwords at a very high rate from different IPs in order to get admin access. During such attacks, the “Entry Process limit” is easily exhausted. Such attacks are characterized by a high number of connections to a single file, often lasting for only less than a second.

In both of these situations you can try to block related connecting IPs from cPanel > Site Management > Ip Deny Manager or you can  install plugins such as WordPress ReCaptcha or WordPress Website Security to prevent these attacks and then we would recommend to keep an eye on your Entry Process usage from cPanel > Metrics > Resource Usage Overview > Click Details > Set Time Frame to 24 Hours.

Specific Component or Plugin: You can check with our support for assistance in identifying any extensions or processes that are acting as resource hogs. Sometimes, a specific plugin consumes lots of resources due to sloppy programming, and you’ll want to delete the or uninstall the plugin. If you need the features the extension provides, consider looking for a trusted replacement on the Joomla Extension Directory or WordPress repository; both of these resources are huge so you’re sure to find multiple alternatives for any plugin that you use; hopefully one that let’s resource-intensive!

Hacked Website: You might think this is obvious, but many hackers don’t make a habit of leaving a trace. Instead, after hacking your site they’ll add a script that could generate false requests, ultimately wasting your resources on nothing or making the script-maker money. If you think site is hacked you can open a ticket to our support and we can have it checked for you.

Sudden Increase Valid Website Traffic: Some websites achieve a sudden increase of valid traffic, usually during a marketing campaign or during festive seasons. In such situations, you may need to purchase more resources or upgrade the related user to larger plan with more resources.

More Information About Cloud Linux Limits – For more information please visit http://docs.cloudlinux.com/limits.html

Accessing your Control Panel (cPanel/WHM)

Your cPanel control panel is accessible via any of the following links:

http://yourdomain.com/cpanel
http://yourdomain.com:2082
http://yourip/cpanel
http://yourip:2082

Your WHM (WHM is only available for reseller, dedicated and VPS clients) control panel is accessible via any of the following links:

http://yourdomain.com/cpanel
http://yourdomain.com:2086
http://yourip/cpanel
http://yourip:2086

Your control panel/s run on ports 2082 (cPanel) and 2086 (WHM), so if you are behind a firewall or proxy server you might have trouble accessing your control panel if that port is blocked. Unfortunately, there is no way around this and the only resolution is to talk to your Network Adminstration about opening up that port for you.