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

Error after installation - SAFE MODE Restriction in effect. #5633

Closed
anonymous-matomo-user opened this issue May 8, 2008 · 2 comments
Closed
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. 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 folks,

I did not find a corresponding ticket, so I opened a new one. After installing Piwik without error messages I switched to the login page and got the following:

```
Warning: realpath() [function.realpath]: SAFE MODE Restriction in effect. The script whose uid is 577776 is not allowed to access /tmp owned by uid 0 in /SOME/FOLDERS/ARE/DISPLAYED/HERE/piwik/modules/Piwik.php on line 59

Backtrace —>

  1. Piwik_ErrorHandler(2, realpath() [function.realpath]: SAFE MODE Restriction in effect. The script whose uid is 577776 is not allowed to access /tmp owned by uid 0, /SOME/FOLDERS/ARE/DISPLAYED/HERE/piwik/modules/Piwik.php, 59, Array ([path] => /tmp/templates_c,[mode] => 493,[denyAccess] => 1))
  2. realpath(/tmp) called at [/SOME/FOLDERS/ARE/DISPLAYED/HERE/piwik/modules/Piwik.php:59]
  3. Piwik::mkdir(tmp/templates_c) called at [/SOME/FOLDERS/ARE/DISPLAYED/HERE/piwik/modules/Piwik.php:959]
  4. Piwik::install() called at [/SOMEFOLDERS/ARE/DISPLAYED/HERE/piwik/modules/FrontController.php:323]
  5. Piwik_FrontController→init() called at [/SOME/FOLDERS/ARE/DISPLAYED/HERE/piwik/index.php:51]

```

Any hints / ideas?

Thanks!

@anonymous-matomo-user
Copy link
Author

I can’t reproduce the error yet. Can please post the values of the following php configuration parameters safe_mode, safe_mode_exec_dir, safe_mode_gid and safe_mode_include_dir? You can find the values, when you create an php-file with just “<?php phpinfo(); ?>” in it and open it in your browser.

@mattab
Copy link
Member

mattab commented Jul 27, 2008

Piwik is not compatible with SAFE_MODE.
If you want it to be, please send a patch :)

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. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical. 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

2 participants