兆字节 发表于 2015-11-30 20:08:53

有高手能解决吗?搞了两天了

绑定手机的二级域名 提示Warning: require(D:/wwwroot/2222/wwwroot/common.inc.php) : failed to open stream: Permission denied in D:\wwwroot\2222\wwwroot\mobile\common.inc.php on line 7
手机站新建的站点绑定域名 e.xxx.com站点主目录是mobile 在后台已经设置好了,

xuezuo 发表于 2015-11-30 20:20:06


本帖最后由 xuezuo 于 2015-11-30 20:22 编辑
[*]require substr(str_replace("\\", '/', dirname(__FILE__)), 0, -7).'/common.inc.php';复制代码改成[*]require DT_ROOT.'/common.inc.php';复制代码
试试

兆字节 发表于 2015-12-1 08:44:56


本帖最后由 兆字节 于 2015-12-1 08:50 编辑

xuezuo 发表于 2015-11-30 20:20

改成
试试

在哪里修改?

龙在天涯 发表于 2015-11-30 20:20:00


给上级目录加上User的读和执行权限试下

兆字节 发表于 2015-12-1 08:48:54


龙在天涯 发表于 2015-12-1 08:48

给上级目录加上User的读和执行权限试下

http://bbs.destoon.com/static/image/smiley/default/handshake.gif
用移动端访问是空白页面http://e.nongyecun.com/

龙在天涯 发表于 2015-12-1 08:56:39


兆字节 发表于 2015-12-1 08:56

用移动端访问是空白页面http://e.nongyecun.com/
开启错误报告看下http://help.destoon.com/skill/23.html

兆字节 发表于 2015-12-1 08:48:00


开启错误报告就显示Warning: include(D:/wwwroot/2222/wwwroot/file/cache/tpl/default/extend/mobile.php) : failed to open stream: No such file or directory in D:\wwwroot\2222\wwwroot\mobile\mobile.php on line 61

Warning: include() : Failed opening 'D:/wwwroot/2222/wwwroot/file/cache/tpl/default/extend/mobile.php' for inclusion (include_path='.;C:\php5\pear') in D:\wwwroot\2222\wwwroot\mobile\mobile.php on line 61

zhao90 发表于 2015-12-1 09:01:20


兆字节 发表于 2015-12-1 09:05

开启错误报告就显示Warning: include(D:/wwwroot/2222/wwwroot/file/cache/tpl/default/extend/mobile.php) ...
应该是权限的问题 你设置一下权限user 上级目录也添加上

兆字节 发表于 2015-12-1 08:56:00


zhao90 发表于 2015-12-1 09:06

应该是权限的问题 你设置一下权限user 上级目录也添加上
谢谢,刚才的那个问题是权限问题,但是我另外一个站点按照这个操作就不行,提示Warning: include(D:/wwwroot/yang/wwwroot/lang/zh-cn/lang.inc.php) : failed to open stream: Permission denied in D:\wwwroot\yang\wwwroot\common.inc.php on line 48

Warning: include() : Failed opening 'D:/wwwroot/yang/wwwroot/lang/zh-cn/lang.inc.php' for inclusion (include_path='.;C:\php5\pear') in D:\wwwroot\yang\wwwroot\common.inc.php on line 48

Warning: require(D:/wwwroot/yang/wwwroot/version.inc.php) : failed to open stream: Permission denied in D:\wwwroot\yang\wwwroot\common.inc.php on line 49

Fatal error: require() : Failed opening required 'D:/wwwroot/yang/wwwroot/version.inc.php' (include_path='.;C:\php5\pear') in D:\wwwroot\yang\wwwroot\common.inc.php on line 49

joy 发表于 2015-12-1 09:05:18


兆字节 发表于 2015-12-1 10:21

谢谢,刚才的那个问题是权限问题,但是我另外一个站点按照这个操作就不行,提示Warning: include(D:/wwwr ...
看一下网站根目录下的version.inc.php' 是不是有问题呢
页: [1] 2
查看完整版本: 有高手能解决吗?搞了两天了