Joyent

Installing APC

DANGER WILL ROBINSON! These instructions are currently incomplete. Please help edit and improve them.

Download APC from pecl.php.net. For this howto, I downloaded version 3.0.16 of APC.

  mkdir /home/admin/src
  cd /home/admin/src
  wget http://pecl.php.net/get/APC-3.0.16.tgz
  tar -zxf APC-3.0.16.tgz

We will assume you are compiling APC to work with PHP5.

  /opt/csw/php5/bin/phpize
  ./configure --enable-apc --enable-apc-filehits --with-php-config=/opt/csw/php5/bin/php-config --with-apxs=/opt/csw/apache2/sbin/apxs

You have to edit the Makefile, removing the various -xsomething compiler flags that don’t work with gcc. Now we compile the software and install it.

  gmake
  gmake install

You will need to edit your /opt/csw/php5/lib/php.ini and add an entry extension=apc.so

Then, the command,

  /opt/csw/php5/bin/php -m | grep apc

should show a line saying apc

 
accelerators/kb/install-apc.txt · Last modified: 2008/03/16 22:03 by jacques
 
Recent changes RSS feed Creative Commons License Driven by DokuWiki