LAMP


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!

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.

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

I’m more seriously investigating the feasability of moving my main desktop environment to Linux.
I’ve just found a package of fonts vital for the web that has brought me one step closer.

It contains Verdana, Tahoma, Times New Roman, Arial, Trebuchet, Comic Sans, Impact and others

http://avi.alkalay.net/software/webcore-fonts/

Reference:
http://www.linux.com/base/ldp/howto/Font-HOWTO/fonts.html

Hi,
This is just a heads up. Sitepoint are launching a new CSS reference that sounds very promising. They’ve hinted in the latest newsletter that you’ll need a Sitepoint forums account for access to it.. and I’m guessing they might be charging people who don’t have one created before Dec 1st for access.

Their technical writing has been excellent to date, so I think it’d be worth your while signing up for an account.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
“So, when’s this fancy reference launching, anyway?” you ask. That I can’t tell you just yet. But I can tell you that you’d better make sure you have a SitePoint Forums account by December 1st, or you’ll be disappointed!
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Create an account here…
http://www.sitepoint.com/forums/register.php

Hope it turns out nice!

Next Page »