Archive for December 25th, 2011

Changing the default nameservers for new accounts.

1) You add/change your private nameserver for your dedicated server but when you create account through whm it not shows your default nameserver. You have to add your private nameserver in wwwacct.conf # vi /etc/wwwacct.conf Add or edit following lines as per your requirement. ns = ns1.domain.com ns2 = ns2.domain.com save the file. Now when […]

Secure the /tmp Directory

The following is how to secure your /tmp directory on your Dedicated Server using a cPanel Script. You MUST have cPanel installed for this to work. 1. Login to your server as root via SSH. 2. Type: /scripts/securetmp That’s it your done. cPanel wrote that script to allow users to secure their /TMP Directory very […]

Configuring the Timezone on your Dedicated Server

The timezone is set by the file /etc/localtime. In order to set this up corectly on your Dedicated Server you will need to first remove /etc/localtime and then create a symlink to the correct zonefile in /usr/share/zoneinfo. You will then want to run ntpdate to sync up properly. cd /etc rm -rf localtime ln -s […]

Email notification of Root Login

Keeping track of who logs into your Dedicated Server and when is very important, especially when you’re dealing with the super user account. We recommend that you use an email address not hosted on the server your sending the alert from. So lets get started! 1. Login to your server and su to root. 2. […]

Create an SSH banner.

Adding a banner to your Dedicated Server is extremely easy to do. It is comprised of 2 steps. 1.) Edit your sshd_config file located at /etc/ssh/sshd_config and add the folowing line: Banner /etc/banner 2.) Now you need to create this file. Using your favorite editor, just create the new file and put whatever you would […]

How to install LAMP (Apache, MySQL and PHP in Linux) using Yum

There are many ways to install Lamp in Linux server but following is the easiest way to install using yum First Go in http://www.centos.org/ and download latest copy of centos Once you installed CentOS on server from shell type following commands yum install httpd Above command will install apache server then install php using following […]

how to install geoIP

You just need to fire following command on cpanel server to install geoIP. pecl install GeoIP While installation you may get the following error. checking for re2c version… invalid configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. checking for gawk… gawk checking for geoip support… yes, shared […]