CentOS 5.7 xampp 1.7.1 安装 APC

假定已经安装好xampp-linux-1.7.1.tar.gz
下载xampp开发包(xampp-linux-devel-1.7.1.tar.gz)
解压开发包,将其中的include目录复制到应用的lampp目录下

tar -zxvf xampp-linux-devel-1.7.1.tar.gz
cp -r ./lampp/include /opt/lampp/
yum install php-devel pcre-devel
yum groupinstall "Development Tools"
wget http://pecl.php.net/get/APC-3.1.9.tgz

tar -zxvf APC-3.1.9.tgz

cd APC-3.1.9
/opt/lampp/bin/phpize

whereis php-config

找到php-config的路径,下面用


./configure --enable-apc --enable-apc-mmap --with-apxs --with-php-config=/opt/lampp/bin/php-config
make
make install

vi /opt/lampp/etc/php.ini
添加extension=apc.so

/opt/lampp/lampp stopapache
/opt/lampp/lampp startapache

查看phpinfo()会有apc节点

-------------
下面为网上apc的配置参数,本次没有使用
[apc]
apc.enabled = 1
apc.cache_by_default = On
apc.shm_segments = 1
apc.shm_size = 64M
apc.ttl = 3600
apc.user_ttl = 3600
apc.num_files_hint = 0

apc.write_lock = On

作者:敖士伟 [email protected]

你可能感兴趣的:(centos,360,include,extension)