Apr
16
2011
0

XCache Administration Page

11:00 am

先日、APC の代わりに Xcache をインストールしましたが、専用の管理ツールがあるというので、インストールしてみました。
Xcache Administration Page というもので、右のような管理画面が表示されます。

1./var/www(ドキュメントルート) に pwdgen.php を作成
$ sudo touch pwdgen.php
$ sudo nano pwdgen.php で以下を記入し、保存・終了

<?php
echo md5("password");
?>

ブラウザで http://サーバーIP/pwdgen.php にアクセスして表示されたコードをコピーします。以下のような文字列が表示されます。
7a905db05afef9f7a0ed1369b0d9b5c0
passwordは、任意のものに変えます。

2./etc/php5/conf.d/xcache.ini を編集
$ sudo nano /etc/php5/conf.d/xcache.ini

[xcache.admin]
xcache.admin.enable_auth = On
; Configure this to use admin pages
xcache.admin.user = "mOo"
; xcache.admin.pass = md5($your_password)
xcache.admin.pass = "7a905db05afef9f7a0ed1369b0d9b5c0"

user名は、任意のものに変更します。

3./usr/share/xcache/admin を /var/www/xcache-admin にコピー
$ sudo cp -a /usr/share/xcache/admin /var/www/xcache-admin

4.ブラウザーからhttp://サーバーIP/xcache-admin でアクセス
user name と
password を入力すれば、admin画面が表示されます。

参考サイト
trac

Written by hbirds in: Ubuntu Server 10.04 | Tags: ,
Mar
27
2011
0

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: , , , ,

www.hbirds.net