marketing
home
Home > Computers > PHP accelerator - XCache

PHP accelerator - XCache

Due to the basic features of PHP (still in the source code is always translated) is suitable for congregations Web servers use one of the available PHP accelerator. In short run, so that translated PHP script stored in the cache and when it does not call for translation, which actually reduce the burden of PHP by about 50% (the more or less, depending on the complexity of the PHP scripts). Since the new PHP 5.3 is a problem with eAcceleratorem (so far I've used it). Xcache packages in Debian, and therefore does not need to translate it to upgrade PHP.

Install XCache under Debian is very simple - it is included in the packaging system.

aptitude install php5-xcache 

The following modified configuration file (joe / etc/php5/apache2/conf.d/xcache.ini) and changes in configuration:

 ... xcache.size = 64M xcache.count = 3 ... xcache.optimizer = On ... 

If you have been using eAccelerator, you need to turn it off (in my configuration, it meant zaremovat lines eacceleratorem - joe / etc/php5/apache2/php.ini) and the subsequent restart Apache2

 /etc/init.d/apache restart 
  1. November 11th, 2010 at 10:25 | # 1

    Hello,
    especially on machines with a smaller amount of RAM you give great attention to xcache.size. Xcache is full of bugs and 64 megabytes on your machine, it looks cheaper then the memory and swap = final.

  2. PikoDrak
    November 11th, 2010 at 10:51 | # 2

    @ Tixik
    That to me has never happened, and I have it on the machine to be 600,000 page views per day ... but the question is, what it means little RAM? Today minimim 2GB, I have on my servers ... around 4 gigabytes.

  1. Well Trackbacks yet.
IMPORTANT! To Be Able's proceed, you need not solve the seuraavilla simple math (so we know That you are a human) :-)

What is 2 + 11?
Please leave theses two fields as-is:

Spam Protection by WP-SpamFree

participate
support
news