Issue with sessions

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
vityav
Posts: 1
Joined: Fri Feb 03, 2017 2:53 am

Issue with sessions

Post by vityav »

Hello,
I've installed cacti on arch linux following these instructions: https://wiki.archlinux.org/index.php/Cacti

I get all the way to the initial login page, but attempting to login as admin/admin doesn't work. No red text like with a bad login, and logs say I'm successfully authenticated, it just refreshes the login page. I saw on here how it's likely a problem with sessions, which my server logs seem to support, but I do have sessions enabled and passing some basic tests. The specific error I get in apache:

Code: Select all

[Fri Feb 03 02:31:16.719121 2017] [php7:warn] [pid 2519] [client 127.0.0.1:42492] PHP Warning:  session_start(): Failed to read session data: user (path: /tmp) in /usr/share/webapps/cacti/include/global.php on line 253, referer: http://127.0.0.1/cacti/index.php
But /tmp is definitely world read/write/executable, and running these two tests for sessions and cookies inside the cacti directory both come back saying they're supported:
https://dodona.wordpress.com/2008/08/26 ... -sessions/
https://stackoverflow.com/questions/666 ... re-enabled

Does anyone here have any insight as to what session_start might be doing differently for cacti, or what the "session data: user" might alude to that I can check?

System Info:
Arch Linux 4.8.12
Cacti version: 1.0.0
Apache 2.4.25
PHP 7.1.1
MariaDB 15.1

Thanks
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Issue with sessions

Post by Osiris »

PHP 7.1 is not supported. There was a major change in session handling in php7.1 that has not been addressed in Cacti.
Before history, there was a paradise, now dust.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests