Search code examples
apache2centos7apache2.4zend-framework3php-7.2

Service with name "Zend\Authentication\AuthenticationService" could not be created. Reason: Session validation failed


I've developed a system using zend framework 3 and is working fine in my notebook, but when I try to run on a CentOS server it failed creating a session container.

Session error image

Session error image 2

I already compilated selinux modules, so it's OK

Somebody knows how to fix it?

Notebook configuration

  • Linux Mint 18.2

  • Apache

Server version: Apache/2.4.18 (Ubuntu)

Server built: 2018-06-07T19:43:03

  • Php

PHP 7.2.10-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Oct 1 2018 11:45:50) ( NTS )

Copyright (c) 1997-2018 The PHP Group

Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.2.10-1+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies

  • Php info

https://drive.google.com/open?id=1ZnmxugSDbtBvZFEBDj7SudxLNaQkl3WU

Server configuration (CentOS)

  • Red Hat Enterprise Linux Server 7.5 (Maipo)

  • Apache

Server version: Apache/2.4.6 (Red Hat Enterprise Linux)

Server built: May 28 2018 16:19:32

  • Php info

https://drive.google.com/open?id=1DUrc2tEfxOpkGyT0mGv59jlVWOQhKcA9

EDIT

I've found the problem. In my global.php I've config my session_manager with the validator RemoteAddr, when I removed it,it worked fine.

Does anyone know why did that happen?


Solution

  • Thinking about it, it may be blocking my connection to remote database, that's the only difference