用來加速 PHP 處理效能的快取模組很多,而福音堂網站使用的是 Alternative PHP Cache (APC)這一支模組,它在 CentOS 5 的安裝方式如下:
1. 先用 yum 安裝以下套件:
yum install php-pear php-devel httpd-devel
2. 使用 pecl 工具下載、編譯並安裝 APC 模組(因為包含編譯程序,所以會花點時間):
pecl install apc
3. 用 vi 之類的文字編輯器編輯 /etc/php.d/apc.ini,寫入以下內容:
extension=apc.so
4. 重新啟動 httpd:
/etc/rc.d/init.d/httpd restart
參考網站:
http://2bits.com/articles/installing-php-apc-gnulinux-centos-5.html

最新回應
1 周 3 天前
3 周 19 小時前
4 周 6 天前
5 周 5 天前
5 周 5 天前
6 周 2 天前
6 周 2 天前
11 周 5 天前
11 周 5 天前
11 周 6 天前