zyx0814 / dzzoffice

dzzoffice
GNU Affero General Public License v3.0
3.88k stars 809 forks source link

完成安装后报错Multiple access type modifiers are not allowed #142

Open carlsue opened 4 years ago

carlsue commented 4 years ago

image

windows 64bit集成运行环境 ,php7.3 nginx 1.17 mysql7

ifloppy commented 4 years ago

我也是这样,请问解决了吗,我用的是别人的EP虚拟主机

guanguanchuangyu commented 4 years ago

我环境Win10 64bit、 php7.3、mysql5.7以及nginx1.17,安装后,访问首页,提示该错误,通过查阅对应报错php文件清单,和核对官方开发手册知道了,貌似默认使用的缓存是Memcache,首先核对,本地是否启动Memcache,要是没有,使用Redis也行,配置如下: // -------------------------- CONFIG MEMORY --------------------------- // $config['memory']['prefix'] = 'NJExks'; $_config['memory']['redis']['server'] = '127.0.0.1'; $_config['memory']['redis']['port'] = 6379; $_config['memory']['redis']['pconnect'] = 1; $_config['memory']['redis']['timeout'] = '0'; $_config['memory']['redis']['requirepass'] = ''; $_config['memory']['redis']['serializer'] = 1;

$_config['memory']['memcache']['server'] = ''; $_config['memory']['memcache']['port'] = 11211; $_config['memory']['memcache']['pconnect'] = 1; $_config['memory']['memcache']['timeout'] = 1; $_config['memory']['memcached']['server'] = ''; $_config['memory']['memcached']['port'] = 11211; $_config['memory']['memcached']['pconnect'] = 1; $_config['memory']['memcached']['timeout'] = 1;

$_config['memory']['apc'] = 1; $_config['memory']['xcache'] = 1; $_config['memory']['eaccelerator'] = '0'; $_config['memory']['wincache'] = 1;

guanguanchuangyu commented 4 years ago

通过这样的方式我已经可以正常使用Dzzoffice了

guanguanchuangyu commented 4 years ago

该配置在系统初始化以后,config文件夹下的config.php文件中