Reputation: 1
Codeigniter HMVC application is working fine on Linux hosting and xampp local server but after uploading on Plesk windows hosting it's throwing error. I have tried everything to fix it but still got same error.
An uncaught Exception was encountered
Type: Exception
Message: Session: Configured save path 'C:\Windows\Temp' is not writable by the PHP process.
Filename: G:\PleskVhosts\rkingmart.com\httpdocs\system\libraries\Session\drivers\Session_files_driver.php
Line Number: 143
Backtrace:
File: G:\PleskVhosts\rkingmart.com\httpdocs\application\third_party\MX\Loader.php
Line: 173
Function: _ci_load_library
File: G:\PleskVhosts\rkingmart.com\httpdocs\application\third_party\MX\Loader.php
Line: 190
Function: library
File: G:\PleskVhosts\rkingmart.com\httpdocs\application\third_party\MX\Loader.php
Line: 153
Function: libraries
File: G:\PleskVhosts\rkingmart.com\httpdocs\application\third_party\MX\Loader.php
Line: 65
Function: initialize
File: G:\PleskVhosts\rkingmart.com\httpdocs\application\third_party\MX\Base.php
Line: 55
Function: __construct
File: G:\PleskVhosts\rkingmart.com\httpdocs\application\third_party\MX\Base.php
Line: 60
Function: __construct
File: G:\PleskVhosts\rkingmart.com\httpdocs\application\third_party\MX\Controller.php
Line: 4
Function: require
File: G:\PleskVhosts\rkingmart.com\httpdocs\application\third_party\MX\Modules.php
Line: 123
Function: include_once
File: G:\PleskVhosts\rkingmart.com\httpdocs\application\core\MY_Controller.php
Line: 3
Function: spl_autoload_call
File: G:\PleskVhosts\rkingmart.com\httpdocs\index.php
Line: 292
Function: require_once
How can I fix this problem?
Upvotes: 0
Views: 1659
Reputation: 1
finally, I got a solution. I have just replaced session configuration
application\config\config.php
$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;
to
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'pcfx_session_';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = APPPATH.'writable';
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;
Upvotes: 0