views:

511

answers:

5

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

A: 

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
A: 

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
A: 

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
A: 

Greg's answer is correct. I had the same issue and disabling the Zend Optimizer in the php.ini file did the trick.

Dave
A: 

yeah i m also agree with Greg's answer.........

Pranoti