Last night, i got an email from one of my client’s CPanel server that tailwatched is failed and is not running.

Email contained :

tailwatchd failed @ Fri Dec 23 00:30:10 2011.A restart was attempted automagically
Service Check Method: [check command] tailwatchd is not running

To see what services handle by tailwatched

/usr/local/cpanel/libexec/tailwatchd --status

[Keep Reading…]

{ 0 comments }

In this tutorial i will tell you how to configure Lighttpd and Apache on same port 80 on same server. In our case, we have CentOS 6 on our server but you can follow this for any Linux flavor e.g Ubuntu/BackTrack Linux etc.

Requirements :

  • Two Internet Public IPs ( Configured on eth0 and eth0:0)
  • Lighttpd
  • Apache

[Keep Reading…]

{ 0 comments }

APF Advance Policy firewall that provides you an easy way to configure iptables rules. This is a short snippet how can you install/configure or uninstall APF on your Linux Server.

wget http://www.rfxn.com/downloads/apf-current.tar.gz
tar -zxvf apf-current.tar.gz
cd apf-9.7-2
./install.sh

APF installation is completed.

How to allow specific incoming ports in APF ? e.g 80,21
vim /etc/apf/conf.apf

[Keep Reading…]

{ 0 comments }

If you are setting up NFS and stuck with this error, portmap is conflicting with other service.

If you run this
/etc/init.d/portmap restart

It will throw this error,
pmap_getmaps rpc problem: RPC: Unable to receive; errno = Connection reset by peer
Stopping portmap: [FAILED]
Starting portmap: [ OK ]

[Keep Reading…]

{ 0 comments }

Mod_geoip is an Apache module use for determination of City/Country/ISP of a visitor. In CentOS 6 mod_geoip is not available in the default set repository so you will need to download it manually.

wget http://download.fedora.redhat.com/pub/epel/6/x86_64/mod_geoip-1.2.5-5.el6.x86_64.rpm
rpm -ivh mod_geoip-1.2.5-5.el6.x86_64.rpm
/etc/init.d/httpd restart

Completed. You should see  mod_geoip.conf under /etc/httpd/conf.d/

ls /etc/httpd/conf.d/mod_geoip.conf

{ 0 comments }

Our last post can be found here, where we described why did we chose DRBD along with heartbeat, lighttpd and NFS. It is recommended to read that first to have idea why we are setting up this.

In this article i will explain how to configure it step by step. This is copy, paste HowTo you will need to replace the IPs and other information according to your requirements.

Example scenario :

node1.hackersgarage.com - 192.168.0.61
node2.hackersgarage.com - 192.168.0.62

LAN Virtual IP for NFS Service
Virtual IP for LAN - 192.168.0.63

Internet Virtual IP for Lighttpd Service
static.hackersgarage.com - 75.127.109.111

[Keep Reading…]

{ 0 comments }