※ 本文轉錄自 [Daily] 看板
作者: DarkKiller (悸動) 看板: Daily
標題: [文件] 加快你的 php 速度 - turck-mmcache
時間: Wed Jun 16 01:54:27 2004
* Author & License
[email protected] (DarkKiller)
The license of this document is:
GNU Free Documentation License
Version 1.2, November 2002
http://www.gnu.org/licenses/fdl.txt
* Changelog (改版記錄)
2004/06/16 第一版。
* 感謝
感謝 Izero 提供 turck-mmcache 的資訊。
感謝 http://phorum.study-area.org/ 提供機器測試。
* 安裝
cd /usr/ports/www/turck-mmcache/
make clean install clean
* 設定
先看看有沒有 /usr/local/etc/php.ini,如果沒有,請把同一個目錄下的
php.ini-dist 複製一份為 php.ini,然後再最後面加上:
[mmcache]
zend_extension="/usr/local/lib/php/20040412/mmcache.so"
mmcache.shm_size="0"
mmcache.cache_dir="/tmp"
mmcache.enable="1"
mmcache.optimizer="1"
mmcache.check_mtime="1"
mmcache.debug="0"
mmcache.filter=""
mmcache.shm_max="0"
mmcache.shm_ttl="0"
mmcache.shm_prune_period="0"
mmcache.shm_only="1"
mmcache.compress="1"
mmcache.keys="shm_only"
mmcache.sessions="shm_only"
mmcache.content="shm_only"
* 測試
重跑你的 apache,然後感覺看看 php 的速度。
--
Resistance is futile.
<[email protected]>
--
※ Origin: 邪惡小鹿鹿 <Deer.twbbs.org> ◆ From: deer.math.nctu.edu.tw