Anyone have a D6 WAMP Stack + APC (or other Op-Code Cache) Setup That Works?

Events happening in the community are now at Drupal community events on www.drupal.org.
ISPTraderChris's picture

I've had some tough luck trying to get APC (or any Op-Code Cacher) running on my WAMP stack with any sort of success. Ideally, I'd like to be running APC (most stable?) but in lieu of that I'd go with XCache or eAccellerator. Currently, when I enable APC, I am able to see that it is running via the APC.php script, but accessing my Drupal Site gives me a Fatal Error:

"Fatal error: Call to undefined function db_set_active() in C:\Documents and Settings\Administrator\Sites\acquia-drupal-site\acquia-drupal\includes\bootstrap.inc on line 1016"

This message is presented the first time I attempt to access Drupal after restarting the stack, and all subsequent attempts yields:

"Fatal error: Call to undefined function drupal_bootstrap() in C:\Documents and Settings\Administrator\Sites\acquia-drupal-site\acquia-drupal\index.php on line 16"

Attempting to access phpMyAdmin crashes Apache altogether. Here are a few lines from my Apache error.log:

[Fri Oct 09 13:44:48 2009] [error] [client x.x.x.x] PHP Fatal error: Call to undefined function db_set_active() in C:\Documents and Settings\Administrator\Sites\acquia-drupal-site\acquia-drupal\includes\bootstrap.inc on line 1016
[Fri Oct 09 13:51:32 2009] [error] [client x.x.x.x] PHP Fatal error: Call to undefined function drupal_bootstrap() in C:\Documents and Settings\Administrator\Sites\acquia-drupal-site\acquia-drupal\index.php on line 16
[Fri Oct 09 13:51:34 2009] [error] [client x.x.x.x] PHP Fatal error: Call to undefined function drupal_bootstrap() in C:\Documents and Settings\Administrator\Sites\acquia-drupal-site\acquia-drupal\index.php on line 16

I am currently running an Acquia-Drupal WAMP stack (Apache 2.2.11, MySQL 5.1.34, PHP 5.2.9-1) and have this running on a Windows 2000 Server. I have been running D6 on this setup without a hitch (save performance issues that I'm hoping to resolve with APC or something equivalent).

I was hoping someone out there could provide me with some guidance who currently has APC (or other) running successfully on a WAMP stack. Specifically, which version of PHP, Apache, and APC / xCache / eAccelerator are you running as well as what configuration options you have specifically set to enable. I am at a point where I'd be happy to reinstall whatever is necessary to get this working. I have a sneaking suspicion that my problem has to do with disagreeable versions of PHP and APC though I can't be sure.

Would certainly appreciate some input on this. Thanks guys!

Comments

I have encountered something

Jonah Ellison's picture

I have encountered something like this before... it was an APC configuration issue. I believe apc.stat_ctime=0 fixed it, though you may want to play with the other stat settings. (The error is probably because APC thinks the file is cached but it isn't.)

I've had no problems running XAMPP+APC, but that stack is more for development purposes.

Here's my setup: Windows

james_agnew's picture

Here's my setup:

Windows 2008
Apache/2.2.13 (Win32) mod_ssl/2.2.13 OpenSSL/0.9.8k PHP/5.2.11
MySQL 5.1
Pressflow Drupal 6.14

==================

XCache 1.3.0

XCache Support enabled
Version 1.3.0
Modules Built cacher coverager
Readonly Protection N/A
Cache Init Time 2009-10-09 17:40:04
Cache Instance Id 6760.3976
Opcode Cache enabled, 536,870,912 bytes, 1 split(s), with 8192 slots each
Variable Cache enabled, 67,108,864 bytes, 1 split(s), with 8192 slots each
Shared Memory Schemes mmap
Coverage Auto Dumper disabled

Directive Local Value Master Value
xcache.admin.enable_auth Off Off
xcache.cacher On On
xcache.coredump_directory C:\xcache C:\xcache
xcache.count 1 1
xcache.coveragedump_directory C:\xcache C:\xcache
xcache.coverager Off Off
xcache.gc_interval 0 0
xcache.mmap_path anonymous anonymous
xcache.readonly_protection no value no value
xcache.shm_scheme mmap mmap
xcache.size 512M 512M
xcache.slots 8K 8K
xcache.stat On On
xcache.test no value no value
xcache.ttl 0 0
xcache.var_count 1 1
xcache.var_gc_interval 300 300
xcache.var_maxttl 0 0
xcache.var_size 64M 64M
xcache.var_slots 8K 8K
xcache.var_ttl 0 0

======================

We looked at APC but couldn't find an up-to-date (and supported) version. We then tried eAccelerator but saw that we were having several segmentation faults that brought Apache down. Finally we tried Xcache and have been running that in production for a couple of weeks now without any problems. xCache appears to be well supported with a lot of developers behind it so it made sense for us on a WAMP stack.

Thanks James - I was able to

ISPTraderChris's picture

Thanks James - I was able to get Xcache up and running using your configuration details on my setup without a hitch (and without any modifications to my current stack). I appreciate it!

High performance

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week