CodeIgniter Forums

Full Version: mkdir() No such file or directory Session_files_driver.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I have recently updated from CI 3.x to 3.0.4.
But I am getting "mkdir()  No such file or directory" error on Live server
and working fine on localhost.

Here is my URL : http://demo.bkfoundation.co.in
Help me out.
Thanks.
Have you set the $config['sess_save_path'] to a folder that your app has write permissions for?
http://www.codeigniter.com/user_guide/li...les-driver
(02-17-2016, 12:30 AM)ciadmin Wrote: [ -> ]Have you set the $config['sess_save_path'] to a folder that your app has write permissions for?
http://www.codeigniter.com/user_guide/li...les-driver

I did'nt do it.
(02-17-2016, 12:30 AM)ciadmin Wrote: [ -> ]Have you set the $config['sess_save_path'] to a folder that your app has write permissions for?
http://www.codeigniter.com/user_guide/li...les-driver

$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = NULL;
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;
Did you try this ?

Code:
mkdir /<path to your application directory>/sessions/
chmod 0700 /<path to your application directory>/sessions/
chown www-data /<path to your application directory>/sessions/

do you have a folder called "sessions" in the "application" folder ? if no, you need to create it