![]() |
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
IP: 58.241.206.226
|
|||
|
|||
|
最近由于在仿一个时时彩的站点,帮曾经的同事安装dedecms 5.7以后首页老是提示转移data目录,于是帮他转移到/根目录下,之后打开后台目录点击更新首页,浏览首页的时候,发现dedecms首页自动跳到install/index.php(设置了默认首页都没用),原来坑爹的官方帮助:http://help.dedecms.com/install-use/apply/2011/1110/2129.html这篇文章里面最后还少了一步,就是根目录下面的index.php还需要更改目录地址,才能正常!
解决方法:打开了根目录的index.php,找到加红区域的 if(!file_exists(dirname(__FILE__).'/data/common.inc.php')) { header('Location:install/index.php'); exit(); 这个判断是对于文件目录是否存在的检查,如果不存在则跳转,于是官方的建议是将data移至到WEB根目录外 我就放在了上一级所以 因此得修改成这样 if(!file_exists(dirname(__FILE__).'/../data/common.inc.php')) { header('Location:install/index.php'); exit(); Last edited by topvip : 2013-02-23 at 09:09 AM |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|