Author: rosalindaperkins

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 …

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 …

Apache, CPanel / WHM, Installation

How to: Install mod_pagespeed in cpanel

How to: Install mod_pagespeed in cpanel Login to the server via SSH Go to below folder cd /usr/local/src create directory mkdir mod_pagespeed Download pagespeed rpm wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_i386.rpm Extract the rpm rpm2cpio mod-pagespeed-beta_current_i386.rpm | cpio -idmv Copy the modules to apache modules folder cp /usr/local/src/mod-pagespeed/usr/lib/httpd/modules/mod_pagespeed.so /usr/local/apache/modules/ cp /usr/local/src/mod-pagespeed/etc/httpd/conf.d/pagespeed.conf /usr/local/apache/conf/ Provide execute permission chmod 755 /usr/local/apache/modules/mod_pagespeed.so Create …

CPanel / WHM

Unknown License File Version in cpanel : Failed to get a new license, or part of the update process failed

Sometime while accessing WHM, some links are giving below error. =============================================== Unknown License File Version (has = 23, needed = 22, length=1554). This means that the system failed to get a new license, or part of the update process failed. If you are the server admin, ===============================================   To resolve this issue follow the below …