Login to Members Area

Choose the service you want to log in
     
24x7x365 Presence
1-888-289-2246
Live Chat

Hosting Blog

 

Configuring the Rails server with Nginx and Unicorn

 

 

We are going to setup and configure the Rails server on CentOS with Nginx and Unicorn using a JodoHost VPS account.

Read More

Shivam | Thursday 10 July 2014 - 12:15 am | | Default | No comments

Failed to set locale, defaulting to C

This error "Failed to set locale, defaulting to C" is generally occur on ubuntu OS when there is no locale setup permanently in the environment which you work. It most commonly comes when you do login to your ubuntu machine via ssh or while start/stop a service on it. To fix this problem follow are some ways which suited on the distribution basis using below steps :-

1)

sudo locale-gen en_US en_US.UTF-8
dpkg-reconfigure locales

dpkg-reconfigure reconfigures packages after they have already been installed.

2) However, in some ubuntu distribution it doesn't resolve the issue with above and there need to do the following way :-

export LANG=en_US

or

Put the file below lines in /etc/environment:

LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8

or

Add the below line in .bashrc file :-

export LC_ALL="en_US.UTF-8"


Note: Make sure that on your machine the language pack has been installed otherwise the above entries won't work. So to install the language pack just run the below command :-

apt-get install language-pack-en-base  

These above are some ways as per the distribution to solve this  locale setting error.

Sachin | Wednesday 09 July 2014 - 11:52 pm | | Default | No comments
Used tags: , , ,

Setup DNS Server with BIND command

 

 

We are going to setup and configure the BIND DNS Server on CentOS. We are going to configure it at the same VPS sever where our webserver is installed. This this may not be the most viable solution for managing large number of domains.

Read More

Shivam | Tuesday 08 July 2014 - 04:19 am | | Default | No comments

Joomla error: RG_Emulation is On

Add the line below in the configuration.php file to disable this:

 if(!defined('RG_EMULATION')) { define( 'RG_EMULATION', 0 ); }

Manoj | Wednesday 04 June 2014 - 5:36 pm | | Default | No comments

Slow password prompt while making an SSH connection?

We've seen many times that when someone is trying to make an SSH connection to a server or a Linux machine there is a delay of some seconds or maybe even a minute after inputting the username, root or something else.

The actual reason behind this is that the system is looking up the hostname and the delay lasts as long as it is unable to resolve the hostname.

So to get rid of the lag, there is an option in SSH configuration using which we can stop the SSH daemon from dealing with the hostname resolution and by which we will be able to quickly view the password prompt. That option follows:

vi /etc/ssh/sshd_config

Find what's below in the sshd_config file:

#UseDNS yes

Uncomment the line above and change it to:

UseDNS no

Now save the sshd_config file with the change. Restart the SSHD service as below:

/etc/init.d/sshd restart

After this, you need to attempt again to make an SSH session and you won't face the slowness issue.

Another way is that instead of stopping the process of hostname resolution, make your server's hostname correct and make the entry in the /etc/hosts file and then the daemon will look up the hostname quickly.

That's all.

Sachin | Tuesday 03 June 2014 - 07:50 am | | Default | No comments

How to check the number of active connections on the Linux server

With the help of the commands below, you can check active connections on Linux server on different ports:-

   netstat -ntu | grep ':143' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort
   netstat -ntu | grep ':110' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort
   netstat -ntu | grep ':25' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort
   netstat -ntu | grep ':80' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort

Manoj | Wednesday 28 May 2014 - 08:29 am | | Default | No comments