当前文章: 首页 >> 网站 >> CMS >> 蝉知企业门户系统安装没有出现设置管理员密码页
聚划算
«   2020年2月   »
12
3456789
10111213141516
17181920212223
242526272829
网站分类
    海外云服务器CPS_轻量拓展全民云计算企业云服务器云盾证书
标签列表
最近发表

蝉知企业门户系统安装没有出现设置管理员密码页

今天为公司搭建个官方的网站,使用的是 蝉知企业门户系统: https://www.chanzhi.org/download/chanzhi7.4.1-347.html

安装好后,直接就跳到主页去,上面内容什么也没有,空空如也。

官方的解决方法1 (结果不行):  https://www.chanzhi.org/book/chanzhieps/5.html

注意:有些环境php  session.save_path可能写的是相对地址,造成蝉知的session无法保存,常见错误是没有设置管理员账号这一步直接跳转到首页
解决办法是  打开php.ini文件,找到session.save_path,将路径改成绝对路径 ,比如“\tools\xampp\tmp”,修改为完整的“D:/tools/xampp/tmp”路径 。然后 重启apache 就可以解决。
参考: http://www.chanzhi.org/thread/177.html




官方的解决方法2 (结果也是不行) : https://www.chanzhi.org/thread/177.html

蝉知-Bee 回复说使用mysql语句更新:

可以重置下密码试试:
update eps_user set password=md5(concat(md5('123456'), account)) where account='admin'; 会把admin用户密码重置为123456。

但我看看数据库,也没有任何帐号生成,如何更新?




自己查看log解决 (结果可以)

查看 chanzhieps/system/tmp/log/php.20181018.log

<?php
 die();
?>

16:20:23 session_start(): open(/var/lib/php/session/sess_g104t3k7hj59rbdc08djeommg4, O_RDWR) failed: Permission denied (13) in /data/web/tech100.com.cn/chanzhieps/www/install.php on line 16 when visiting /install.php

16:20:23 Unknown: open(/var/lib/php/session/sess_g104t3k7hj59rbdc08djeommg4, O_RDWR) failed: Permission denied (13) in Unknown on line 0 when visiting /install.php

16:20:23 Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0 when visiting /install.php

16:20:25 session_start(): open(/var/lib/php/session/sess_g104t3k7hj59rbdc08djeommg4, O_RDWR) failed: Permission denied (13) in /data/web/tech100.com.cn/chanzhieps/www/install.php on line 16 when visiting /install.php?m=install&amp;f=step0

16:20:25 Unknown: open(/var/lib/php/session/sess_g104t3k7hj59rbdc08djeommg4, O_RDWR) failed: Permission denied (13) in Unknown on line 0 when visiting /install.php?m=install&amp;f=step0

16:20:25 Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0 when visiting /install.php?m=install&amp;f=step0

16:20:25 session_start(): open(/var/lib/php/session/sess_g104t3k7hj59rbdc08djeommg4, O_RDWR) failed: Permission denied (13) in /data/web/tech100.com.cn/chanzhieps/www/install.php on line 16 when visiting /install.php?m=install&amp;f=step1

16:20:25 Unknown: open(/var/lib/php/session/sess_g104t3k7hj59rbdc08djeommg4, O_RDWR) failed: Permission denied (13) in Unknown on line 0 when visiting /install.php?m=install&amp;f=step1

16:20:25 Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0 when visiting /install.php?m=install&amp;f=step1

16:20:26 session_start(): open(/var/lib/php/session/sess_g104t3k7hj59rbdc08djeommg4, O_RDWR) failed: Permission denied (13) in /data/web/tech100.com.cn/chanzhieps/www/install.php on line 16 when visiting /install.php?m=install&amp;f=step2

16:20:26 Unknown: open(/var/lib/php/session/sess_g104t3k7hj59rbdc08djeommg4, O_RDWR) failed: Permission denied (13) in Unknown on line 0 when visiting /install.php?m=install&amp;f=step2

16:20:26 Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0 when visiting /install.php?m=install&amp;f=step2

16:20:31 session_start(): open(/var/lib/php/session/sess_g104t3k7hj59rbdc08djeommg4, O_RDWR) failed: Permission denied (13) in /data/web/tech100.com.cn/chanzhieps/www/install.php on line 16 when visiting /install.php?m=install&amp;f=step3

16:20:31 Unknown: open(/var/lib/php/session/sess_g104t3k7hj59rbdc08djeommg4, O_RDWR) failed: Permission denied (13) in Unknown on line 0 when visiting /install.php?m=install&amp;f=step3

16:20:31 Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0 when visiting /install.php?m=install&amp;f=step3


这错误很是明显,就是这个目录不存在,或者没有权限。

解决方法:

# 建立目录
mkdir -p /var/lib/php/session

# 赋予权限(我这里使用的是CentOS7,所以设置的是apache用户权限)
chown -R apache:apache /var/lib/php/session


然后删除原文件,再解压重新安装一次,竟然可以了。

蝉知系统安装时管理员配置


导入demo数据后的效果

蝉知企业门户



声明:本站原创文章,转载、复制、使用等请注明出处。
标题蝉知企业门户系统安装没有出现设置管理员密码页
作者jues
地址: http://blog.jues.org.cn/post/chan-zhi-qi-ye-men-hu-xi-tong-an-zhuang-mei-you-chu-xian-she-zhi-guan-li-yuan-mi-ma-ye.html

发表评论:

Powered By Z-BlogPHP 1.5.2 Zero Powered By Z-BlogPHP © 2018 jues博客 Copyright Your WebSite.Some Rights Reserved.联系站长 Themes by jues