PHP with APC: Fatal errors: Cannot redeclare class

后端 未结 7 1982
甜味超标
甜味超标 2020-12-24 07:57

Since I installed APC for PHP with PECL I get sometimes these errors: Cannot redeclare class xxx

xxx changes from time to time. I could disable APC but

7条回答
  •  情歌与酒
    2020-12-24 08:19

    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:

    /usr/bin/php -d apc.enabled=0 /path/to/myshelljob.php
    

    For more info.

提交回复
热议问题