How to secure SSH in your server ?

1) Set a very strong password, keep it in your mind but dont write in somewhere.

2) Disable direct root login

emacs /etc/ssh/sshd_config

Search for
More »

why sites suddenly stopped working in dedicated/virtual private servers

VeriSign has made some changes recently which are applied since March 1, 2010.  You can read detail by clicking here

How do I fix it?

You need to log in to your control panel and modify the affected domain name’s zone file, using the table below as an example. More »

Easy way to optimize apache,php & MySQL

There are 2 important scripts to optimize apache,php and mysql very easily. They are

MySQLTuner (Perl) and MySQL Performance Tuning Primer (shell)

They can help diagnose MySQL database performance issues, and provide recommendations on how to solve them.
More »

How to move MySQL to second drive

January 6th, 2010 No Comments   Posted in MySQL, Web hosting

If you ran out of space in your primary drive and wish to move MySQL to another drive then here is a simple procedure. Moving MySQL to another drive is very easy then it look.

1) Find out mount point of secondary drive.  If drive is not mounted yet then you can get help from article “How to mount drive in CentOS”

You can run below command to find mount point of secondary drive
More »

Domain has exceeded the max emails per hour (200) allowed. Message discarded.

December 20th, 2009 No Comments   Posted in System Administration, Web hosting, cpanel

Some times you get error from cpanel

Domain example.com has exceeded the max emails per hour (200) allowed. Message discarded.

Simple solution for it is

echo domain.com=10000 >> /var/cpanel/maxemails

More »

Using both php4 and php5 at the same time in Directadmin

If you wish to use both php4 and php5 at the same time, custombuild will allow you to do this.
Note that you must have the 2 copies of php running as different types, one as CLI and one as CGI (suPhp). You cannot have both running as CLI, and similarly you cannot have both running as CGI.

First, make sure you’re running custombuild.
This is the guide to install it if you don’t have it:

http://files.directadmin.com/services/custombuild/1.1

To setup both php4 and php5, you’ll be editing the options.conf, eg:

More »

Installing ImageMagick in Cpanel

You can install by running one command only

#/scripts/installimagemagick

You can check whether imagemagick is installed or not using

#/scripts/checkimagemagick

If this installation does not work, then you can uninstall it and install it manually

More »


How to create tar archive

August 11th, 2009 1 Comment   Posted in System Administration, Web hosting

Since I started working with cPanel server I always needed to create archives from directories.
For example backing up a user’s home directory.

How can you do this? It’s not difficult at all. For exemple to backup a user home directory you would have to run:

tar -pczf rchive.tar.gz /home/USERNAME

More »


Customize your default apache page in cpanel

August 11th, 2009 3 Comments   Posted in System Administration, Web hosting, cpanel

You just have to login to your server via ssh.
Navigate to /usr/local/apache/htdocs

# cd /usr/local/apache/htdocs

And finaly edit the file index.html
More »

How to add new RBLs to cpanel Exim

More then a year ago, cPanel added a future to the Exim Configuration Editor for everyone to easily select from two RBLs (spamhaus.org and spamcop.net) that can be used to filter most of the SPAM that a server receives. While this has been great for most of us (enabling a RBL is a simple as selecting a check box in WHM and pressing the Save button), there are a few admins that would have liked to add additional RBLs to the list that Exim uses to filter SPAM emails. RBLs like dnsbl.njabl.org, list.dsbl.org, dul.dnsbl.sorbs.net, etc. are all considered useful by many, but not included by default.

The question is how can such a RBL be added to Exim ?
Well it’s not that hard !
First you will have to login to your server using ssh.
After a successful login:

  1. Change directory to /usr/local/cpanel/etc/exim/acls/ACL_RBL_BLOCK
    More »