Kukuh Setiawan. Theme images by centauria. Powered by Blogger.

Thursday, January 5, 2017

Website Codeigniter 3 Error Saat Di Hosting


Pernah menjumpai error seperti ini saat mengonline website di hosting ?
A PHP Error was encountered Severity: Warning Message: mkdir(): Invalid path Filename: drivers/Session_files_driver.php Line Number: 117 Backtrace: File: /Library/Server/Web/Data/Sites/garden_worx/index.php Line: 292 Function: require_once

Padahal di localhost fine-fine aja tuh, kok bisa ya? terutama pada website yang dibangun menggunakan codeigniter 3.

To the point aja, solusinya tinggal edit aja config.php yang bagian berikut :

$config['sess_driver'] = 'files'; 
$config['sess_cookie_name'] = 'ci_session'; $config['sess_expiration'] = 1440; 
$config['sess_save_path'] = FCPATH . 'application/cache/sessions/'; 
$config['sess_match_ip'] = TRUE; 
$config['sess_time_to_update'] = 300; 
$config['sess_regenerate_destroy'] = TRUE;

No comments:
Write comments


Label 2


Contact Us


Email *

Message *