Home  >  Article  >  Backend Development  >  Some errors and solutions encountered in the CI framework Notes

Some errors and solutions encountered in the CI framework Notes

WBOY
WBOYOriginal
2016-07-29 09:01:271598browse
ps: Continuously modified and updated based on experience, welcome to point out errors~


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

Reason: The permission to access the Session_files_driver.php file is not enough, because the session_files folder is the file that stores the session. However, every time the user accesses, the writing, reading and execution of the dynamically generated session will be performed. Therefore, as long as Just set the "read, write, and execute" permissions.
Solution: Increase permissions (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


Cause: Because the server (nginx or apache or other server) account does not have permission to create files, because the permissions to modify the website root directory must be changed
Solution: Increase the server account Permissions (chmod)

The above introduces some errors and solution notes encountered in the CI framework, including relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn