I created a new Laravel 5.2 project and got stuck with the error:
local.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: Interface 'SessionHandlerInterface' not found in /pathto/theproject/vendor/laravel/framework/src/Illuminate/Session/FileSessionHandler.php:10
It is running on a freebsd-10.3 server with ngingx-1.10 and PHP 7.
The .env file contains:
APP_ENV=local
APP_DEBUG=true
APP_KEY=secret-key
APP_URL=http://localhost
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=secret-dbname
DB_USERNAME=secret-uname
DB_PASSWORD=secret
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=sendmail
All other files are untouched. What did I wrong?
PS: a new project with Laravel 5.1.33 works.
The solution to the problem:
# pkg install php70-session
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With