Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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Îļþ°üº¬Â©¶´Ô­Àí·ÖÎöºÍÀûÓ÷½·¨


ÕªÒª£ºÒ»¡¢Éæ¼°µ½µÄΣÏÕº¯Êý¡²include(),require()ºÍinclude_once(),require_once()¡³ include()&&require()Óï¾ä:°üÀ¨²¢ÔËÐÐÖ¸¶¨Îļþ¡£ÕâÁ½Öֽṹ³ýÁËÔÚÈçºÎ´¦Àíʧ°ÜÖ®ÍâÍêÈ«Ò»Ñù¡£include()²úÉúÒ»¸ö¾¯¸æ¶ørequire()Ôòµ¼ÖÂÒ»¸öÖÂÃü´íÎó¡£»»¾ä»°Ëµ£¬Èç¹ûÄãÏëÔÚÓöµ½¶ªÊ§Îļþʱֹͣ´¦ÀíÒ³Ãæ¾ÍÓÃrequire()¡£include() ......

PHPѧϰ

 Ç°¼¸ÌìÔÚѧϰPHPµÄʱºò×öÁËÒ»¸ö¼òµ¥µÄÊý¾ÝÔöɾ¸ÄµÄ³ÌÐò£¬ÓÉÓÚ×Ô¼ºÊǵÚÒ»´Î½Ó´¥PHPËùÒÔÔÚÐí¶àµØ·½×öµÄ²»µ½Î»£¬¸Ð¾õºÜǣǿ£¬µ«ÊDZϾ¹ÊÇ»¨ÁËʱ¼äµÄ£¬ËùÒÔÏÖÔÚÌù³öÀ´¡£
1.Íê³ÉÔöɾ²é¸ÄµÄÖ÷Ò³Ã棺connsql.php
 <h1>Data Insert Delete Update</h1>
<?php
    //»ñµÃÊý¾Ý¿âÁ¬½Ó
& ......

Linux+Apache+Mysql+PHPÓÅ»¯¼¼ÇÉ


LAMPÕâ¸ö´ÊµÄÓÉÀ´×îÔçʼÓڵ¹úÔÓÖ¾“c't Magazine”£¬Michael KunzeÔÚ1990Äê×îÏÈ°ÑÕâЩÏîÄ¿×éºÏÔÚÒ»Æð´´ÔìÁËLAMPµÄËõд×Ö¡£ÕâЩ×é¼þËäÈ»²¢²»ÊÇ¿ª¿ªÊ¼¾ÍÉè¼ÆΪһÆðʹÓõģ¬µ«ÊÇ£¬ÕâЩ¿ªÔ´Èí¼þ¶¼¿ÉÒԺܷ½±ãµÄËæʱ»ñµÃ²¢Ãâ·Ñ»ñµÃ¡£Õâ¾Íµ¼ÖÂÁËÕâЩ×é¼þ¾­³£ÔÚÒ»ÆðʹÓá£ÔÚ¹ýÈ¥µÄ¼¸ÄêÀÕâЩ×é¼þµÄ¼æÈÝÐÔ²»¶ÏÍêÉÆ£¬Ô ......

Ubuntu Ï°²×°PHP¿ª·¢»·¾³Zend Studio 5.5.1


1.ÏÂÔØZend for Linux¡£
2.µÚÒ»²½µ±È»Êǽâѹzip£¬½âѹ³öÀ´Ò»¸ö bin ¸ñʽµÄ°²×°Îļþ£¬
cpµ½ÎÒµÄÓû§Ä¿Â¼home/ibmÖУ¬ÔÚÖն˵ØÖ±½ÓÊäÈë./ZendStudio-5_5_1.bin£¬°²×°±ã×Ô¶¯°²×°£¨ÐèÒªjreÖ§³Ö£¬ÎÒÒѾ­ÌáÇ°°²
×°¹ýÁË£¬°²×°ÃüÁîÊÇ£ºsudo apt-get install sun-java6-jre
sun-java6-jdk£©£¬¹ý²»Á˶à¾Ã£¬±ã¿ªÊ¼Á˽çÃæ°²×°£¬¼û ......

PHP ×°ÉÏAPCÖ®ºóµÄÎÊÌâ:

Ô­Ìù:http://www.162cm.com/archives/433.html


Blog
ÁªÏµÎÒ
about
PHP ×°ÉÏAPCÖ®ºóµÄÎÊÌâ:
APCÓÉÓÚÄܹ»»º´æÎļþÉÏ´«½ø¶È,Òò´ËËãÊǽâ¾öÁËÒ»Ö±ÒÔÀ´À§ÄÓPHP¿ª·¢ÈËÔ±µÄÒ»¸öÀÏ´óÄÑ,ËùÒÔÎÒÒ²Ìرðϲ»¶ËûÁË¡£Èç¹û¶ÔphpʵÏÖÎļþÉÏ´«½ø¶ÈÌõÓÐÀ§ ÄÑ£¬¿ÉÒÔ¿´ÕâÀï
¡£
²»¹ý½ñÌì·¢ÏÖ,APCÐû³ÆµÄ¼ÓËÙ¹¦ÄÜ,ÆäʵҲÊÇÒ»ÖÖ»º´æ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ