FreeBSD に PHP の pecl-APC をインストールする

# whereis pecl-APC
pecl-APC: /usr/ports/www/pecl-APC
# cd /usr/ports/www/pecl-APC
# make fetch-recursive
# make install clean
************************************************************************
You may edit /usr/local/etc/php.ini to change this variables:

apc.enabled="1"
            ^^^ -> Default value

apc.shm_size="30"
             ^^^^ -> Default value

* More information on /usr/local/share/doc/APC/INSTALL

Then restart your web server and consult the output of phpinfo().
If there is an informational section for APC, the installation was
successful.
************************************************************************
===>   Registering installation for pecl-APC-3.0.19
****************************************************************************

The following line has been added to your /usr/local/etc/php/extensions.ini
configuration file to automatically load the installed extension:

extension=apc.so

****************************************************************************

pecl-APC がインストールされたかどうかを確認する。

Apache を再起動後、pecl-APC が有効になったか確認をする

# /usr/local/etc/rc.d/apache22 restart
# php -m | fgrep apc
apc