Welcome Guest, Not a member yet? Register   Sign In
mkdir() No such file or directory Session_files_driver.php
#1

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.

Attached Files Thumbnail(s)
   
Web Developer
Reply
#2

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
Reply
#3

(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.
Web Developer
Reply
#4

(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;
Web Developer
Reply
#5

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
Reply




Theme © iAndrew 2016 - Forum software by © MyBB