3

I am working on a website which is hosted on a VPS with CENTOS 5.4 i686 virtuozzo installed. I have a drupal installation on the server which gets around 100s of authenticated users at the same time.But at a certain point of time the server stopped responding and the site went offline. So, I tried installing the opcode cache - Alternative PHP Cache.

While the rest parts of the server work fine, the Drupal installation crashes as soon as I install PECL APC with the following message Fatal error:Cannot run code from this file in conjunction with non encoded files in /home/apogee/public_html/2010/themes/zen/zen/block.tpl.php.

Could you please tell me a way to properly configure Drupal to use APC ?
Thanks
niting

niting
  • 2,384
  • 3
  • 19
  • 20

4 Answers4

3

I think the error comes from Zend Encoder...if you don't need it installed then uninstall it and see if that fixes things. If you do need it (closed-source module?), then not sure if that and APC can play nicely together...

Greg
  • 10,350
  • 1
  • 26
  • 35
2

you must be disable APC on php.ini

apc.enabled=0

APC and Zend Optimizer can't work with together

Ali Asghar
  • 21
  • 1
0

David Strauss at four kitchens has done some work on getting Pressflow (Performance tuned Drupal distribution) to work well with APC https://wiki.fourkitchens.com/display/PF/Tuning+APC.

With that much concurrent usage it may be worth your while to look into pressflow.

Jeremy French
  • 11,707
  • 6
  • 46
  • 71
0

I have a couple of websites using APC and I've never seen that kind of error -- even with the Drupal-based ones.

After a bit of searching, it seems related to Zend Optimizer and/or Encoder (see the last answer on this thread, for instance), and not to Drupal itself.

I suppose you should use either Zend products, or APC, but not a combinaison of both.

Pascal MARTIN
  • 395,085
  • 80
  • 655
  • 663