Archive for December, 2007 Page 2 of 4



Butterfly On A Wheel 2007 WS LiMiTED DVDRip XviD iSLAND

Butterfly On A Wheel WS DVDRip XviD

If you liked this post, please subscribe to my feed. Thanks for visiting!

Speed up PHP with XCache on Gentoo Linux

XCache is a PHP opcode cacher created by the same developer who brought us Lighttpd. An opcode cacher significantly increases PHP’s performance by caching the compiled state of PHP code to avoid time-consuming recompilation each time a script is executed. There are a handful of great opcode cachers on the market currently, incuding APC and eAccelerator (here’s a more comprehensive list). APC is written by some of the developers of PHP and will be bundled with PHP6. eAccelerator has a long history and might be the most popular and widely supported opcode cacher. I chose XCache due to its reputation for superior performance (source) and its ability to take advantage of multi-core processors.

Setting up XCache on Gentoo Linux is dead simple.

Install XCache

emerge -va dev-php5/xcache

Configure XCache

nano /etc/php/cgi-php5/ext-active/xcache.ini

Edit anything you see fit. See this page for details.
Since Slicehost is running on twin dual-core processors, I changed “xcache.count” to 5 (n+1 where n is the number of processors) to take advantage of the Splitted Cache feature.

Restart PHP
I have PHP running as a FastCGI daemon, so I restart with

/etc/init.d/fcgi.php restart

Check phpinfo() to verify that XCache is loaded. You should see the following in the “Powered by Zend” box:

with XCache v1.2.1, Copyright (c) 2005-2007, by mOo

[Conclave-Mendoi] Mobile Suit Gundam 00 - 10

Mobile Suit Gundam 00 - 10

Resident Evil Extinction 2007 DVDRip XviD FLAiTE

Resident Evil Extinction DVDRip XviD

Battlestar Galactica Razor 2007 UNRATED EXTENDED DVDRip XviD WAT

Battlestar Galactica Razor Unrated Extended DVDRip XviD

Stardust DVDRip XviD DiAMOND

Stardust DVDRip XviD

Convert your Linux filesystem safely and easily (even on a VPS)

I was shocked to discover that converting one’s filesystem is simple as pie and totally safe. The process goes like this:

  1. Remove cruft from your system (optional)
  2. Reboot into a LiveCD environment (optional if the partition you want to convert can be mounted read-only without rebooting)
  3. Mount the partition you want to convert in read-only mode
  4. Copy the contents of the partition somewhere temporarily (ex. another partition, external drive, DVD, etc.)
  5. Unmount the copied partition
  6. Format the partition with your desired filesystem
  7. Mount the formatted partition and copy all the files back
  8. Edit /etc/fstab to reflect the new filesystem
  9. Reboot and profit

Thanks to Slicehost’s wonderful Rescue Mode with a 2GB Rescue Slice, I was able to use this method to convert my Gentoo VPS from ext3 to XFS. Here’s a step-by-step account. These steps were performed on a 256MB VPS at Slicehost. YMMV.
Continue reading ‘Convert your Linux filesystem safely and easily (even on a VPS)’