421 Too many connections from this IP

This article discusses why you may receive a Too many connections from this IP error message when you use FTP, and how to resolve the problem.

Causes an idle FTP connection?

The default setting is usually 8 or 10 simultaneous FTP connections from 1 IP. If you exceed this amount, you may run into a 421 Connection Error which are often caused by Idle FTP connections.

Idle FTP connections are caused when an FTP client opens multiple connections, without closing the previous ones, or due to an incorrect setting.

VPS and Dedicated hosting plans have the ability to modify the number of simultaneous connections allowed in their WHM; the default setting is usually 8.

Increasing this limit will prevent the error messages.  Our Shared and Reseller plans allow up to 8 simultaneous FTP connections from 1 IP address at a time, but cannot raise this limit.

Response: 421 Too many connections (8) from this IP

If your FTP client is using more than 8 connections at the same time, you will get refused with a message similar to this:

Response: 421 Too many connections (8) from this IP Error: Could not connect to server Status: Disconnected from server Status: Disconnected from server Status:  Delaying connection for 5 seconds due to previously failed connection attempt...


Closing Idle Connections in cPanel (Disconnect users from an FTP session)

If you suspect malicious activity from a user, or if the user is idle, you can disconnect their FTP session.

To disconnect a user from an FTP session, perform the following steps:

1. Login to cPanel, Click the FTP Session button under the Files section.



2. You will then see a list current FTP connections. Click the disconnet_icon icon next to the process ID that you wish to disconnect in the Action column.



You will then see a message similar to this Are you certain that you wish to disconnect the “test@” FTP user? Click the Disconnect button to proceed.


Now check reloading the page.

How do I Directory Privacy in my Control Panel

protect folder
protect folder

This feature allows you to protect certain directories of your account. If you enable this feature, the system prompts users for a username and password when they attempt to view content in a protected folder.

How Directory Privacy works

It’s important to understand how Directory Privacy on a folder works. When you choose to password protect a directory in cPanel, cPanel creates a rule in your .htaccess file.

This rule specifies that the folder is protected and the visitor will need to provide the proper username and password to log in and view the files.

Configure a password for a directory
  1. To password protect a directory, perform the following steps:
  • Select the directory that you wish to protect.
  • Click the appropriate folder iconto navigate to a different folder.
  • Click the desired folder’s name to select it.
Note: A protected directory's subdirectories inherit their parent directory's password protection.

2. Select the Password protect this directory checkbox.

3. Enter a display label for the directory in the Name the protected directory text box.

Note: This name is only a label for the directory, and you should not confuse it with the directory's actual name.

4. Click Save.

After you complete this process, you must create a user that can access this directory.

Create a user

To create an authorized user for the directory, perform the following steps:

  1. Enter the desired username in the Username text box.
  2. Enter and confirm the new password in the appropriate text boxes.
Notes:The system grades the password that you enter on a scale of 100 points. 0 indicates a weak password, while 100 indicates a very secure password.

Some web hosts require a minimum password strength. A green password Strength meter indicates that the password is equal to or greater than the required password strength.

Click Password Generator to generate a strong password. For more information, read our Password & Security documentation.
Click Add Or Modify The Authorized User.
Note: To change the authorized user's password, enter the user's information again in the Create User section of the interface, but enter a different password for the user.
Remove password protection

To remove password protection from the directory, deselect the Password protect this directory check box in the Security Settings section of the interface and click Save.

How to enable log rotation on Linux hosts

Log rotation is an way to manage old log files to reduce disk space usage on the server.logrotation

By default log rotate is invoked once a day using a cron scheduler from location /etc/cron.daily/

grep logrotate.conf /etc/cron.daily/logrotate
/usr/sbin/logrotate /etc/logrotate.conf >/dev/null 2>&1

Log rotation is manged by two different configuration files /etc/logrotate.conf [generic file] and a service specific configuration file placed under /etc/logrotate.d/ folder.

For example, we have to add below contents in /etc/logrotate.d/cmdlog (name can be anything) file to enable log rotation for /var/log/cmdlog.log.

size 200M
rotate 5
create 0600 root root
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true


/var/log/cmdlog.log : Log file for which rotation is needed; We can specify multiple log files[one per line] or else use regex to cover multiple log files. Example : /var/log/*.log can be used.

missingok : Do not output error if log file is missing.

notifempty : Do not rotate log file if it is empty

size : Log file is rotated only if it grow bigger than the specified size.

rotate : ensures that logrotate keeps a specified number of backup of log files.

compress : Old versions of log files are compressed with gzip by default.

create : Creates a new log file wit permissions 600 where owner and group is root user.

daily, weekly, monthly, or yearly : Backup rotation interval

prerotate & postrotate : In some cases, we might have to restart a service or kill a process before or after rotating logs in such cases we can use these options.

For more available options, try “man logrotate” command.

Once above file is created, either we can wait for logrotation to happen when the cron runs or else we can issue below command to run logrotate forcefully.

logrotate -f /etc/logrotate.conf

Creating Virtual Directories

Create a virtual directory within a website:

Go to Websites & Domains and find the website’s domain name.

Click Virtual Directories. You are in your web site root now.

Navigate to the directory in which you want to create a virtual directory.

Click Create Virtual Directory.

Specify the required parameters:

Name – specify the virtual directory name.

Path – specify the virtual directory path:

Select the Create physical directory with the same name as virtual directory checkbox to automatically create a physical directory with the same name as the virtual directory you are creating.

Clear the Create physical directory with the same name as virtual directory checkbox and specify the path in the field to select a physical directory that already exists.

Script source access – select this checkbox to allow users to access source code if either Read or Write permissions are set. Source code includes scripts in ASP applications.

Read permission – select this checkbox to allow users to read files or directories and their associated properties.

Write permission – select this checkbox to allow users to upload files and their associated properties to the virtual directory or to change content in a write-enabled file. Write access is allowed only if browser supports the PUT feature of the HTTP 1.1 protocol.

Directory browsing – select this checkbox to allow users to see a hypertext listing of the files and subdirectories in the virtual directory.

Log visits – select this checkbox if you want to store the information about visits of the virtual directory.

Create application – select this checkbox to make the directory an IIS application. The directory becomes logically independent from the rest of the website.

Execute permissions – select the appropriate program execution level allowed for the virtual directory.

None – allow access only to static files such as HTML or image files.

Scripts only – allow running scripts only, not executables.

Scripts and Executables – remove all restrictions so that all file types can be executed.

ASP Settings – set specific settings for ASP-based web applications.

If you are using ASP-based applications that cannot operate correctly under data transfer restrictions currently set by IIS, clear the Defined by parent directory checkbox corresponding to the field you want to change and type in the required number.

If you want to enable debugging of ASP applications on the server side, clear the corresponding Defined by parent directory checkbox and select the Enable ASP server-side script debugging checkbox.

If you want to enable debugging of ASP applications on the client side, clear the corresponding Defined by parent directory checkbox and select the Enable ASP client-side script debugging checkbox.

Note that if you are trying to change ASP Settings for the root virtual directory, the default checkbox names will be Defined by IIS instead of Defined by parent directory.

Click OK.

To remove a virtual directory from a website:

Go to Websites & Domains and find the website’s domain name.

Click Virtual Directories.

Select the checkbox corresponding to the directory you want to remove.

Click Remove.

Confirm the removal and click OK.

Shared hosting, VPS or Dedicated hosting

shared vs VPS vs Dedicated Hosting
shared vs VPS vs Dedicated Hosting

Web hosting is a service that allows organizations and individuals to post a website or web page on to the Internet. When Internet users want to view your website, all they need to do is type your website address into their browser.

Their computer will then connect to your server and your webpages will be delivered to them through the browser. Most hosting companies require that you own your domain name in order to host with them. If you do not have a domain name, the hosting companies will help you purchase one.. Most of your current files (documents, pictures, software etc) are sitting there on your personal computer/laptop.

Only you can access them, right? If you wanted to show those files to other people, you’d have to send the files to those people, think of web hosting as sending your ‘files’ to a whole lot of people.

Your website is the file and essentially it’s being put up on the internet for people to view. So instead of having to send complex website files to people in order for them to be able to see your website, they’re able to simply type in your website URL and view it all there.  A web host, or web hosting service provider, is a business that provides the technologies and services needed for the website or webpage to be viewed in the Internet. Websites are hosted, or stored, on special computers called servers.

What are the different types of Web Hosting?

With all the different types of hosting available, it can be confusing as to which one is right for you. Do you choose shared hosting, a VPS, or a Dedicated server?

In this article we will cover the basics of the different types of hosting plans so you can find which type is the right one for you.


Shared hosting is the most classic and most popular hosting plan along most people on the world. Web hosting in which the service provider serves pages for multiple Web sites, each having its own Internet domain name, from a single Web server.  The main reason why people pick this plan is that they actually don’t need more than that. It’s also usually the cheapest hosting option.

You can opt for a Shared hosting if you fall in any of the following:

  1. Having a plan to start–up a venture using your own or borrowed capital.
  2. Expecting a low initial rate of visitors say 500 per day.
  3. Limited number of email accounts to be set up as you currently have only a limited number of employees.
  4. Planning to host and maintain only your web site and a couple of blogs etc.



A virtual private server (VPS) is a virtual machine sold as a service by an Internet hosting service. A VPS runs its own copy of an operating system, and customers have superuser-level access to that operating system instance, so they can install almost any software that runs on that OS.

VPS hosting is more powerful than shared hosting, since everyone gets a nice private virtual server each. So technically, you get a nice chunk of server space etc for yourself. That’s a nice step up from the shared hosting option. So even though technically you’re on the same physical machine as others, you have your own little space – so no sharing with others. This usually means a better performance and faster loading speeds.

Who should go for a VPS ?

The users who have sites with huge volume of visits and complex tasks being executed VPS hosting is recommended. This is because such website requires high amount of resources and constant monitoring on the part of the server admin. VPS becomes bit expensive but if you need more resources it is better to go for a VPS.


Dedicated servers are often the fastest and most powerful choices available, though some of the high-end VPS options can give the lower performing dedicated servers a run for their money.

Leasing an entire server on which to host your website. You get access to all hardware and software from your web server software right down to the operating system all for a very hefty price.

Dedicated hosting is only for the heaviest of power users. The ability to control your own operating system often can mean your on your own when it comes to software support and by the nature of your own customization’s, should the hardware fail it can take more time to recover your site. If however you have security sensitive data on your website or a very high traffic load a dedicated server may be for you as you alone have access to the system meaning that all RAM/CPU/disk space/etc is under your full control.

The result is that performance should be very predictable, which is very important for those who are planning on hosting e-commerce solutions or planning on monetizing their website(s) in other ways.

Who should go for a Dedicated Server ?

Dedicated server is recommended for big companies and institutions who have huge data and perform multiple tasks and calculations. Dedicated server is expensive but you have full control over the server and you can install anything you require for your site. With a dedicated server you have ample resources to handle any volume of requests for your site.


Cloud hosting is an entirely different, I guess you could say it’s a little like renting.

With normal hosting, you get a machine that gives you resources, like memory and CPU time. With Cloud hosting, you don’t have a machine. Your hardware is virtual, which brings a whole host of cool benefits.

It’s pretty advanced and can be pretty cost efficient when compared with the other types of hosting, but it’s definitely something that is trending on 2015 and beyond.

VPS Combination of Shared Hosting and Dedicated Server Important Features


A virtual private server or VPS hosting divides a server into virtual servers, where each websites is like hosted on their own dedicated server, but they’re actually sharing a server with a few different other users.

The users may have root access to their own virtual space and better secured hosting environment with this type of hosting. Websites that need greater control at the server level, but don’t want to invest in a dedicated server.

VPS hosting is a newer form of web hosting, VPS seeks to combine few of the attractive features offered by dedicated hosting with the affordability provided by shared hosting.

VPS hosting can be a great move if you are starting off with a resource intensive website that may need additional resources to function smoothly. Virtual dedicated hosting can also be a perfect upgrade if the resources being offered by shared hosting are not sufficient to keep your website going without any glitches.

This type of hosting provides more control over the assigned resources and better security at a significantly lower cost. A hybrid of shared hosting and dedicated hosting, it supports higher online traffic and more control like dedicated server but only at a fraction of the cost of dedicated hosting.

Users are given super level access to these servers, and each VPS gets its own copy of operating system along with resources like bandwidth, RAM, storage space, etc.

Account holders have the freedom to install and run all the software and applications that the chosen OS supports. Each account holder in a virtual private server environment gets a unique IP address and remains completely isolated from what others are doing on the same server.

There also fewer security issues with VPS hosting. Virtual private server accounts unlike shared hosting come with own unique IP addresses, and the virtualization layer means that you remain completely affected by any problems arising on other sites.

Getting the best out of your virtual server hosting

The actuality that you remain completely separate from other account holders residing on the same server is one of the best features of virtual dedicated server hosting.

You have your own dedicated set of resources assigned to your own hosting account ensuring that your website continues to perform at its optimum level despite extra resource consumption by other websites. This invariably leads to better security, more control, high levels of uptime and faster loading speed for your website.

Virtual private server offers control and security of dedicated hosting without the high cost associated with it. You only need to ensure that you have a quality and reputable service provider by our side who never fails to provide the resources that has been promised to you.