From 294230f850a4bda020c206d2aa3322fef50e06e9 Mon Sep 17 00:00:00 2001 From: Olusesan Ameye Date: Sun, 23 Oct 2022 00:09:44 +0000 Subject: [PATCH] Use writable path for logs, cache and session --- www/application/config/config.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/application/config/config.php b/www/application/config/config.php index d47b01ec..d25a18ee 100644 --- a/www/application/config/config.php +++ b/www/application/config/config.php @@ -247,7 +247,7 @@ $config['log_threshold'] = 0; | application/logs/ directory. Use a full server path with trailing slash. | */ -$config['log_path'] = ''; +$config['log_path'] = APPPATH.'../writable/logs/'; /* |-------------------------------------------------------------------------- @@ -306,7 +306,7 @@ $config['error_views_path'] = ''; | application/cache/ directory. Use a full server path with trailing slash. | */ -$config['cache_path'] = ''; +$config['cache_path'] = APPPATH.'../writable/cache/'; /* |-------------------------------------------------------------------------- @@ -393,7 +393,7 @@ $config['encryption_key'] = ''; $config['sess_driver'] = 'files'; $config['sess_cookie_name'] = 'ci_session'; $config['sess_expiration'] = 7200; -$config['sess_save_path'] = NULL; +$config['sess_save_path'] = APPPATH.'../writable/session'; $config['sess_match_ip'] = FALSE; $config['sess_time_to_update'] = 300; $config['sess_regenerate_destroy'] = FALSE;