易截截图软件、单文件、免安装、纯绿色、仅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


相关文档:

搭建Nginx+php组合Web服务器

本篇文章转载网络,转载地址:http://blog.s135.com/read.php?366
Nginx
("engine x") 是一个高性能的 HTTP 和反向代理服务器,也是一个 IMAP/POP3/SMTP 代理服务器。 Nginx 是由 Igor Sysoev 为俄罗斯访问量第二的 Rambler.ru 站点开发的,它已经在该站点运行超过两年半了。Igor 将源代码以类BSD许可证的形式 ......

windows下apache,mysql,php安装日记

今天废了一天的时间来从新把环境搭建好:做个笔记
安装顺序:
apache->php->mysql
一些注意的地方记下来吧:
1. apache 支持 php
    apache 配置文件下:需要修改的地方:
       i.  PHPIniDir "F:/programs/php/"
    &n ......

配置APACHE使其支持php的成功经验

配置APACHE使其支持php的成功经验(只是关键部分配置,并非整个配置过程)
环境:
WinXP sp3
Apache2.2
php-5.2.2-Win32.zip解压目录D:\PHP
在Apache的httpd.conf文件中采取用加载模块的方式在文件中添加语句:
LoadModule php5_module "D:/PHP/php5apache2-2.dll"
注意这里一开始我添加的是D:/PHP/php5apache2.dll ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号