diff --git a/kernel/classes/ezscript.php b/kernel/classes/ezscript.php
index <HASH>..<HASH> 100644
--- a/kernel/classes/ezscript.php
+++ b/kernel/classes/ezscript.php
@@ -240,6 +240,10 @@ class eZScript
             // Extension check end
         }
 
+        // Now that all extensions are activated and siteaccess has been changed, reset
+        // all eZINI instances as they may not take into account siteaccess specific settings.
+        eZINI::resetAllInstances( false );
+
         // Set the global setting which is read by the session lib
         $GLOBALS['eZSiteBasics']['session-required'] = $this->UseSession;
Fixed #<I>: file.ini settings cannot be made in extensions if using a CLI script