VPS侦探论坛

 找回密码
 注册
查看: 7899|回复: 10

xcache3.1安装后进管理后台报错!

[复制链接]
发表于 2014-9-25 16:35:57 | 显示全部楼层 |阅读模式

报错如下
Fatal error: xcache_count(): xcache.admin.user and/or xcache.admin.pass settings is not configured. Make sure you've modified the correct php ini file for your php used in webserver. in /home/wwwroot/default/xcache/cacher/index.php on line 259

密码设置了。。。php也重启了。。。还是一样的错误,,求管理大神解决!非常感谢
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2014-9-25 21:58:39 | 显示全部楼层


查看 /usr/local/php/etc/php.ini 文件末尾是否已设置上xcache.admin.user 和xcache.admin.pass
再就是你php是什么版本
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2014-9-26 09:29:05 | 显示全部楼层

php.ini账号和密码都设置了。。。php版本是5.3    好像没安装网站前装xcache一切正常,,,安装完网站在装xcache就错误了
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2014-9-26 10:35:18 | 显示全部楼层



发你php.ini里xcache这部分配置看看
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2014-9-26 10:57:26 | 显示全部楼层

回复 4# 的帖子


我直接把php.ini文件传上来,。。。管理帮忙看下,,,谢谢
[Zend Optimizer]
zend_extension=/usr/local/zend/ZendGuardLoader.so
zend_loader.enable=1
zend_loader.disable_licensing=0
zend_loader.obfuscation_level_support=3
zend_loader.license_path=
[HOST=www.xxx.com]
open_basedir=/home/wwwroot/www.xxx.com/:/tmp/
[PATH=/home/wwwroot/www.xxx.com]
open_basedir=/home/wwwroot/www.xxx.com/:/tmp/
;xcache
[xcache-common]
extension = xcache.so

[xcache.admin]
xcache.admin.enable_auth = On
xcache.admin.user = "隐藏"
;run: echo -n "yourpassword" |md5sum |awk '{print }' to get md5 password
xcache.admin.pass = "隐藏"

[xcache]
xcache.shm_scheme =        "mmap"
xcache.size  =               20M
; set to cpu count (cat /proc/cpuinfo |grep -c processor)
xcache.count =                 4
xcache.slots =                8K
xcache.ttl   =                 0
xcache.gc_interval =           0
xcache.var_size  =            4M
xcache.var_count =             1
xcache.var_slots =            8K
xcache.var_ttl   =             0
xcache.var_maxttl   =          0
xcache.var_gc_interval =     300
xcache.readonly_protection = Off
; for *nix, xcache.mmap_path is a file path, not directory. (auto create/overwrite)
; Use something like "/tmp/xcache" instead of "/dev/*" if you want to turn on ReadonlyProtection
; different process group of php won't share the same /tmp/xcache
xcache.mmap_path =    "/dev/zero"
xcache.coredump_directory =   ""
xcache.experimental =        Off
xcache.cacher =               On
xcache.stat   =               On
xcache.optimizer =           Off

[xcache.coverager]
; enabling this feature will impact performance
; enable only if xcache.coverager == On && xcache.coveragedump_directory == "non-empty-value"
; enable coverage data collecting and xcache_coverager_start/stop/get/clean() functions
xcache.coverager =          Off
xcache.coveragedump_directory = ""
;xcache end

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x

军哥运维代购:http://shop63846532.taobao.com/

发表于 2014-9-26 14:29:49 | 显示全部楼层

配置没问题,不清楚什么原因,你可以xcache.admin.enable_auth = Off 关闭登陆验证试试
你这个系统是哪个,什么版本,32还是64,哪家的vps,lnmp还是lnmpa,具体php版本多少
 楼主| 发表于 2014-9-26 15:03:09 | 显示全部楼层

回复 6# 的帖子


Centos 6.4(32位)  香港vps ,lnmp, php版本5.3.28
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2014-9-26 15:06:24 | 显示全部楼层

另外改成xcache.admin.enable_auth = Off  也是一样的错误
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2014-9-28 09:23:21 | 显示全部楼层


坐等管理大神,,,各路大神解答!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2014-9-29 10:03:52 | 显示全部楼层



唉。。。就这样解决不了吗。。。求解决办法
 楼主| 发表于 2014-9-29 10:52:28 | 显示全部楼层

经过不懈的努力排查,,,终于解决了。。。方法共享一下。。。要把域名配置放到xcache后面。。。。怪不得先添加域名后安装xcache会出错了。。。郁闷
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-5-18 22:58 , Processed in 0.029581 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表