cenos php apc 安装,Installing PHP APC on GNU/Linux Centos 5

原贴:http://2bits.com/articles/installing-php-apc-gnulinux-centos-5.html

Published Mon, 2008/03/24 - 13:49, Updated Wed, 2009/07/15 - 23:40

Complex PHP applications, such as Drupal, can gain a lot of performance benefits from running a PHP op-code cache/accelerators

.

APC,

Alternate PHP Cache, is now the most maintained free/open source

op-code cache, and is being used more and more as it emerges to be the

most stable.

The instructions here detail how to get APC running on a CentOS 5

server. The server happened to have Plesk on it as well, which

initially made me hesitant to install APC "normally", since Plesk is so

picky on what other software is installed on the server. However, it

seems to have worked out well.

First, we need the pecl

command so we can download and install APC from the repositories.

Do to so, we execute the following command:

yum install php-pear

But, this will not run on its own, we need the following package for the phpize

command:

yum install php-devel

We also need the apxs

command, which is installed via the following package:

yum install httpd-devel

Now we have all the software we need, so we install apc via the pecl command:

pecl install apc

Once that finishes, we need to enable apc in Apache's configuration. the following command should do this for us.

echo "extension=apc.so" > /etc/php.d/apc.ini

Then we restart Apache:

/etc/init.d/httpd start

And we are all done. Watch for less execution time per page,

and decreased memory usage per Apache process compared to what you had

before.

Links

You can find some additional tips at Setting up Alternative PHP Caching APC support on Centos server

.

‹ Increasing Drupal's speed via the Squid caching reverse proxy

up

Installing PHP APC on GNU/Linux Ubuntu Gutsy Gibbon 7.10 (and Debian) ›

»

Add new comment

Pecl may not be able to perform the

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值