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 »

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 mount second hard drive in CentOS 5.x

August 14th, 2009 1 Comment   Posted in Centos, System Administration

I was trying to mount second drive in my server which was connected via usb, so I thought to post it here as well

Run
# fsdisk -l
to see the list of drives in server..
second drive will most probably will be sdb
1) Make its partition

# fdisk /dev/sdb
press n
press p
press w

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 »

How to enable Passive ftp in Pure FTPD

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

For users that are behind a firewall it might be required that you enable passive ftp in your ftp server and client.

While enabling passive ftp in your ftp client is simple, doing so in your ftp server configuration files might be a bit tricky if you don’t know what you are doing.

This tutorial will cover Pure-FTPd, the ftp server used on most cPanel powered servers.

More »

Exim configuration and messages in mail queue – cPanel server

March 21st, 2009 No Comments   Posted in System Administration

If  you have cpanel then you can check email queue in cpanel by login to cpanel and then “Email” and then “Manage Mail Queue.

In command line, you can run following command to check queue

# exim -bpc

More »