I migrated my forum from fedora linux to alpine linux,
same libs nginx, mariadb, php 8.1
steps i followed:
- restore database
- restore flarum folder from old server
- restore nginx configs
- fix permissions
- run server, php, mariadb
got this error:
PHP Fatal error: Uncaught Error: Interface "SessionHandlerInterface" not found in /home/www/flarum/vendor/illuminate/session/FileSessionHandler.php:10
Stack trace:
#0 /home/www/flarum/vendor/composer/ClassLoader.php(582): include()
#1 /home/www/flarum/vendor/composer/ClassLoader.php(433): Composer\Autoload\{closure}()
#2 /home/www/flarum/vendor/illuminate/session/SessionManager.php(73): Composer\Autoload\ClassLoader->loadClass()
#3 /home/www/flarum/vendor/illuminate/session/SessionManager.php(61): Illuminate\Session\SessionManager->createNativeDriver()
#4 /home/www/flarum/vendor/illuminate/support/Manager.php(105): Illuminate\Session\SessionManager->createFileDriver()
#5 /home/www/flarum/vendor/illuminate/support/Manager.php(80): Illuminate\Support\Manager->createDriver()
#6 /home/www/flarum/vendor/flarum/core/src/User/SessionManager.php(33): Illuminate\Support\Manager->driver()
#7 /home/www/flarum/vendor/flarum/core/src/User/SessionServiceProvider.php(60): Flarum\User\SessionManager->handler()
#8 /home/www/flarum/vendor/illuminate/container/Container.php(873): Flarum\User\SessionServiceProvider->Flarum\User\{closure}()
#9 /home/www/flarum/vendor/illuminate/container/Container.php(758): Illuminate\Container\Container->build()
#10 /home/www/flarum/vendor/illuminate/container/Container.php(694): Illuminate\Container\Container->resolve()
#11 /home/www/flarum/vendor/illuminate/container/Container.php(1027): Illuminate\Container\Container->make()
#12 /home/www/flarum/vendor/illuminate/container/Container.php(947): Illuminate\Container\Container->resolveClass()
#13 /home/www/flarum/vendor/illuminate/container/Container.php(908): Illuminate\Container\Container->resolveDependencies()
#14 /home/www/flarum/vendor/illuminate/container/Container.php(758): Illuminate\Container\Container->build()
#15 /home/www/flarum/vendor/illuminate/container/Container.php(694): Illuminate\Container\Container->resolve()
#16 /home/www/flarum/vendor/illuminate/container/Container.php(1027): Illuminate\Container\Container->make()
#17 /home/www/flarum/vendor/illuminate/container/Container.php(947): Illuminate\Container\Container->resolveClass()
#18 /home/www/flarum/vendor/illuminate/container/Container.php(908): Illuminate\Container\Container->resolveDependencies()
#19 /home/www/flarum/vendor/illuminate/container/Container.php(758): Illuminate\Container\Container->build()
#20 /home/www/flarum/vendor/illuminate/container/Container.php(694): Illuminate\Container\Container->resolve()
#21 /home/www/flarum/vendor/flarum/core/src/Foundation/InstalledApp.php(112): Illuminate\Container\Container->make()
#22 [internal function]: Flarum\Foundation\InstalledApp->Flarum\Foundation\{closure}()
#23 /home/www/flarum/vendor/flarum/core/src/Foundation/InstalledApp.php(119): array_map()
#24 /home/www/flarum/vendor/flarum/core/src/Console/Server.php(36): Flarum\Foundation\InstalledApp->getConsoleCommands()
#25 /home/www/flarum/flarum(24): Flarum\Console\Server->listen()
#26 {main}
thrown in /home/www/flarum/vendor/illuminate/session/FileSessionHandler.php on line 10