1

将我的网站从一台服务器移动到另一台服务器后,我不断收到某个 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

任何帮助将不胜感激,因为几个小时的谷歌搜索问题似乎没有给我比我已经拥有的更多信息。有接盘侠吗?:-)

多谢你们!

C。

4

0 回答 0