Codeigniter :A PHP Error was encountered

5.4k views Asked by At

Severity: Warning

Message: is_dir(): open_basedir restriction in effect. File(/var/lib/php/session) is not within the allowed path(s): (/var/zpanel/hostdata/ermansyah/public_html/gallericloud_com:/var/zpanel/temp/)

Filename: drivers/Session_files_driver.php

Line Number: 115

Backtrace:

File: /var/zpanel/hostdata/ermansyah/public_html/gallericloud_com/index.php Line: 292 Function: require_once

1

There are 1 answers

0
Richard On

The session path is not foundable by CodeIgniter. You can set another session path in the config of CodeIgniter:

$config['sess_save_path'] = "/var/www/app/sessions";

This folder should exist and be writeable for the PHP user. Otherwise, you can see the CodeIgniter Documentation for other session drivers.