Tuesday, September 20, 2011

Virtualbox an Esxi5.0 Abstraction layer

So last night I installed Esxi5.0 "freeware" in virtualbox. Its pretty straight forward, and I mean just install from iso but there are a few "non-issues". Esxi5.0 has to be installed on something that is at minimum a dual core, and you have to devote both CPU's to virtualbox. If installed on an AMD Phenom its crying about not having the virtualization bit enabled on my cpu. Boo hoo. ;)

Saturday, September 17, 2011

Centos5: Pear + memcache

Go ahead and install pear from the instructions here:

http://pear.php.net/manual/en/installation.getting.php

Its as simple as wget'ing the file of interest and then using it. After the "brief" installer, and I mean brief.

#> pecl install memcache

Note: I had to use kind of a PHP hack to get this working. ITs listed here: http://blog.mostlychris.com/2009/07/fatal-error-allowed-memory-size-of-8388608-bytes-exhausted-pear/ .

It resolves a issue with a script running out of memory before the install completes.

Last but not least since this is a a Centos5 system you'll need to do the following:

echo "extension=memcache.so" > /etc/php.d/memcached.ini

Tuesday, September 13, 2011

Creating a RPM for Memcached is stupidly simple

Here we go!

Post is here: http://code.google.com/p/memcached/wiki/NewInstallFromSource

The short and sweet of it is:

echo "%_topdir /home/melinko2003/rpmbuild" >> ~/.rpmmacros
mkdir -p /home/melinko2003/rpmbuild/{SPECS,BUILD,SRPMS,RPMS,SOURCES}
wget http://memcached.org/latest
rpmbuild -ta memcached-1.x.x.tar.gz