PHP Fatal error: Interface 'SessionHandlerInterface' not found in

[email protected] Tue, 2 Oct 2018 22:58:47 +0200
Newsgroups gmane.comp.php.install
Message-ID <trinity-ffde872b-fbf2-46c1-bdb1-12e2d829a82b-1538513927059@3c-app-webde-bap37>
<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi,</div>

<div>I want to install an app (Bookstack: https://github.com/BookStackApp/BookStack) that reports an error in step &quot;php artisan migrate&quot;.</div>

<div>&nbsp;</div>

<div>The error message is:</div>

<div>
<div><span style="font-family:Courier New,Courier,monospace;">PHP Fatal error: &nbsp;Interface &#39;SessionHandlerInterface&#39; not found in /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Session/FileSessionHandler.php on line 10</span></div>

<div><br/>
<span style="font-family:Courier New,Courier,monospace;">&nbsp; [Symfony&#92;Component&#92;Debug&#92;Exception&#92;FatalErrorException]<br/>
&nbsp; Interface &#39;SessionHandlerInterface&#39; not found</span><br/>
&nbsp;</div>

<div>The relevant coding in this php-file is:</div>

<div>
<div><span style="font-family:Courier New,Courier,monospace;">&lt;?php</span></div>

<div><span style="font-family:Courier New,Courier,monospace;">namespace Illuminate&#92;Session;</span></div>

<div><span style="font-family:Courier New,Courier,monospace;">use SessionHandlerInterface;<br/>
use Illuminate&#92;Support&#92;Carbon;<br/>
use Symfony&#92;Component&#92;Finder&#92;Finder;<br/>
use Illuminate&#92;Filesystem&#92;Filesystem;</span></div>

<div><span style="font-family:Courier New,Courier,monospace;">class FileSessionHandler implements SessionHandlerInterface<br/>
{<br/>
&nbsp; &nbsp; /**<br/>
&nbsp; &nbsp; &nbsp;* The filesystem instance.<br/>
&nbsp; &nbsp; &nbsp;*<br/>
&nbsp; &nbsp; &nbsp;* @var &#92;Illuminate&#92;Filesystem&#92;Filesystem<br/>
&nbsp; &nbsp; &nbsp;*/<br/>
&nbsp; &nbsp; protected &#36;files;</span></div>

<div>&nbsp;</div>

<div>This issue only occurs on Alpine Linux 3.8 with php 7.2.10:</div>

<div><span style="font-family:Courier New,Courier,monospace;">ct113-devwiki:/var/www/bookstack# php -v<br/>
PHP 7.2.10 (cli) (built: Oct &nbsp;1 2018 20:12:12) ( NTS )<br/>
Copyright (c) 1997-2018 The PHP Group<br/>
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies<br/>
&nbsp; &nbsp; with Zend OPcache v7.2.10, Copyright (c) 1999-2018, by Zend Technologies</span><br/>
&nbsp;</div>

<div>I assume some module or directive is missing.</div>

<div>&nbsp;</div>

<div>Can you please advice how to trouble shoot this issue?</div>

<div>&nbsp;</div>

<div>THX</div>
</div>
</div></div></body></html>