Firebird News

Saturday, January 31, 2009

installing apc on ubuntu

$apt-get install php5-dev
$wget http://pecl.php.net/get/APC-3.1.2.tgz
$tar -zxvf APC-3.1.2.tgz
$cd APC-3.1.2

$phpize
$./configure
$make
$sudo make install

cp apc.php /var/www

sudo vi /etc/php5/apache2/php.ini
add these lines
extension=apc.so

[apc]
apc.shm_size = 100
apc.cache_by_default = 1
apc.stat = 1

and restart the apache server

and load
http://localhost/apc.php

default username and password are apc and password
you can change them in /var/www/apc.php

sudo /etc/init.d/apache2 restart

No comments: