: 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.