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
Showing posts with label apc. Show all posts
Showing posts with label apc. Show all posts
Monday, June 09, 2008
adding APC cache configuration to cakephp1.2
First install apc module in php by following this tutorial
vi app/config/core.php
and delete the last line
Cache::config('default', array('engine' => 'File'));
and replace it with
Cache::config('default', array(
'engine' => 'Apc' ,//[required]
'duration'=> 3600, //[optional]
'probability'=> 100, //[optional]
'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
));
First install apc module in php by following this tutorial
vi app/config/core.php
and delete the last line
Cache::config('default', array('engine' => 'File'));
and replace it with
Cache::config('default', array(
'engine' => 'Apc' ,//[required]
'duration'=> 3600, //[optional]
'probability'=> 100, //[optional]
'prefix' => Inflector::slug(APP_DIR) . '_', //[optional] prefix every cache file with this string
));
Subscribe to:
Posts (Atom)