Some errors and solution notes encountered in the CI framework, ci framework

Source: Internet
Author: User
Tags php error

Some errors and solution notes encountered in the CI framework, ci framework
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 Session_files_driver.php is insufficient because sesssion_files is the file storing the session in this folder. However, each user access will dynamically generate the write, read, and execute session. Therefore, you only need to set the "read, write, and execute" permission.
Solution:Raise permissions (chmod 777)

2,
Warning: mkdir (): Permission denied in/usr/share/nginx/html/terminal_php/system/core/Log. php on line 122A 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. phpLine: 293 Function: require_once
Cause:Because the server (nginx, apache, or other servers) account does not have the permission to create files, you must modify the root directory of the website.
Solution:Increase server account permissions (chmod)

Related Article

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.