roots

How to Run Remote Commands with SSH

The ssh program can  be used for monitoring remote hots. The system admin can also execute commands from his desktop which can be executed at remote servers. This is a cool facility of ssh. We can do much more on SSH. root@admin:~ # ssh root@www ‘df -h’ Filesystem Size Used Avail Use% Mounted on /dev/ubda 3.5G 2.1G [...]

How to Install Java Runtime Environment – Linux

You can download SUN’s latest Java JDKs at: http://java.sun.com/javase/downloads/index.jsp. For my 64-bit Debian system I selected the 64-bit JDK multiplatform binary for Linux: jdk-6u10-linux-x64.bin. I downloaded the binary file to /tmp and installed it as follows as root: # mkdir -p /usr/java # cd /usr/java # # chmod 700 /tmp/jdk-6u10-linux-x64.bin # /tmp/jdk-6u10-linux-x64.bin … creating: jdk1.6.0_10/ [...]

How To Grant/Deny Access to Particular Web Files Using Apache

When browsing web files and directory, most bots, without consideration to .htaccess restrictions, have the capability to crawl and sniff files and folders located under your web root folder, even if these files and folders were not visually displayed from your web pages. Take for an example, you displayed a file under http://domain.com/folder1/folder2/folder3/page.html Most bots [...]

How to create a boot CD with the specified kernel in Linux

The kernel in Fedora Core 2 and higher is too big to fit on a floppy disk, so you’ll have to create a boot CD instead. Here are the steps. 1. Each installed kernel has a dedicated subdirectory for its modules in the /lib/modules directory. Get a listing of this directory. Here there are two [...]

How to access your server via SSH

If you are unfamiliar with SSH this is ok. This is a simple explanation to get you to a command prompt on your new server or existing server. Simply download a program called “putty.exe” if you are using Windows. If you are using MAC you will need to jump in to the shell and follow [...]

How to increase PageRank In WordPress by Putting NoFollow Relationship

Blogroll in WordPress displays a list of blogger’s favorite blogs in the sidebar of their blog. Blogroll provides links to external blogs in easily managed way. Some webmasters also use Blogroll to display backlinks to other external sites for link exchange or link buying. In reality, links added by WordPress blogroll is actually useless textlinks [...]

How to configure single IP Addresses in IPtables

Opening up a whole interface to incoming packets may not be restrictive enough and you may want more control as to what to allow and what to reject. Lets suppose we have a small network of computers that use the 192.168.0.x private subnet. We can open up our firewall to incoming packets from a single [...]

How to Install and Configure iptables under CentOS

Working with iptables from the command line requires root privileges, so you will need to become root for most things we will be doing. Iptables should be installed by default on all CentOS 3.x, 4.x and 5.x installations. You can check to see if iptables is installed on your system by: $ rpm -q iptables [...]

Script to backup all mysql database and upload to FTP

In this howto I will show you a simple bash script that dump ALL mysql databases on your server compressed to GZIP and then make a nice tar.gz file with them and upload it to the FTP of your choice.

How to Allow or Deny countries with Apache htaccess

First you need to understand the meaning of these two rules in the htaccess file. If you set “deny” in the script for countries “US,CA” (USA and Canada), all traffic from USA or Canada will be blocked. On the other hand, if you set “allow” it will only accept traffic from these two countries, all [...]

How to Block IP address of any country with iptables

Sometime it is necessary to block incoming connection or traffic from specific remote host. iptables is administration tool for IPv4 packet filtering and NAT under Linux kernel. Following tip will help you to block attacker or spammers IP address.  The blocklist is create with an API I wrote and you can use wget to update [...]

How to Install Elgg – An open, flexible social networking engine

Elgg is an open, flexible social networking engine, designed to run at the heart of any socially-aware application. Building on Elgg is easy, and because the engine handles common web application and social functionality for you, you can concentrate on developing your idea. Elgg is open source. That means, when you use Elgg, you have [...]

Database Replication in MySQL – Step by Step Guide

Replication enables data from one MySQL database server (called the master) to be replicated to one or more MySQL database servers (slaves). Replication is asynchronous – your replication slaves do not need to be connected permanently to receive updates from the master, which means that updates can occur over long-distance connections and even temporary solutions [...]

How to configure Virtual Hosting using Apache 2 on Ubuntu

Virtual Hosting allow web servers to host more than one website on a sing machine. This is how sharing hosting works. I become pretty handy as well while develloping different web project on the same machine and allows you to access to your local repository using addresses such as http://dev.mysite.com instead of http://localhost/~myuser/myproject/ :) . [...]