Archive for 'LAMP'

Fetching mail with fetchmail

Fetching mail with fetchmail

During a domain transfer, while DNS was still propogating I needed to retrieve mail from the old server to the new. I did so thusly… # yum install fetchmail $ touch .fetchmailrc $ chmod 600 .fetchmailc I then added the following lines to .fetchmailrc poll <remote_ip> with proto POP3 user <remoteemail@example.com> there with password “<password>” [...]

KeePassX on CentOS

KeePassX on CentOS

I’ve been playing with CentOS 5 lately, and really needed KeePassX on it. I ran into a few problems… No rpms for Centos means you have to try and build from source. You also need qt-devel on the machine but it has to be version 4.3 or greater to compile. So I had to enable [...]

memcached on CentOS

memcached on CentOS

When installing memcached on my CentOS 5.2 box using the rpmforge repo, I found apache/php complaining of API version problems. To get round it I first used PECL to install memcached, then used yum to set memcached to work nicely with the Redhat style environment. # pecl install memcache # yum –enablerepo=rmpforge install memcached # [...]

Plesk Hard disk quotas

Plesk Hard disk quotas

I had to enable quota support to my hard disk mounts on one of my new Plesk boxes today. This lets Plesk manage how much space is given to whomever… very necessary for a virtual hosting box. I found these instructions on the Plesk forum, but not all in one place, hence… Add ‘usrquota’ to [...]

Don’t just oops, panic!

Don’t just oops, panic!

In the event that Linux has a rare turn and decides to crash on you, you might want the machine to reboot if at all possible. The following will give you that ability. It should probably be paired with dumping any crash info out to a network server (hence the long pause – 300 secs), [...]