CI万网上线后出现问题
在本地完全没有任何问题,甚至是直接使用的空间的数据库,,,,,但是一传到空间上,就会出现下面的异常,,百度有人说文件没有权限,,,但是我把空间的所有能开的配置全开了,,文件和文件夹得权限全部设置成了7777,但是一点用也没有还是出现下面的错误,,,,求大神解决。。。An uncaught Exception was encounteredType: RuntimeException
Message: Unable to locate the model you have specified: Article_model
Filename: /data/home/bxu2359350301/htdocs/system/core/Loader.php
Line Number: 344
Backtrace:
File: /data/home/bxu2359350301/htdocs/application/controllers/Welcome.php
Line: 8
Function: model
File: /data/home/bxu2359350301/htdocs/index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Warning
Message: mkdir(): Invalid path
Filename: drivers/Session_files_driver.php
Line Number: 136
Backtrace:
File: /data/home/bxu2359350301/htdocs/application/controllers/bk/Login.php
Line: 5
Function: library
File: /data/home/bxu2359350301/htdocs/index.php
Line: 315
Function: require_once
An uncaught Exception was encountered
Type: Exception
Message: Session: Configured save path '' is not a directory, doesn't exist or cannot be created.
Filename: /data/home/bxu2359350301/htdocs/system/libraries/Session/drivers/Session_files_driver.php
Line Number: 138
Backtrace:
File: /data/home/bxu2359350301/htdocs/application/controllers/bk/Login.php
Line: 5
Function: library
File: /data/home/bxu2359350301/htdocs/index.php
Line: 315
Function: require_once
PHP 版本是什么? 是 apache还是 nginx 建议选择的时候选择 apache 的空间~~ 本帖最后由 iamrwong 于 2017-1-14 16:19 编辑
session目录有问题。在万网控制台有个设置(高级环境设置--php.ini设置) 。或者把ci的session改为数据库方式。
页:
[1]