CodeIgniter Forums
Error when installing codeigniter in a servor online - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: Error when installing codeigniter in a servor online (/showthread.php?tid=66207)



Error when installing codeigniter in a servor online - mirindraulki - 09-20-2016

Hi everybody , i ' m new here and sorry for my english

I wish to install codeigniter in a servor online,i send all the files with fillezila and configure all the file like 
 
-config.php => base_url:'http://XXXXXXXXx.com/project

-database.php is already configured 

and autoload.php => $autoload['libraries'] = array('database', 'session');
                            =>$autoload['helper'] = array('url','cookie','form','string','number');

And other configuration like ENVIRONMENT is already to 'developpement'

I am in the installation and it show me error like this 

A PHP Error was encountered
Severity: Warning
Message: is_dir(): open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/XXXXXXXX.com/:/usr/lib/php/:/tmp:/var/www/html/dnpanel/Smile
Filename: drivers/Session_files_driver.php
Line Number: 116
Backtrace:
File: /var/www/vhosts/XXXXXXXX.com/subdomains/test/httpdocs/Project/index.php
Line: 315
Function: require_once



--------------------------------------------------------------------------------------------------------------------------
A PHP Error was encountered
Severity: Warning
Message: mkdir(): open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/www/vhosts/XXXXXXXX.com/:/usr/lib/php/:/tmp:/var/www/html/dnpanel/Smile
Filename: drivers/Session_files_driver.php
Line Number: 118
Backtrace:
File: /var/www/vhosts/XXXXXXXX.com/subdomains/test/httpdocs/Project/index.php
Line: 315
Function: require_once


Thank you for all


RE: Error when installing codeigniter in a servor online - Diederik - 09-21-2016

You are using file based sessions and have configured the sess_save_path to a path that is not allowed on your live server. Just update the config file to an existing and writable directory.


RE: Error when installing codeigniter in a servor online - mirindraulki - 09-21-2016

(09-21-2016, 02:40 AM)Diederik Wrote: You are using file based sessions and have configured the sess_save_path to a path that is not allowed on your live server. Just update the config file to an existing and writable directory.

Thank you very much for your help
it works,
i have not saw this sess_save_path,
thanko you very much,see you next time Diederik
thanks