Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Piwik_Session->start() doesn't work correctly under Debian or Ubuntu #2112

Closed
anonymous-matomo-user opened this issue Feb 25, 2011 · 1 comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.
Milestone

Comments

@anonymous-matomo-user
Copy link

The following code never works under Debian because session_path (/var/lib/php5/) is writeable by PHP but not readable for security reasons (chmod drwx-wx-wt):

if(ini_get('safe_mode') || ini_get('open_basedir') || empty($sessionPath) || !@is_readable($sessionPath) || !@is_writable($sessionPath))

Hence, all sessions files go to tmp/sessions which fails to work on a load balanced architecture.

@robocoder
Copy link
Contributor

On a load balanced architecture, you can't use session.save_handler = files (i.e., local session files) This is the default Debian/Ubuntu configuration.

You'll have to set-up a memcached server and configure the session.* settings manually, e.g.,

session.save_handler = memcached
session.save_path = hostname:port, hostname:port, ...

@anonymous-matomo-user anonymous-matomo-user added this to the Piwik 1.2 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

3 participants