Codeigniter message mkdir

Bertemu lagi dengan masalah :p
Masalah yang saya temui di Codeigniter 3.0, namun masalah ini tidak hanya di versi 3.x saja mungkin di versi sebelumnya juga ada.

Konsidi masalah :
Webserver : Nginx
Php : PHP 5.6
FrameWork : Codeigniter 3.

masalah yang muncul ada 3 tapi cara mengatasinya hanya dalam 1 baris code, sebelumnya lihat kode errornya ada dibawah ini :


A PHP Error was encounteredSeverity: WarningMessage: mkdir(): Invalid pathFilename: drivers/Session_files_driver.phpLine Number: 117Backtrace:File: /usr/share/nginx/html/ci/index.phpLine: 292Function: require_once

An uncaught Exception was encounteredType: ExceptionMessage: Session: Configured save path '' is not a directory, doesn't exist or cannot be created.Filename: /usr/share/nginx/html/ci/system/libraries/Session/drivers/Session_files_driver.phpLine Number: 119Backtrace:File: /usr/share/nginx/html/ci/index.phpLine: 292Function: require_once

A PHP Error was encounteredSeverity: WarningMessage: fopen(ea936f6cca00382143f867cea8043f45d9b818c2): failed to open stream: Permission deniedFilename: drivers/Session_files_driver.phpLine Number: 156Backtrace:


Cara mengatasinya :
1. Buka file config.php dalam direktori Codeigniter 
2. Temukan kode berikut :


$config['sess_save_path'] = NULL

3. Ganti menjadi :


$config['sess_save_path'] = sys_get_temp_dir();
Codeigniter message mkdir Codeigniter message mkdir Reviewed by Unknown on October 23, 2017 Rating: 5

No comments:

Powered by Blogger.