Automatically Purge MySQL Master Log

September 9th, 2010

My Friend Andre Hartawan is troubling due to his mysql server at work stop operating. After quick check he found that no more disk space available on the system. Further check on /var partition he found many replication log file on disk which no longer needed but have big size (100MB). He can easily purge the logs file but wanted the server due it chores automatically. So here it’s I share my script (autopurgebinlog.sh) to purge replication logbin automatically.
Read the rest of this entry »

SocialTwist Tell-a-Friend

Check the first time you install Linux OS

May 26th, 2010

If you forgot when you deploying (installing) a server (or Desktop) with Linux OS (esp. RedHat and its derivatives) you can check date of first file created after successful installation. You need root privileges to check the file.
Read the rest of this entry »

SocialTwist Tell-a-Friend

[cPanel] Add permanent whitelist IP Address using CSF/LFD

May 26th, 2010

You can whitelist IP Address quickly using ConfigServer Firewall/Login Failure Daemon (CSF/LFD) by using the Quick Allow or editing Firewall Allow IPs but the number of IP Addresses kept by CSF/LFD is limited (by default is 100 or other numbers you specified in Firewall Configuration) as a large number of IP addresses create a large number of iptables rules (4 times the number of IP’s) which can cause problems on some systems where either the the number of iptables entries has been limited (esp VPS’s) or where resources are limited. This can result in slow network performance, or, in the case of iptables entry limits, can prevent your server from booting as not all the required iptables chain settings will be correctly configured.

CSF/LFD will removes oldest entries and replaced with new one. So how to make CSF/LFD make permanent whitelist IP Address? Here’s how:
Read the rest of this entry »

SocialTwist Tell-a-Friend

Install SSH (SFTP) server on Windows 2000

April 19th, 2010

Below is step-by-step installation SSH (and SFTP) server on Windows NT Based (Windows 2000 Server). It’s easy to follow and I bet you can do it by your self. Read the rest of this entry »

SocialTwist Tell-a-Friend

[cPanel] Exim Maximum Attachment Size

March 4th, 2010

By default Exim maximum message size is 50MB, you can confirm it by typing

# exim -bP | grep message_size_limit
 message_size_limit = 50M

You can change maximum message size by adding line

message_size_limit = 5M

Read the rest of this entry »

SocialTwist Tell-a-Friend