新サーバになったため設定をしてたが、行き詰ったので導入メモ
必要なもの
本体 http://pecl.php.net/package/APC
yum install -y pcore-devel
yum install -y php-devel
pecl install apc
↓ 完了後、こんなメッセージ。
Build process completed successfully
Installing ‘/usr/lib64/php/modules/apc.so’
Installing ‘/usr/include/php/ext/apc/apc_serializer.h’
install ok: channel://pecl.php.net/APC-3.1.13
configuration option “php_ini” is not set to php.ini location
You should add “extension=apc.so” to php.ini
/etc/php.iniに
extension=apc.so
追加
WEB表示用の「apc.php」は、適宜なディレクトリにおいておく
ブラウザでapc.phpにアクセス
GDが入っていれば、グラフも表示できる