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 will not work in a NFS mounted filesystem #1722

Closed
anonymous-matomo-user opened this issue Sep 22, 2010 · 2 comments
Closed

Piwik will not work in a NFS mounted filesystem #1722

anonymous-matomo-user opened this issue Sep 22, 2010 · 2 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. Critical Indicates the severity of an issue is very critical and the issue has a very high priority. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Milestone

Comments

@anonymous-matomo-user
Copy link

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 :)

@robocoder
Copy link
Contributor

Please refer to Advanced Piwik Configuration.

Create a bootstrap.php file and define PIWIK_USER_PATH to be the pathname of a writeable directory where you have copied the config and tmp folders.

@mattab
Copy link
Member

mattab commented Nov 16, 2010

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" ?

Thanks

@anonymous-matomo-user anonymous-matomo-user added this to the Piwik 1.1 milestone Jul 8, 2014
@mattab mattab added the wontfix label Aug 3, 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. Critical Indicates the severity of an issue is very critical and the issue has a very high priority. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

3 participants