Posts Under Category: VPS

If any script which requires perl is not working properly on your server, you may wish to check if perl is installed or not on your server.

Login in your server as root via SSH and execute following command:

perl -v

If perl is installed on your server, it will show you the version that is installed. If its not installed, it will show some error message.

How to List installed Perl modules on server

Enter following command


After this enter l, this will show you all installed perl modules on your server.

How to check perl version installed on server

Following command will display the perl version installed on server:

perl -v

Our Recommended VPS Hosting

CentOS is most popular operating system on Linux servers. If you want to check the CentOS version installed on your server, please refer to our following tutorial page:
How to find CentOS version installed

If you want to check centOs installed on your server is 32-bit or 64-bit, here is how you can find.
Login in your server via SSH as root and execute following command.

uname -a

If the output shows i686 or i386, this means its a CentOS 32-bit.
And if the output shows x86_64, this means its a CentOs 64-bit.

Screenshot on a 32-bits centOS server


Screenshot on a 64-bits centOS server


Our Recommended VPS Hosting

chown command is used to change owner of a file on a Linux server.

Syntax of chown command is:

chown user:group filename

Suppose you want to change owner of following file to a new user whose username is lophost


Login to your server as root via SSH, and execute following command:

chown lophost:lophost /home/mywebsite/public_html/

You can also use user ID of the user. Let’s say you want to change ownership of file to user ID 526. So, our SSH command will be:

chown 526:716 /home/mywebsite/public_html/

Where 526 is user ID of that user.
And 716 is usergroup of that user.

Our Recommended VPS Hosting

eAccelerator is a popular PHP accelerator and optimizer. It improves and increases the performance of PHP scripts by caching them. eAccelerator can typically reduces server load and increases the speed of your PHP code by 1-10 times.

By default eAccelerator saves cache in /var/cache/eaccelerator directory. But eAccelerator cache directory can be different on some server. Like it may can be /tmp/eaccelerator

Sometimes, you may need to clear eAccelerator cache to free up some space in /var or /tmp directory.

Here is how you can delete / clear / flush eAccelerator cache.
Login in server as root via SSH, and execute following command.

If eAccelerator cache directory is /tmp/eaccelerator, use below command to delete all cache older than 24 hours.

tmpwatch --mtime --all 24 /tmp/eaccelerator

If eAccelerator cache directory is /var/cache/eaccelerator, use below command to delete all cache older than 24 hours.

tmpwatch --mtime --all 24 /var/cache/eaccelerator

Our Recommended Dedicated Server

Error_log file saves the error logs of a account / user / website. There can be multiple error_log file under one user / account / website.

These error_log files may consume lots of space on your server. Sometimes the size of error_log files are in GB. So, you may want to delete all error_log files to free up some space on server.

Login in server via SSH as root and execute following command:

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

The above command will search for error_log files in /home directory and delete them. Thus it will delete all error_log files under all users / accounts / cPanel accounts / websites.


1) This command can take lots of time to complete depending on size of your /home directory. Sometimes it may take 10-30 minutes to complete.

2) If required server will automatically create new error_log files.

Our Recommended Dedicated Server

SSH is the fastest and easiest way to delete multiple files or a complete folder on a server. Please take maximum care while deleting a file or folder.

How to delete a file via SSH

Use rm command to delete a file.
Suppose you want to delete /home/filename.txt file. To delete this file, execute following command in SSH:

rm /home/filename.txt

How to delete a folder via SSH

Suppose you want to delete /home/foldername folder and all files/folders inside this directory.
For this execute following command in SSH:

rm -rf /home/foldername/

Our Recommended VPS Hosting

Nano is a small and easy to use text editor for Linux. By default nano might not be installed on your Linux / CentOS / RedHat / CloudLinux / cPanel servers.

How to install NANO

Login as root to your server via SSH, and execute following command:

yum install nano

How to un-install / remove NANO

If for any reason you want to remove nano text editor from your server, execute following SSH command.

yum remove nano

How to know current version of nano installed

Following SSH command will show the version of nano installed on your server.

nano –-version

Our Recommended VPS Hosting


R1soft server is unable to connect to Agent server, and giving following error message.

Failed to connect to (hostname) after 120000 milliseconds


The R1soft backup server IP has been blocked at Agent server firewall. If you have CSF firewall installed, then its blocked by CSF firewall.


Remove R1soft server IP from blocked / deny IP list. It may be temporary blocked or listed in csf.deny
Also add R1soft server IP in csf.allow as trusted IP.

Our Recommended Dedicated Server

You can check your dedicated server or VPS memory details using SSH command.

free –m

This command will show total memory installed, currently used memory, currently free memory and other details.


Another useful SSH command is ps to check memory usage. This command will show all running processes with RAM usage as a percent of total RAM:

ps aux


Our Recommended VPS Hosting