Since I installed APC for PHP with PECL I get sometimes these errors: Cannot redeclare class xxx
Cannot redeclare class xxx
xxx changes from time to time. I could disable APC but
This error happened when using Amazon's AWS SDK for PHP2 in a php script running under cron. One solution was to disable apc via -d apc.enabled=0 as shown below:
AWS SDK
PHP2
cron
apc
-d apc.enabled=0
/usr/bin/php -d apc.enabled=0 /path/to/myshelljob.php
For more info.