Mar
27
2011

xcache install

18:06 pm

apc(Alternative PHP-cache)がどうもUbuntu Serverに入れているPHPと相性が悪く、500エラーが出るので、代わりに xcache を入れてみた。

$ sudo aptitude remove php-apc
$ sudo aptitude install php5-xcache
$ sudo nano /etc/php5/conf.d/xcache.ini でcache を 16M→64Mに変更。

google で php apc ubuntu 500 として検索をかければ、以下がヒットしました。
Zend optimizer と相性が悪いようです。

Alternative PHP Cache (APC) Not Compatible With Zend Optimizer

This problem happen in my VPS after i install Alternative PHP cache (APC). And also i already have Zend optimizer installed on the same VPS. After i installed APC, my WordPress blog show strange behavior. Sometimes i got Error 500 Internal Server Error, and sometimes i got PHP fatal error.
As i try to find the solution on Google, there are lot of others complaining the same thing. You may need to read the details on faqs.org as it clearly state that APC doesn’t work with Zend Optimizer.
So the solution i have to choose one of them. And i choose APC since it need by W3 Total Cache for my WordPress blog. Since i have WHM root access, i turn off Zend Optimizer from EasyApache (Apache Update), and recompile everything to make sure Zend Optimizer removed. Now my blogs working normally again.

Written by hbirds in: Ubuntu Server 10.04 | Tags: , , , ,

No Comments »

RSS feed for comments on this post. TrackBack URL

Leave a comment

You must be logged in to post a comment.

www.hbirds.net