Welcome Guest, Not a member yet? Register   Sign In
Manual Install
#5

(This post was last modified: 04-12-2020, 08:40 PM by John_Betong.)

I prefer not to use the .env file. Without the leading period the env file settings are inactive.

Also as a temporary override I use the following:
File: index.php
Code:
<?php // declare(strict_types=1); // unfortunately CI4 fails validation

// Bypass htaccess setting of CI_ENVIRONMENT
// $_SERVER['CI_ENVIRONMENT'] = 'production';  // bypass .env & .htaccess
   $_SERVER['CI_ENVIRONMENT'] = 'development'; // bypass .env & .htaccess

// bypass (bool) app/Config/boot/development.php
   define('CI_DEBUG',  FALSE);
   error_reporting(-1); // regardless
   ini_set('display_errors', '1');

// disable Klint and prevent overriding page layout
// require '../system/ThirdParty/Kint/kint.php';
   $useKint =  FALSE;

  // remaining index.php content goes here
   $useKint =  FALSE;

and as @includebeer mentioned:
Don't forget to check the log files in the “writable” folder.
Reply


Messages In This Thread
Manual Install - by Cecilio - 04-11-2020, 10:05 AM
RE: Manual Install - by John_Betong - 04-11-2020, 06:17 PM
RE: Manual Install - by Cecilio - 04-12-2020, 09:46 AM
RE: Manual Install - by includebeer - 04-12-2020, 06:26 PM
RE: Manual Install - by John_Betong - 04-12-2020, 08:31 PM
RE: Manual Install - by includebeer - 04-13-2020, 04:36 AM
RE: Manual Install - by John_Betong - 04-13-2020, 09:01 PM
RE: Manual Install - by includebeer - 04-14-2020, 04:24 AM
RE: Manual Install - by John_Betong - 04-14-2020, 08:31 PM
RE: Manual Install - by FlavioSuar - 04-14-2020, 06:50 AM
RE: Manual Install - by includebeer - 04-14-2020, 06:57 AM
RE: Manual Install - by FlavioSuar - 04-14-2020, 09:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB