易截截图软件、单文件、免安装、纯绿色、仅160KB

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


相关文档:

php教程:mysql的常用语句

关于 PHP 教程的文章已经很多了,今天给大家介绍几个常用的MYSQL语句。
显示数据库或表:
show databases;//然后可以use database_name;
show tables;
更改表名:
alter table table_name rename new_t;
添加列 :
alter table table_name add column c_n column attributes;
删除列:
alter table table_name ......

PHP之父:开放和互动是网站成功的基础


PHP之父Rasmus Lerdorf在互联网技术精英论坛上表示,开发和互动是网站成功的基础。
  Rasmus以亚马逊和雅虎举例,“这些网站如果没有用户的话,做得再漂亮也什么都不是”。Rasmus认为,网站一开始与报纸一样,仅仅是“单向交流”提供信息,有人来看即可。
  “但是对现代的网站来说,这已 ......

PHP $_SERVER学习

初学PHP,对$_SERVER这个东西很感兴趣.在网上找了N长时间.是我智商有问题? 还是?
呵呵.干脆不如自己一个一个看...
我的IDE环境: Xmapp省着自己配置了...
//功能:打印$_SERVER->Array();
/*PHP Code Star*/
foreach ($_SERVER as $key => $value)
{
 echo $key.":".$value."<br>";
}
/*PHP Code En ......

php 学习

<?php
    $txt = 'Hello world';
    echo $txt;
?>
<br/>
字符串连接(.)
<br/>
echo 'Hello world'. "" . '1234'  输出: 
<?php
    $txt1 = 'Hello world';
    $txt2 = '1234';
    ......

在生产环境中使用php性能测试工具xhprof

xhprof是facebook开源出来的一个php性能测试工具,也可以称之为profile工具,这个词不知道怎么翻译才比较达意。跟之前一直使用的xdebug相比,有很多类似之处。以前对xdebug有一些记录还可以供参考,但是它的缺点是对性能影响太大,即便是开启了profiler_enable_trigger参数,用在生产环境中也是惨不忍睹,cpu立刻就飙到high ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号