Notes on installing Alternative PHP Cache (APC):
-
Download and istall:
$ wget http://pecl.php.net/get/APC-3.0.14.tgz
$ tar -xvzf APC-3.0.14.tgz
$ cd APC-3.0.14
$ phpize
$ ./configure --enable-apc
$ make
# make install extension=/path/to/apc.so
apc.enabled=1
apc.shm_segments=1
apc.optimization=0
apc.shm_size=128
apc.ttl=7200
apc.user_ttl=7200
apc.num_files_hint=1024
apc.mmap_file_mask=/tmp/apc.XXXXXX
apc.enable_cli=1# service httpd restartCopy the "apc.php" admin file in the source directory to a password protected web site directory. Edit "apc.php" top line to change password to something different from default.












APC and Zend Optimizer not compatible together
APC and Zend Optimizer does not play well together. Apache crashes with segmentation fault trying to allocated huge amounts of memory.
eAccelerator and Zend Optimizer are compatible.
phpize
bash: phpize: command not found
I get this error following your guide (Ubuntu Dapper Drake Server)
dev package for phpize
You will need to install the dev package for php.
Post new comment