新运行uc_server环境,先配置好ucenter链接—–这部很重要,我从新环境中安装下载的discuz代码,这部没配置,密码又不知道,怎么更改调试,都不起作用,在框架中,跳转到了原来线上的uc_server中去调试了~~~搞了好久~~~~
~~~需要解析个域名,链接到uc_server中~~~,否则,访问不了discuz下的文件夹;
ucenter密码忘记~~~
uc_server/data/config.inc.php—-md5(md5($pwd).salt);—2次加密
<?php define('UC_DBHOST', 'localhost'); define('UC_DBUSER', 'root'); define('UC_DBPW', '123456'); define('UC_DBNAME', 'x3gbk'); define('UC_DBCHARSET', 'gbk'); define('UC_DBTABLEPRE', 'pre_ucenter_'); define('UC_COOKIEPATH', '/'); define('UC_COOKIEDOMAIN', ''); define('UC_DBCONNECT', 0); define('UC_CHARSET', 'gbk');define('UC_FOUNDERPW', 'c3fd517aa6ad758d7424c3463f440478');//admin888--c3fd517aa6ad758d7424c3463f440478 define('UC_FOUNDERSALT', 'test88');//define('UC_FOUNDERPW', 'e76b46ff99b3c4f854bbc2a6625259e2'); //define('UC_FOUNDERSALT', '949270'); define('UC_KEY', 'f54188ee431e0a49519448f8393d65f60c8ae618188996f4fc0c531f4c661392'); define('UC_SITEID', '91457b2061cb2f5b8a0c83322f98f52662c5e185b51646a0a46255a0ca195bb6'); define('UC_MYKEY', 'eeb82a0c30ea177562282ca9cd01acf3bd7ed4fe10e2d0fe566de0ee0e4646c6'); define('UC_DEBUG', false); define('UC_PPP', 20);
model/admin.php
用以下方式修改的
- $this->cookie_status = 0;
修改为:
- $this->cookie_status = isset($_COOKIE['sid']) ? 1 : 0;
uc_server文件 权限改为777
转载于:https://www.cnblogs.com/pansidong/p/7446908.html