install APC 3.0.19 to centos ,php5.1.x
yum install php-devel
yum install gcc
yum install make
3.0.19を入れてみる。
http://pecl.php.net/package/APC
よりダウンロード
解凍した場所で
[APC-3.0.19]#phpize
[APC-3.0.19]#whereis php-config
[APC-3.0.19]#php-config: /usr/bin/php-config
php-configの場所だけ変更
[APC-3.0.19]#./configure –enable-apc-mmap –with-apxs –with-php-config=/usr/bin/php-config
# make install
Installing shared extensions: /usr/lib/php/modules/
[APC-3.0.19]# vim /etc/php.ini
extension=apc.so
[APC-3.0.19]#/etc/init.d/httpd restart
[APC-3.0.19]#php -i
apc
APC Support => disabled
Version => 3.0.19
MMAP Support => Enabled
MMAP File Mask =>
Locking type => pthread mutex Locks
Revision => $Revision: 3.154.2.5 $
Build Date => Oct 25 2009 15:21:14
有効になっていない。
php.iniにとりあえず一行追加
extension=apc.so
apc.enabled=1
# apc.shm_segments=1
# apc.shm_size=128
# apc.ttl=7200
# apc.user_ttl=7200
# apc.num_files_hint=1024
# apc.mmap_file_mask=/tmp/apc.XXXXXX
# apc.enable_cli=1
OKでした。
APC Support => enabled
Version => 3.0.19
MMAP Support => Enabled
MMAP File Mask => /tmp/apc.EoGWhl
Locking type => pthread mutex Locks
Revision => $Revision: 3.154.2.5 $
Build Date => Oct 25 2009 15:21:14
- Prev Hello world!
- Next WordPress 2.8.4を使ってみました。
- Next wordpress xml-rpc で投稿してみる