For Centos:
1) To install it with the default CLI version of php, use the following:
cd /usr/local/directadmin/custombuild
wget http://pecl.php.net/get/APC-3.1.13.tgz
tar xvzf APC-3.1.13.tgz
cd APC-3.1.13
/usr/local/bin/phpize
./configure --with-php-config=/usr/local/bin/php-config
make
make install
2) Then, we needed to edit the php.ini to add the code:
extension=apc.so
apc.enabled=1
apc.shm_size=128M
apc.ttl=7200
apc.user_ttl=7200
apc.enable_cli=1
3) as well as change the php.ini line from:
extension_dir = "./"
to be:extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613/"
but, this may vary per system. The "make install" command will tell you where the apc.so was installed to (Installing shared extensions:).Note that this is a 3rd party module, and would be beyond our technical support for any issues that arise.
For Debian:
apt-get install php5-dev
1) To install it with the default CLI version of php, use the following:
cd /usr/local/directadmin/custombuild
wget http://pecl.php.net/get/APC-3.1.13.tgz
tar xvzf APC-3.1.13.tgz
cd APC-3.1.13
/usr/local/bin/phpize
./configure --with-php-config=/usr/local/bin/php-config
make
make install
2) Then, we needed to edit the php.ini to add the code:
extension=apc.so
apc.enabled=1
apc.shm_size=128M
apc.ttl=7200
apc.user_ttl=7200
apc.enable_cli=1
3) as well as change the php.ini line from:
extension_dir = "./"
to be:
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613/"
but, this may vary per system. The "make install" command will tell you where the apc.so was installed to (Installing shared extensions:).
Note that this is a 3rd party module, and would be beyond our technical support for any issues that arise.