How to check and stop if DDoS attack is going on.

Distributed denial-of-service attacks
In a distributed attack, the attacking computers are often personal computers
with broadband connections to the Internet that have been compromised by viruses
or Trojan horse programs. These allow the perpetrator to remotely control machines
to direct the attack, and such an array of computers is called a botnet. With
enough such slave or zombie hosts, the services of even the largest and most well-connected
websites can be disrupted.

More >

How to mount and unmount a drive in linux

How To Mount A Drive In Linux

This simple step by step guide will show you how to mount a new hard drive or partitions onto your Linux server

More >

Downgrading MySQL5 to MySQL4.1 in cPanel

For whatever reason , some people still want to run the old version of MySQL4.1 in there new cPanel servers, which seems a little issue , as the default database version in new cPanel server installs is MySQL5.

Here are the simple steps to downgrade the database (this should only be done on a new server without any account on it yet)

More >

MD5 password generator

MD5 password generator

$pw is:
";
echo "
" . strtoupper(md5($pw)) . "";
}
?>

 

Enter a password to encrypt:

More >

Linux sub directory size info

Need to know the exact size of your subdirectories in Linux?

Just go to the directory , like cd / and try this

du -cksh *

 

More >

Easyapache failing on CentOS server

Had an issue with one on our CentOS cPanel servers running 64 bit and cPanels easyapache upgrade. The folks at cPanel helped out with their usual professional response

More >

How to find MAC address in CentOS

Open SSH and type the following and press Enter:

/sbin/ifconfig | grep -i hwaddr

The sequence of hexadecimal digits that appears to the right of eth0 HWAddr (e.g. 08:00:27:ED:DA:8b) is
your network card’s MAC Address

cPanel – Manually back up and transfer an account via SSH

Sometime accounts are to big to transfer via the WHM transfer feature.

Below you can find some steps to do so manually

Log into your server and create a cPanel backup for the account

/scripts/pkgacct <username> <location> backup

<username> refers to the username you want to backup.

<location> is the path to where the backup will be placed (in your case you want to put /backup/cpbackup here).

So backup tells pkgacct that you want to create a backup file.

If you leave this off it creates a cpmove archive. Not sure what the difference is between a cpmove and a backup file, but this tells pkgacct you just want to create a <username>.tar.gz file in <location>.

And after the backup has been completed you can simple move it by pushing it via SCP

here is the tutorial  http://www3.wiredgorilla.com/content/view/322/1/

Problems with CenotOS5 – cPanel and BIND

If you have issues with cPanel running CentOS5 with BIND then the easiest way is to downgrade BIND to 9.2.4

The reason you’re having trouble is because CentOS 5 uses bind-9.3 and CentOS 4 uses bind-9.2 – The changes between these versions is significant enough that cPanel won’t work with it properly.

For instance by default there is no /etc/named.conf file created when bind-9.3 is installed and the default named.conf file for bind-9.3 is significantly different than in older versions.

Until the code is updated to work with bind-9.3, I have found the workaround to be to remove bind-9.3 packages and install bind-9.2 packages as follows:
 

More >

kernel yum upgrade

check what kernel you are running at the moment

uname -a


and t
o upgrade your kernel

yum update \kernel*

check if your kernel is added to grub

cat /boot/grub/grub.conf

and then reboot


shutdown -rf now

Installing SSH public key for extra security on your Linux server

Log into SSH

mkdir $HOME/.ssh
chmod -R og= $HOME/.ssh
cd .ssh
nano authorized_keys2

Add your key you created with PuttyGen , make absolutly sure you r key is in one line ONLY , otherwise it wont work!

Adjust your  sshd_config

nano /etc/ssh/sshd_config

to


RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile      .ssh/authorized_keys2

More >

Installing and configuring Windows CDP Agents

R1Soft CDP is a easy to install and use continous data protection system, primarily targeted at the hosting market. It backups up multiple servers to a central backup server; multiple backup windows can be performed per day, and files or even the whole disk can be restored from the image. This tutorial will show you how to install the Windows Agent on a server which you want to be backed up, and how to configure it.

More >

Recover broken systems with SystemRescueCD

SystemRescueCD is a powerful, expansive live cd which is useful for recovering broken systems. This tutorial will guide you through how to get it up and running and how to perform some basic recovery procedures.

 

More >

Installing and configuring Linux CDP Agents

R1Soft CDP is a easy to install and use continous data protection
system, primarily targeted at the hosting market. It backups up
multiple servers to a central backup server; multiple backup windows
can be performed per day, and files or even the whole disk can be
restored from the image. This tutorial will show you how to install the Linux Agent on a server which you want to be backed up, and how to
configure it.

More >

Preparing server for bare metal restore using R1Soft Live Rescue CD

Follow these steps to prepare a Linux or Windows server backup system,

prodced by R1Soft,   for a bare metal restore.

1. Put the R1Soft Live Rescue CD into the machine you are going to restore
to, and boot.

Press enter at the splash screen.

2. Once you are logged in, type

netconfig

More >

Installing Cacti

Server monitoring is one of the most important aspects of managing a network. Cacti is a free PHP/MySQL script which can monitor everything from process counts to bandwidth, and is fairly easy to setup and use. If you have multiple clients you can even delegate specific access levels so that they can only view the graphs relevant to them.

This tutorial will guide you through setting up and configuring Cacti on a Linux server. 

More >

Installing Webmin

While the big control panel suites you can install, like cPanel or Plesk, are excellent for large scale deployments or easy system administration, sometimes you just want an interface to quickly carry out complex tasks, which doesn’t require a package as large as cPanel/Plesk.

Webmin, a free and powerful control panel, it easy to install and allows you to carry out administrative tasks in an easy to use browser based frontend. This tutorial will guide you through installing Webmin.

More >

How to install SSL on a Linux server

This little tutorial is describing how to install a secure server certificate ( SSL ) on your Linux server using shell comands Here’s what to do

First the site needs a dedicated IP and if does not have one you must assign one.

Your certs are located in /usr/share/ssl/certs

You need to copy your .crt and your cabundle there.

More >

cPanel Name Server Setup

It seems no matter which flavor of linux / unix you are running and which control panel software that setting up custom name servers is always a problem. This How-To will be for installing name servers on a Linux CPanel server. Custom Name Servers are great because you can provide your webhosting customers with ns1.yourcompany.com instead of your server / upllink providers name servers. You will also know how to install Custom name servers for your reseller accounts.
More >