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 ...

Installation

rpm command cheat sheet for Linux

rpm command cheat sheet for Linux rpm is a powerful Package Manager for Red Hat, Suse and Fedora Linux. It can be used to build, install, query, verify, update, and remove/erase individual software packages. A Package consists of an archive of files, and package information, including name, version, and description: Syntax Description Example(s) rpm -ivh ...

PHP

How to install magickwand in linux

How to install magickwand in linux First go to the path where you want to download the tar file. cd /usr/local/src/ Use the below link to download the magickwand tar file. wget http://www.magickwand.org/download/php/MagickWandForPHP-1.0.9.tar.gz Extract the file using the below command.  tar -zxvf MagickWandForPHP-1.0.9.tar.gz Go inside the extracted folder. cd MagickWandForPHP-1.0.9 Run the below commands to ...

Control Panel, SolusVM

install vztop command

How to install vztop command in centos Take vzprocps tools from http://download.openvz.org/contrib/utils/ . These are usual ps and top utilities (named vztop and vzps to not conflict with the standard ones) with an -E option added. You can use -E CTID option to limit the output to the selected CTID (use 0 for the host ...