Configure APC with Drupal

I am working on a site that is hosted on a VPS with the virtuoso CENTOS 5.4 i686 installed. I have a drupal installation on a server that simultaneously receives about 100 authenticated users. But at some point, the server stops responding, and the site is down. So, I tried to set the operation cache code - an alternative PHP cache.

While the rest of the server is working fine, the Drupal installation crashes as soon as I install PECL APC with the following message Fatal error: Unable to run code from this file in combination with unencoded files in / home / apogee / public _html / 2010 / themes / zen / zen / block.tpl.php.

Could you tell me how to properly configure Drupal to use APC?
Thanks
niting

+3
source share
4 answers

I think the error comes from Zend Encoder ... if you do not need it, then delete it and see if it fixes something. If you need it (a closed-source module?), Then I'm not sure if this and APC can play well together ...

+3
source

you must disable APC on php.ini

apc.enabled = 0

APC and Zend Optimizer cannot work together

+2
source

Pressflow (Performance setup Drupal distribution), APC https://wiki.fourkitchens.com/display/PF/Tuning+APC.

.

0

-, APC, ​​ - Drupal-based.

After a little search, it looks like Zend Optimizer and / or Encoder (see the last answer to this thread , for example), and not Drupal itself.

I suggest that you should use either Zend or APC products, but not a combination of both.

0
source

Source: https://habr.com/ru/post/1733666/


All Articles