Installation, Uncategorized

Idera backup agent configuration

How to configure Idera backup agent   Installing Agent Using YUM First, create a YUM .repo file with the R1Soft repository information. Open the new file with a text editor such as vi or nano: # cd /etc/yum.repos.d vi r1soft.repo Insert the following text into the file and save the file: [r1soft] name=R1Soft Repository Server baseurl=http://repo.r1soft.com/yum/stable/$basearch/ …

CPanel / WHM

Default Automatic index page when new account is created in cpanel/WHM

Default Automatic index page when new account is created in cpanel/WHM   We all want to show default index page when new account is setup. Below are the steps: First of all we have to create below  folder. mkdir /root/cpanel3-skel mkdir /root/cpanel3-skel/public_html Create default index page. vi /root/cpanel3-skel/public_html/index.html save and quit the file.   If …

CPanel / WHM

How to Configure Multiple shared IP’s in WHM

How to Configure Multiple shared IP’s in WHM   It is not possible to add multiple shared IP’s from WHM but it is possible to do it from SSH. First of all we need to create a /var/cpanel/mainips/ directory if it is not present. mkdir /var/cpanel/mainips/ Then we have to create a file. vi /var/cpanel/mainips/root …

CPanel / WHM

how to install whmsonic in cpanel

How to install WHMSonic in cpanel   Login to your server root SSH and copy/paste the following command fully and run it. cd /root/; rm -f installr.sh; wget http://www.whmsonic.com/setupr/installr.sh; chmod +x installr.sh; ./installr.sh   Sample installation output: *********************************************************************** * WHMSonic Setup v2.1.11 * *********************************************************************** WHMSonic installer is now installing the latest version. This may take a …

Cloud Linux, CPanel / WHM

Uninstall Cloudlinux from cpanel

You can always uninstall CloudLinux. In this case, we will ‘convert’ the system back to CentOS. Even if the original system was RHEL — we will still convert to ‘CentOS’ state. To uninstall CloudLinux follow below steps: wget -O cldeploy http://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy sh cldeploy -c Please, note that some of the packages from CloudLinux repo will still be …

Installation, Uncategorized

How to install ioping in linux server

How to install ioping in linux server This tool lets you monitor I/O latency in real time. It shows disk latency in the same way as ping shows network latency. Login to SSH. Go to the folder where you want to download it. cd /usr/local/src Download the installation file. https://ioping.googlecode.com/files/ioping-0.6.tar.gz Extract that file using below …

DirectAdmin

How to recover directadmin server from crash drive.

How to recover direct admin server from crash drive. First of all mount the crash disk. In my case I am mounting it in /mnt Now, you have to copy the data from old disk to new disk using below commands cp -avprf /mnt/etc/passwd /etc/ cp -avprf /mnt/etc/group /etc/ cp -avprf /mnt/etc/shadow /etc/ cp -avprf /mnt/etc/gshadow /etc/ …

Tweaks, Uncategorized

How to tweak linux server harddisk using hdparm

Tune your hard disk for high performance Using hdparm First of all you have to install hdparm in linux. apt-get install hdparm #hdparm /dev/sda /dev/sda: readonly = 0 (off) readahead = 120 (on) geometry = 8850/255/63, sectors = 142182912, start = 0   Hard disk Performance Information # hdparm -tT /dev/hda /dev/hdd: Timing cached reads: …

Uncategorized

DDOS attack check

DDOS attack Whenever the load in the server increases due to a particular user in the server. Check the following: You can check the user in top. Find the domain owned by the user: grep username /etc/userdomains use the following command after you get the domain name: less /usr/local/apache/domlogs/domain.com | awk ‘{print $1}’ | sort …

Uncategorized

vi and vim cheat sheet for Linux

vi and vim cheat sheet for Linux   Cursor movement h – move left j – move down k – move up l – move right w – jump by start of words (punctuation considered words) W – jump by words (spaces separate words) e – jump to end of words (punctuation considered words) E …