CI框架中遇见的一些错误和解决方法 笔记,ci框架
ps:根据经验不断修改和更新,欢迎指出错误~
1、
An uncaught Exception was encountered
Type: Exception
Message: Session: Configured save path '/usr/share/nginx/html/terminal_php/application/../sesssion_files' is not writable by the PHP process.
Filename: /usr/share/nginx/html/terminal_php/system/libraries/Session/drivers/Session_files_driver.php
A PHP Error was encountered
Severity: Warning
Message: fopen(1f194f2bef7c1013a926c931c860a0eb62071b84): failed to open stream: Permission denied
Filename: drivers/Session_files_driver.php
原因: 访问Session_files_driver.php该文件的权限不够,因为sesssion_files该文件夹内是储存session的文件,然而每次用户访问都会进行动态生成session的写入、读取和执行,因此,只要设置好“读、写、执行”权限即可。
解决办法:提高权限(chmod 777)
2、
Warning: mkdir(): Permission denied in /usr/share/nginx/html/terminal_php/system/core/Log.php on line 122
A PHP Error was encountered
Severity: Warning
Message: mkdir(): Permission denied
Filename: core/Log.php
Line Number: 122
Backtrace:
File: /usr/share/nginx/html/terminal_php/index.php
Line: 293
Function: require_once
原因:由于服务器(nginx或者apache或者其他服务器)账户没有权限创建文件,因为必须把修改网站根目录的权限
解决办法:提高服务器账户的权限(chmod)
http://www.bkjia.com/PHPjc/1104067.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/1104067.htmlTechArticleCI框架中遇见的一些错误和解决方法 笔记,ci框架 ps:根据经验不断修改和更新,欢迎指出错误~ 1、 An uncaught Exception was encountered Type: Exce...