Category Archives: VPS Hosting

VPS Conntrack Sessions and How can I check how many sessions my VPS is using?

Conntrack is a table that stores information approximately all connections to/from a VPS.

A normal Linux OS has a maximum of 65536 conntrack sessions by default, these sessions all require memory which is used by the host node & not by the VPS so using this limit too high can impact the whole node & allow users to use more RAM than their VPS has allocated by eating up the host’s RAM.

A typical VPS should never use more than 10000 sessions at any given time although we do have some busy servers that peak at 20000 once in a while.

If your VPS is using more then 10000 Conntrack sessions, its means there must be something wrong under your VPS. So you have to investigate it. There may be any abuse script is running or you may be under attack.

To check your conntrack sessions, run the following command in your VPS:

cat /proc/net/nf_conntrack

Recover Space Used by PHP error logs in cPanel


If you are using cPanel based server you may notice invariably that most of the cPanel accounts will have accumulated error logs within their home directories by using the file having name error_log. These error_log files may be generated due to PHP errors caused by PHP scripts.

Some of these error_log files may using huge amount of disk space & we need Recover Space used by PHP error logs in cPanel.

Here’s a quick way to remove these error_log files from root to recover space used by these files.

Just run the bellow command at root SSH:

find /home -name error_log -exec rm -vf {} \;


How to Install Nginx Admin in a VPS

nginx admin

How to Install Nginx Admin in a VPS:

Nginx Admin is plugin for cPanel server to manage Nginx from WHM. Nginx will work as a front end reverse proxy of your cPanel server along with Apache.

Nginx is known for its high performance, speed & low resource usage. Many enterprises, such as WordPress & Comodo, already switched to Nginx as it proves to be the most powerful web-server.

In this tutorial we will install step by step the Nginx Admin cPanel plugin.

If you installing Nginx Admin for the first time, You must need to follow these steps.


Step 1:

You need to generate a WHM access hash (Remote Access Key)

Login to WHM as root
Go to Cluster/Remote Access » Setup Remote Access Key
Click Generate new key

Step 2:

Download the latest Nginx Admin Package.

cd /usr/local/src
tar xf nginxadmin.tar
cd publicnginx

If you are installing first time you have to run Python fix.


Run install script

./nginxinstaller install

Step 3:

Wait couple of minutes & reinstall Apache.

/etc/init.d/httpd restart

Step 4:

Add automated /tmp cleanup cron.

crontab -e

Add the line at the end of the file.

0 */1 * * * /usr/sbin/tmpwatch -am 1 /tmp/nginx_client

Congratulation! you have installed Nginx Admin successfully


Login to SSH as a root & run the bellow commands.

cd /usr/local/src/publicnginx
./nginxinstaller uninstall

Uninstall Complete.

For more info approximately Nginx Admin please visit

Common Tips:

  • Although its not necessary yet its better you should re save Tweak Settings to prevent some error, for this login to root whm, go to Server Configuration » Tweak Settings & just click Save
  • At root WHM go to Service Configuration » Apache Configuration » Piped Log Configuration, check Enable Piped Apache Logs & click save