Today I successfully installed my first October CMS project locally via composer / command line. The installation was pretty straightforward and worked surprisingly well on my Alpine Linux docker container which includes NGINX, PHP-FPM and MariaDB.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
October.Demo - v1.0.1: First version of Demo Seeded System Seeded Backend .=========================================. ,@@@@@@@, ,,,. ,@@@@@@/@@, .oo8888o. ,&%%&%&&%,@@@@@/@@@@@@,8888\88/8o ,%&\%&&%&&%,@@@\@@@/@@@88\88888/88' %&&%&%&/%&&%@@\@@/ /@@@88888\88888' %&&%/ %&%%&&@@\ V /@@' `88\8 `/88' `&%\ ` /%&' |.| \ '|8' |o| | | | | |.| | | | | `========= INSTALLATION COMPLETE =========' |
However, when I tried to open the front-end I got the following error.
1 |
PHP message: PHP Fatal error: Interface 'SessionHandlerInterface' not found in /var/www/src/vendor/laravel/framework/src/Illuminate/Session/FileSessionHandler.php on line 10 |
After a quick research I found the solution on Stackoverflow. I basically forgot to install the PHP extension php7-session inside my docker container. I manually installed the missing extension, but also updated my Dockerfile in case I have to rebuild my container.
1 2 3 4 5 |
bash-4.4# apk add php7-session fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz (1/1) Installing php7-session (7.1.33-r0) OK: 291 MiB in 87 packages |
After that I manually killed all PHP processes to make sure php-fpm loads the new extension with the next page reload.
1 |
pkill php |
Thank you