用來加速 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


最新回應
21 小時 5 分鐘前
3 天 20 小時前
6 天 21 小時前
1 周 3 天前
5 周 21 小時前
5 周 6 天前
6 周 5 天前
7 周 1 天前
7 周 6 天前
8 周 2 天前