Category: Uncategorized

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

Uncategorized

Change Theme Without Login To WordPress Admin Area

Change Theme Without Login To WordPress Admin Area Check the database name from wp-config.php file. Backup the database using the following command from shell. Cpanel  mysqldump database_name > database_name.sql Plesk mysqldump –opt -uadmin -p`cat /etc/psa/.psa.shadow` database_name > database_name.sql Now, login to phpmyadmin and select the database_name. In the database click on table wp_options . In ...

CPanel / WHM, Installation, Uncategorized

How To: Find Symlink under UNIX / Linux

How To: Find Symlink under UNIX / Linux Now, a days sym/root hacking is famous and hacker can create a sym/root folder by using script. How do I find symlink(s) under UNIX and Linux operating systems? Use the below command to find symlink directory find /path/to/dir -lname /path/to/file OR If you want to search sym/root ...

CPanel / WHM, Uncategorized

Log folder contents deleted getting error mails

Log folder contents deleted getting cron mails and getting below error. Cannot open /var/log/sa/sa03: No such file or directory   Login to server via SSH Go inside /var/log/ folder cd /var/log/ Check for sa folder, if it is not present then create it manually using below command. Files will be generated automatically inside that folder mkdir ...

Cloud Linux, Control Panel, Installation, MySql, Uncategorized

MySQL Governor installation in without control panel server

MySQL Governor installation in without control panel server   Run the below command to install MySQL Governor in plain server or without control panel server. yum install db-governor --enablerepo=cloudlinux-updates-testing yum update mysql-server mysql-devel mysql --enablerepo=cloudlinux-updates-testing Add the below line in my.cnf with root password  [dbgovernor]   Run the below command to start. service db_governor restart

CPanel / WHM, Uncategorized

Exim causing load on server

Exim causing load on server   Login to server via SSH. Once login then login to mysql [email protected] [~]# mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1851 Server version: 5.1.65-cll MySQL Community Server (GPL) Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. ...

CPanel / WHM, Uncategorized

How to create account using SSH in cpanel

How to create account using SSH in cpanel   Login to server via SSH. Use cpanel create account script. Syntax: /scripts/createacct domainname.com username password Example: /scripts/createacct elinux.co.in elinuxco q1w2e3r4 It will prompt for ok? Press y The above information is enough to create a temporary cpanel account. It will show the below output. +===================================+ | ...

CPanel / WHM, Installation, Uncategorized, WHM Plugins

Google Apps plugin for cpanel

How to install google apps plugin for cpanel. Go to the below path where you want to download the tar file. cd /usr/local/src/ Download the tar file. [email protected] [/usr/local/src]# wget http://google-apps-wizard-cpanel-plugin.googlecode.com/files/gaw-2.0.tar --2012-09-24 15:59:34-- http://google-apps-wizard-cpanel-plugin.googlecode.com/files/gaw-2.0.tar Resolving google-apps-wizard-cpanel-plugin.googlecode.com... 74.125.31.82, 2404:6800:4008:c00::52 Connecting to google-apps-wizard-cpanel-plugin.googlecode.com|74.125.31.82|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 184320 (180K) [application/octet-stream] Saving to: `gaw-2.0.tar' ...