CodeIgniter Forums
CI4 in shared hosting - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forum-9.html)
+--- Thread: CI4 in shared hosting (/thread-76603.html)



CI4 in shared hosting - pippuccio76 - 06-01-2020

Hi , i upload an application in ci4 to a shared hosting in a subfolder  , when i try to access it i have this problem :


ErrorException

realpath(): open_basedir restriction in effect. File(/var/www/html) is not within the allowed path(s):

This is my url : http://eventisportivi1.altervista.org/codeigniter_4/public/


RE: CI4 in shared hosting - kelvo01 - 06-01-2020

in /codeigniter4/public/index.php add

$_SERVER["DOCUMENT_ROOT"] = "/membri/xxx/codeigniter4/public";

before: 
// Valid PHP Version?
$minPHPVersion = '7.2';


RE: CI4 in shared hosting - pippuccio76 - 06-01-2020

(06-01-2020, 04:27 AM)kelvo01 Wrote: in /codeigniter4/public/index.php add

$_SERVER["DOCUMENT_ROOT"] = "/membri/xxx/codeigniter4/public";

before: 
// Valid PHP Version?
$minPHPVersion = '7.2';

thank you work fine...