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)