How to extend the volume size on ec2 instance aws

    Posted in Amazon Cloud Services, Linux Servers on Oct 30, 2018

    linux-dedicated-seerver.jpg

    1. Confirm the kernel.

      # uname -r

    2.6.32-431.29.2.el6.x86_64

    1. Confirm the initial allocated size

      # df -h

      Filesystem Size Used Avail Use% Mounted on

      /dev/xvda1 7.9G 797M 6.7G 11% /

      tmpfs 498M 0 498M 0% /dev/shm

      # lsblk

      NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT xvda 202:0 0 15G 0 disk └─xvda1 202:1 0 8G 0 part /

    2. Install EPEL6 Repo

      # wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
      # rpm -ivh epel-release-6-8.noarch.rpm
    3. Install the dracut & cloud-utils growpart modules-growroot

      # yum install -y dracut-modules-growroot cloud-utils-growpart
    4. The initrd need...

    [Read more...]

    Check Apache concurrent Connections using Netstat command

    Posted in Linux Servers on Oct 12, 2018

    linux-dedicated-seerver.jpg When your server is hitting high & overload, you might want to check, how many active connections are there and which IP take maximum of hit/connection from apache.

    To Count Apache concurrent connection's, use any of the below commands.

    netstat -nt | grep :80 | wc -l
    
    netstat -plan|grep :80 | wc -l
    
    netstat -an | grep 'EST' | wc -l
    
    netstat -ant | grep ESTABLISHED | grep :80 | wc -l
    
    ps -A | grep httpd | wc -l
    
    ps -ef | grep http | wc -l
    
    ps aux | grep httpd | wc -l
    
    ps aux | grep http | grep -v "\(root\|grep\)" | wc -l

    To print the active Internet connections to the server at port 80 and sor...[Read more...]

    How to sync the data from one server to another server via ssh

    Posted in Linux Servers on Oct 12, 2018

    linux-vps-hosting.jpg

    Sync the data from one server to another server using rsync on linux server.

    Rsync is one of common ways to copy files and folders between two servers, whether the servers are local or remote.

    Login to the server via ssh OR putty Gen windows application.

    ssh root@oldserverIP 
    
    rsync -ravP /home/user/file_name root@xx.xx.xx.xx:/home/user/d

    Here first refers the source path from where you are syncing the file

    and xx.xx.xx.xx refers destination server IP and the destination path where you would like to save the data.

    Please check the following usefull rsync variables :

    -v : Verbose
    
    -a : archiv...
    [Read more...]

    How to change the hostname of your linux virtual nodes india

    Posted in Linux Servers on Oct 11, 2018

    Change Virtual Compute Nodes Hostname

    Please follow the below steps to change the hostname of your Virtual Compute Node.

    Login to your Virtual Compute Node as a root user.

    To check the current hostname of your server, run the command

    hostname

    To change the hostname of your server, type new name followed by hostname

    hostname new-name

    Change the hostname under the path /etc/sysconfig/network

    vi /etc/sysconfig/network

    Edit the content of the file so that it looks like this

    HOSTNAME=new-name

    Ubuntu/Debian

    Next, edit the /etc/hostname file and update hostname:

    vi /etc/hostname

    Edit the /etc/hosts f...[Read more...]

    How to Fix client intended to send too large body

    Posted in Linux Servers on Aug 24, 2018

    First you need to edit the /etc/nginx/nginx.conf file by typing the vi command:

    $ sudo vi /etc/nginx/nginx.conf

    In http (server/location) section add the following directive to set the

    maximum allowed size in 10MB:
    
    client_max_body_size 10M;

    Save and close the file.

    Test nginx configuration for error

    Run the following command:

    $ sudo nginx -t

    Sample outputs:

    nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
    nginx: configuration file /etc/nginx/nginx.conf test is successful

    If no error means, restart the nginx web server.

    $ sudo systemctl reload nginx
    
    OR
    
    $ sudo service nginx re...
    [Read more...]

    How to change the location for virtual hosts in Plesk for Windows Server

    Posted in Plesk Control Panel on Aug 16, 2018

    vps-server-cloudtechtiq.jpg

    Connect to a Plesk server via RDP.

    Launch Plesk Reconfigurator at Windows Start > All Programs > Plesk.

    In Plesk Reconfigurator, select Change Virtual Hosts location.

    host.PNG

    Specify the new location for virtual hosts and click Next. All existing virtual hosts data will be transferred to the new location as well.

    vhostslocation.PNG

    [Read more...]

    How to change the mailaccount location in Plesk for Windows Server

    Posted in Plesk Control Panel on Aug 14, 2018

    windows-dedicated-server-hosting.jpg

    Connect to a Plesk server via RDP.

    Launch Plesk Reconfigurator at Windows Start > All Programs > Plesk.

    In Plesk Reconfigurator, select Change Plesk Mail Data location.

    maillocation.PNG

    Specify the new location for Plesk mail data and click Next. All existing mail data will be transferred to the new location as well.

    mail.PNG

    [Read more...]

    How to change the location for backup files in Plesk for Windows Server

    Posted in Plesk Control Panel on Aug 08, 2018

    vps-server-cloudtechtiq.jpg

    Connect to the Plesk server via RDP.

    Launch Plesk Reconfigurator at Windows Start > All Programs > Plesk.

    In Plesk Reconfigurator, select Change Plesk Backup Data location.

    Pleskbackup.PNG

    Specify the new location for backup files and click Next. All existing backup data will be transferred to the new location as well. During this operation Plesk will be stopped.

    backuplocation.PNG

    [Read more...]

    How to Manage Cphulk From Command line

    Posted in Whm/Cpanel on Aug 01, 2018

    linux-dedicated-seerver.jpg

    Manage Cphulk From Command line

    Use the following methods to manage cPHulk on your server:-

    Debug mode

    To enable debug mode for cPHulk, run the following command:-

    touch /var/cpanel/hulkd/debug

    Check cPHulk's status

    You can check cphulk's status from command

    "ps aux | grep -i".

    this will return a result like :-

    1 root 1501 0.0 0.4 34816 5076 ? S 07:58 0:00 cPhulkd - processor

    Restart the cPHulk daemon (cphulkd)

    To restart the cphulkd daemon, perform either of the following actions:

    Perform a soft restart. To do this, run the following command:

    /scripts/restartsrv_cphulkd

    Perform a hard resta...[Read more...]

    How to setup automysql backup/dump scripts for regular backups

    Posted in Linux Servers on Jul 30, 2018

    First download it via following link :-

    root@cloudtechtiq.com:~$ wget http://ncu.dl.sourceforge.net/project/automysqlbackup/AutoMySQLBackup/AutoMySQLBackup%20VER%203.0/automysqlbackup-v3.0_rc6.tar.gz

    Create a directory in /root named as automysqlbackup and Unzip file :-

    root@cloudtechtiq.com:~$ tar zxvf automysqlbackup-v3.0_rc6.tar.gz /root/automysqlback

    After unzip install that file :-

    root@cloudtechtiq.comk:~$ sh install.sh

    -> Press enter

    -> Press enter

    then open:- /etc/automysqlbackup/automysqlbackup.conf

    root@cloudtechtiq.com:~$ vim /etc/automysqlbackup/automysqlbackup.conf
    make followin...[Read more...]