The issue
I uploaded a zip file without public path with php version 8.0, and an error was displayed after opening the website.
Flarum encountered a boot error. Details have been logged to the Flarum log file.
The server is pre-installed with nginx, and I don't know how to change the PHP version.
Log
[2024-09-08 12:54:33] Flarum Installer.ERROR: Error: Interface "SessionHandlerInterface" not found in /home/container/webroot/vendor/illuminate/session/FileSessionHandler.php:10
Stack trace:
#0 /home/container/webroot/vendor/composer/ClassLoader.php(576): include()
#1 /home/container/webroot/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}()
#2 /home/container/webroot/vendor/illuminate/session/SessionManager.php(73): Composer\Autoload\ClassLoader->loadClass()
#3 /home/container/webroot/vendor/illuminate/session/SessionManager.php(61): Illuminate\Session\SessionManager->createNativeDriver()
#4 /home/container/webroot/vendor/illuminate/support/Manager.php(105): Illuminate\Session\SessionManager->createFileDriver()
#5 /home/container/webroot/vendor/illuminate/support/Manager.php(80): Illuminate\Support\Manager->createDriver()
#6 /home/container/webroot/vendor/flarum/core/src/User/SessionManager.php(33): Illuminate\Support\Manager->driver()
#7 /home/container/webroot/vendor/flarum/core/src/User/SessionServiceProvider.php(60): Flarum\User\SessionManager->handler()
#8 /home/container/webroot/vendor/illuminate/container/Container.php(873): Flarum\User\SessionServiceProvider->Flarum\User\{closure}()
#9 /home/container/webroot/vendor/illuminate/container/Container.php(758): Illuminate\Container\Container->build()
#10 /home/container/webroot/vendor/illuminate/container/Container.php(694): Illuminate\Container\Container->resolve()
#11 /home/container/webroot/vendor/illuminate/container/Container.php(1027): Illuminate\Container\Container->make()
#12 /home/container/webroot/vendor/illuminate/container/Container.php(947): Illuminate\Container\Container->resolveClass()
#13 /home/container/webroot/vendor/illuminate/container/Container.php(908): Illuminate\Container\Container->resolveDependencies()
#14 /home/container/webroot/vendor/illuminate/container/Container.php(758): Illuminate\Container\Container->build()
#15 /home/container/webroot/vendor/illuminate/container/Container.php(694): Illuminate\Container\Container->resolve()
#16 /home/container/webroot/vendor/flarum/core/src/Install/Installer.php(44): Illuminate\Container\Container->make()
#17 /home/container/webroot/vendor/flarum/core/src/Http/Server.php(59): Flarum\Install\Installer->getRequestHandler()
#18 /home/container/webroot/vendor/flarum/core/src/Http/Server.php(36): Flarum\Http\Server->safelyBootAndGetHandler()
#19 /home/container/webroot/index.php(26): Flarum\Http\Server->listen()
#20 {main}