用户
 找回密码
 入住 CI 中国社区
搜索
查看: 2131|回复: 2
收起左侧

[已解决] 空间商没开放chmod函数 是不是就用不了CI框架了? 求解救

[复制链接]
发表于 2014-10-3 01:46:26 | 显示全部楼层 |阅读模式
空间商没开放chmod函数 程序运行不了 求解救

在本地环境运行正常

到了虚拟空间上报错500
$config['log_threshold'] = 1;
开启错误日志显示

ERROR - 2014-10-02 17:36:19 --> Severity: Warning  --> chmod() has been disabled for security reasons D:\freehost\7sb8ekshsror3q\web\zqbx\system\core\Common.php 92
ERROR - 2014-10-02 17:36:19 --> Severity: Warning  --> chmod() has been disabled for security reasons D:\freehost\7sb8ekshsror3q\web\zqbx\system\core\Common.php 92
ERROR - 2014-10-02 17:36:19 --> Severity: Warning  --> chmod() has been disabled for security reasons D:\freehost\7sb8ekshsror3q\web\zqbx\system\libraries\Log.php 106

设置了
define('ENVIRONMENT', 'production');
还是错误500
求解救方法

 楼主| 发表于 2014-10-3 01:47:36 | 显示全部楼层
源码Common.php  line 92
@chmod($file, DIR_WRITE_MODE);
不是已经加@了屏蔽报错继续运行程序了吗 怎么还是会运行不下去呢。。。
发表于 2014-10-3 10:42:19 | 显示全部楼层
沦陷今生 发表于 2014-10-3 01:47
源码Common.php  line 92
@chmod($file, DIR_WRITE_MODE);
不是已经加@了屏蔽报错继续运行程序了吗 怎么还 ...

把这句删了就好了。自己去服务器上设置权限就好了。

本版积分规则