Notes on some errors and solutions encountered in the CI framework

Source: Internet
Author: User
: This article mainly introduces some errors and solution notes in the CI framework. if you are interested in the PHP Tutorial, please refer to them. Ps: continuously modify and update based on experience. You are welcome to point out an error ~


1,
An uncaught Exception was encounteredType: 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

Cause: The permission to access the Session_files_driver.php file is insufficient, because sesssion_files in this folder stores the session files. However, each user access will dynamically generate the write, read, and execute sessions. therefore, you only need to set the "read, write, and execute" permission.
Solution: raise the permission (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, apache, or other servers) account does not have the permission to create files, you must grant the permission to modify the root directory of the website.
Solution: improve the server account permissions (chmod)

The above introduces some errors and solution notes in the CI framework, including some content, and hope to help those who are interested in PHP tutorials.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.