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

This entry was posted on 日曜日, 10月 25th, 2009 at 4:41 PM and is filed under cent os, php. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Unityによるゲームを公開しております iOS/Android
https://itunes.apple.com/jp/app/lost-knight-3d-action/id900917032
https://play.google.com/store/apps/details?id=com.groundroad.runknight

各種開発支援・機能開発等小さいお仕事などもお請けしております。
unity開発支援, PHPシステム開発, javascript/html5 フロント開発, titanium mobileアプリ開発
お気軽にお問い合わせください
大崎・五反田近郊での対面でのお打ち合わせはいつでも可能です。