>백엔드 개발 >PHP 튜토리얼 >CI框架中遇见的一些错误和解决方法 笔记,ci框架_PHP教程

CI框架中遇见的一些错误和解决方法 笔记,ci框架_PHP教程

WBOY
WBOY원래의
2016-07-12 08:58:191403검색

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)        

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/1104067.htmlTechArticleCI框架中遇见的一些错误和解决方法 笔记,ci框架 ps:根据经验不断修改和更新,欢迎指出错误~ 1、 An uncaught Exception was encountered Type: Exce...
성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.