Session initialization failure.

Post Reply
c4rl
Jr. Bludit
Posts: 1
Joined: Mon Mar 04, 2019 10:18 pm

Hi

Just to share my workaround with the community.

I have created a bludit docker image using the official centos image.

Everything seems to be ok until I started the container and tried to browser the bludit admin interface. At this time I received the message below:

"Bludit CMS. Session initialization failure."


The apache has logged:

Code: Select all

PHP Warning:  session_start(): open(/var/lib/php/session/sess_id5fbtj1dijofp0r8hfjg36dno, O_RDWR) failed: Permission denied (13) in /srv/example.com/bludit/bl-kernel/helpers/session.class.php on line 34, referer: http://www.example.com/
To fix that I set permissions to apache user to write on /var/lib/php/sessions.
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Thank you for sharing!
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
diego
Site Admin
Posts: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

Hi,
You can use the official Bludit docker image.

https://hub.docker.com/u/bludit

Take a look to some documentation
https://varlogdiego.com/running-bludit-in-a-docker

Regards
Post Reply