You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BugFor errors / faults / flaws / inconsistencies etc.CriticalIndicates the severity of an issue is very critical and the issue has a very high priority.wontfixIf you can reproduce this issue, please reopen the issue or create a new one describing it.
We are on Amazon, with a NFS mounted filesystem as document root for Apache.
For example, the DOCUMENT_ROOT for Apache is /var/www/ but FILE
line 54 of core/Session.php
$sessionPath = PIWIK_USER_PATH . '/tmp/sessions';
You defined PIWIK_USER_PATH first time here:
define('PIWIK_USER_PATH', PIWIK_DOCUMENT_ROOT);
and PIWIK_DOCUMENT_ROOT is dirname(FILE)
dirname(FILE) is in our case the REAL physical path of dir, for example /nfs_mounted/var/www, and because we have restricted some permissions when mounting it, the session path is defined to write in a directory that is not writable.
Suggestion:
To set $sessionPath in this way (that would be happy for everyone :)
digiversia, if you managed to succeed creating a bootstrap file, would you mind contributing it back here with description of your use case, and we can add it to the wiki page as an "example" ?
BugFor errors / faults / flaws / inconsistencies etc.CriticalIndicates the severity of an issue is very critical and the issue has a very high priority.wontfixIf you can reproduce this issue, please reopen the issue or create a new one describing it.
Hi:
We are on Amazon, with a NFS mounted filesystem as document root for Apache.
For example, the DOCUMENT_ROOT for Apache is /var/www/ but FILE
line 54 of core/Session.php
$sessionPath = PIWIK_USER_PATH . '/tmp/sessions';
You defined PIWIK_USER_PATH first time here:
define('PIWIK_USER_PATH', PIWIK_DOCUMENT_ROOT);
and PIWIK_DOCUMENT_ROOT is dirname(FILE)
dirname(FILE) is in our case the REAL physical path of dir, for example /nfs_mounted/var/www, and because we have restricted some permissions when mounting it, the session path is defined to write in a directory that is not writable.
Suggestion:
To set $sessionPath in this way (that would be happy for everyone :)
$sessionPath = $_SERVER["DOCUMENT_ROOT"] . PATH_FOR_PIWIK_INSTALATION . '/tmp/sessions';
(PATH_FOR_PIWIK_INSTALATION is invented right now, I do not know the variable that might have this :)
The text was updated successfully, but these errors were encountered: