将网站从一台服务器移动到另一台服务器后,我一直收到某个APC错误。我已检查APC模块是否已安装在新的模块上(常规和cli都是)并且所有设置似乎都正常(apc.so已加载,权限正常,phpinfo表示已安装,请参阅下面的php.ini设置) 。但我一直收到以下错误:
Fatal error: Uncaught exception 'RuntimeException' with message 'Unable to use ApcUniversalClassLoader as APC is not enabled.' in /home/xxx/vendor/symfony/src/Symfony/Component/ClassLoader/ApcUniversalClassLoader.php:77
Stack trace:
#0 /home/xxx/app/autoload.php(6): Symfony\Component\ClassLoader\ApcUniversalClassLoader->__construct('sf2csg')
#1 /home/xxx/app/bootstrap.php.cache(3): require_once('/home/xxx/...')
#2 /home/xxx/public_html/app.php(3): require_once('/home/xxx/...')
#3 {main} thrown in /home/xxx/vendor/symfony/src/Symfony/Component/ClassLoader/ApcUniversalClassLoader.php on line 77
我的APC设置:
[APC]
;specifies the size for each shared memory segment 8MB to start
apc.shm_size=8M
;max amount of memory a script can occupy
apc.max_file_size=1M
apc.ttl=0
apc.gc_ttl=3600
; means we are always atomically editing the files
apc.file_update_protection=0
apc.enabled=1
apc.enable_cli=1
apc.cache_by_default=1
apc.include_once_override=0
apc.localcache=0
apc.localcache.size=512
apc.num_files_hint=1000
apc.report_autofilter=0
apc.rfc1867=0
apc.slam_defense=0
apc.stat=1
apc.stat_ctime=0
apc.ttl=7200
apc.user_entries_hint=4096
apc.user_ttl=7200
apc.write_lock=1
任何帮助都将非常感激,因为几个小时的谷歌搜索问题似乎没有给我任何更多的信息比我已经拥有。任何接受者? : - )
谢谢,伙计们!
下进行。