Thursday, November 15, 2007

Getting LAMP first

I have done this couple of times already so just followed the standard drill in my earlier post here. The only new finding is that I got couldn't find package php5-xcache. The could be due to LTS 6.06 Dapper Drake perhaps not critical so I'll deal with that later. (PS: by a package search found that xcache is only available by default from Feisty onwards)


So I got LAMP and free -m gives me


used = 237
free = 18
buffers = 3
cached = 178
swap not used


It appears Xen consumed a lot comparing to OpenVZ.


I have LAMP running so I did a quick phpinfo() to see if everything I want is available, e.g. mod_rewrite and PHP PDO driver for mysql.


Oops! PDO isn't by default available to 6.06 so few more steps are required to get there.


First of all some depended modules


apt-get install php5-dev
apt-get install libmysqlclient15-dev
apt-get install php-pear
pecl install pdo
pecl install pdo_mysql


OK it wasn't that easy on the outdated 6.06, I got


Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 92160 bytes) in /usr/share/php/PEAR/PackageFile/v2/Validator.php in line 1825


There appears to be a workaround here in this post (and a similar one here) which I'll try later on.


I think I could either do either a PEAR or PECL install to get the PDO drivers I want.

No comments:

Post a Comment