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
lucanos opened this issue
Apr 28, 2008
· 6 comments
Labels
BugFor errors / faults / flaws / inconsistencies etc.MajorIndicates the severity or impact or benefit of an issue is much higher than normal but not critical.
I am getting the same message after installing on Windows Server 2003 R2 with Apache 2.2 and PHP 5.2.5.
There are NO directories displayed whose protection should be modified!
is there a list of directories and files which piwik is trying to create/read/update/delet?
Alright, having taken "freedimension"s advice, and chmodding the whole Piwik directory to 777 – NOTRECOMMENDED IN THEWILD, I now have a list of folders which Piwik wants to write to.
(In 467) – fix #5622 it seems this fix does the trick or suggesting the right directories at installation. Please apply the diff and report any problem.
I’ve made some search about why it doesn’t work. Here it is.
Piwik doesn’t have the right to create directories inside it’s installation dir. So Piwik::mkdir (in modules/Piwik.php:101) doesn’t create any directory.
Then, line 104,
```
$directory = realpath($directoryToCheck);
```
realpath return false since the directory doesn’t exists, as the PHP doc say:
realpath() returns FALSE on failure, e.g. if the file does not exist.
``
`
$directory
is now false. So when trying to set true or false in the $resultCheck array, thing like
``````
BugFor errors / faults / flaws / inconsistencies etc.MajorIndicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Installed v0.1.5 on SunFire V240 running Solaris 10, Apache v2.2.6, MySQL v5.0.45 (Standard) & PHP v5.2.4 .
Initial visit returns message:
```
Piwik couldn’t write to some directories.
Try to Execute the following commands on your Linux server:
chmod 777 /var/www/html/tools/piwik/config
If this doesn’t work, you can try to create the directories with your FTP …
```
Directory Listing within /var/www/html/tools/piwik/:
```
minerva:/var/www/html/tools/piwik# ls
lash-r— 1 501 webservd 42 Mar 15 08:55 LICENSEtotal 52
2 drwxr-sr-x 10 root root 512 Apr 23 14:02 .
2 drwxr-xr-x 5 501 webservd 512 Apr 28 08:26 ..
2 drwxr-sr-x 2 501 webservd 512 Apr 23 14:01 config
4 -rwxr-xr-x 1 501 webservd 1.5K Apr 2 07:05 index.php
2 drwxr-sr-x 2 501 webservd 512 Apr 23 14:01 lang
2 drwxr-sr-x 12 501 webservd 512 Apr 23 14:02 libs
2 -rw-r
2 drwxr-sr-x 5 501 webservd 1.0K Apr 23 14:01 misc
2 drwxr-sr-x 13 501 webservd 1.0K Apr 23 14:01 modules
14
rw-r-r— 1 501 webservd 6.9K Mar 28 23:42 piwik.js6
rw-r-r— 1 501 webservd 2.1K Apr 11 23:38 piwik.php2 drwxr-sr-x 23 501 webservd 512 Apr 23 14:01 plugins
4
rw-r-r— 1 501 webservd 1.2K Jan 14 15:40 README2 drwxr-sr-x 4 501 webservd 512 Apr 23 14:01 tests
2 drwxr-sr-x 3 501 webservd 512 Apr 23 14:01 themes
2
rw-r-r— 1 501 webservd 806 Mar 28 12:12 TODO```
Executed CHMOD as per instructions:
```
…
2 drwxrwsrwx 2 501 webservd 512 Apr 23 14:01 config
…
```
Refreshed webpage:
```
Piwik couldn’t write to some directories.
Try to Execute the following commands on your Linux server:
If this doesn’t work, you can try to create the directories with your FTP …
```
(NOTE: Line which detailed suggested CHMOD command now absent. All other details identical.)
I have also retested after removing the “Sticky” permission from the Group set, but with same results.
Keywords: install chmod config
The text was updated successfully, but these errors were encountered: