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
# yum install php-pecl-memcache

Thinking back, I believe I needed libevent, libevent-devel, zlib and zlib-devel to get the PECL install to work too.
# yum install libevent libevent-devel zlib zlib-devel
I saw the errors initially when version checking PHP.. after restarting apache the following command seems happy…
# php -v
and there are a couple of config files you can play with here…
/etc/sysconfig/memcached
/etc/php.d/memcache.ini
Happy speed hunting!

Search the web and do something for my favouritest local charity.

Life Tribe Kidz Klub Coventry!

Powered by Everyclick

Thanks!

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 the options in fstab. Mine looked like this before and after…
before
/dev/md0 / ext3 defaults 1 1

after
/dev/md0 / ext3 defaults,usrquota 1 1

Then run these to get quotas working…
# mount -o remount /
# quotaoff -av
# quotacheck -avum
# quotaon -av

..and that should be you good to go.

These are some notes on the path I’m walking from Windows to Linux.

I’m trying to replace my development environment which to date has mostly been in Dreamweaver. Eclipse is a strong contender for usurping it.. even though I have Dreamweaver 8 working on Fedora using Wine. You can mostly blame this on CakePHP and the desire to see code completion relevant to the object orientated approach of development I now follow.

Some useful links:

http://download.eclipse.org/dsdp/tm/updates/

http://bakery.cakephp.org/articles/view/setting-up-eclipse-to-work-with-cake

http://alexle.net/archives/138

http://www.howtoforge.com/apache_subversion_repository_p2

http://subclipse.tigris.org/install.html

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), but very useful in any event for remote webservers.

Add the following entries to your sysctl.conf…

# vi /etc/sysctl.conf

kernel.panic_on_oops = 1
kernel.panic = 300

Then run these commands as root to enable these changes without needing to reboot:
# sysctl -w kernel.panic_on_oops=1
# sysctl -w kernel.panic=300

Next Page »