Welcome Guest, Not a member yet? Register   Sign In
Error when installing codeigniter in a servor online
#1

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

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

(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
Reply




Theme © iAndrew 2016 - Forum software by © MyBB