Brand new installation

I have searched and not found this question. Please point me to it if it’s been asked.

I am stuck on the first page of the installation process.

Piwik couldn't write to some directories.

Try to Execute the following commands on your server, to allow Write access on these directories:

chown -R www-data:www-data /var/www/html/piwik
chmod -R 0755 /var/www/html/piwik/tmp
chmod -R 0755 /var/www/html/piwik/tmp/templates_c/
chmod -R 0755 /var/www/html/piwik/tmp/cache/
chmod -R 0755 /var/www/html/piwik/tmp/assets/
chmod -R 0755 /var/www/html/piwik/tmp/tcpdf/
If this doesn't work, you can try to create the directories with your FTP software, and set the CHMOD to 0755 (or 0777 if 0755 is not enough). To do so with your FTP software, right click on the directories then click permissions.

  • I don’t have a www-data user, so I have tried root and my own user.
  • There are no files in /tmp/. I am wondering if the latest release is incomplete or something b/c there is just nothing there.

Please advise.


give write permissions to piwik/tmp folder to your web user

Unless I don’t understand who the web user is, this doesn’t seem to be working for me.

The FAQ text assumes that you have an apache server with a runtime user “www-data”. That’s a common configuration for several linux distribution.

Try this in a shell:
ps -ef | grep httpd

If this doesn’t return any lines, try:
ps -ef | grep apache

You should see something like this:
XXXXX 30137 3325 0 09:42 ? 00:00:00 /usr/sbin/httpd
^^^^^^^ This is the user.

Now, use this command:
chown -R XXXXX:XXXXX /var/www/html/piwik


Got it. I was in fact using the wrong user/group for /piwik. Thanks for the help!

I have installed Piwik on my site just following an installation instructions. Here is the snippet:

I hope I configured it correctly. However dashboard doesn’t register any visitors. Would you, please, advise what is wrong.
Thank you.


In general: Please don’t hijack threads, open your own thread. That said, your tracking code is wrong.

It generates a call to the following url that obviously doesn’t work:

And this line produces a javascript error:
var piwikTracker = Piwik.getTracker(pkBaseURL + “piwik.php”,;

I recommend that you copy the tracking code again without editing it from the piwik settings page. If you want to fix it replace these lines:

var pkBaseURL = ((“https:” == document.location.protocol) ? “” : “”);

var piwikTracker = Piwik.getTracker(pkBaseURL + “piwik.php”, 3);


My apologies - I don’t have any experience of using forums.
Regarding your comments:
At the beginning it was exactly how you suggested with 0 results. I changed it to your recommended code - still no visitors are being registered. Can be something else wrong?

Should work now.
I went to your site and you should see at least one hit now in piwik dashboard.

Either you have a problem in backend now (check apache logfile) or it might be a problem with your browser. I, for example, usually have plugins enabled that block tracking.

Please try to test it with different browsers, IE/FF/Chrome ideally without plugins enabled.

Thank you very, very much. I will follow your suggestions. Right now I’m on Safary and will check that feature.


I just checked the dashboard and don’t see any hits - is the issue there?

The browser code seems to be ok now.
You need to check the server logs if there is a problem there.

Please also compare the tracking code in the site with the tracking code piwik gave you. Maybe the site id is wrong or something? You have apparently at least three different sites you track.

Thank you for help.
Here is site tracking code I was using last week and which was corrected per your suggestions:

“Server Log” - would you, please, advise how to do it and where is it?

I’m tracking just single site - “” - nothing else (at the moment).
Thank you again,

When I’m trying to access dashboard there are errors (see file attached) however I’m logging in without problems.
I hope it may help to resolve this issue.


I get this error when i try to install the app.
Please help

exec() [function.exec]: Unable to fork [df -T -t nfs “D:\hshome\doundo\\analytics\piwik/tmp/sessions” 2>&1]
in ‘D:\hshome\doundo\\analytics\piwik\core\Piwik.php’ at the line 2748

#0 Piwik_ErrorHandler(…) called at [:]
#1 exec(…) called at [D:\hshome\doundo\\analytics\piwik\core\Piwik.php:2748]
#2 Piwik::checkIfFileSystemIsNFS(…) called at [D:\hshome\doundo\\analytics\piwik\plugins\Installation\Controller.php:875]
#3 Piwik_Installation_Controller::getSystemInformation(…) called at [D:\hshome\doundo\\analytics\piwik\plugins\Installation\Controller.php:946]
#4 Piwik_Installation_Controller->setupSystemCheckView(…) called at [D:\hshome\doundo\\analytics\piwik\plugins\Installation\Controller.php:107]
#5 Piwik_Installation_Controller->systemCheck(…) called at [D:\hshome\doundo\\analytics\piwik\plugins\Installation\Installation.php:77]
#6 Piwik_Installation->dispatch(…) called at [:]
#7 call_user_func_array(…) called at [D:\hshome\doundo\\analytics\piwik\libs\Event\Dispatcher.php:213]
#8 Event_Dispatcher->addObserver(…) called at [D:\hshome\doundo\\analytics\piwik\core\PluginsManager.php:545]
#9 Piwik_PluginsManager->addPluginObservers(…) called at [D:\hshome\doundo\\analytics\piwik\core\PluginsManager.php:407]
#10 Piwik_PluginsManager->reloadPlugins(…) called at [D:\hshome\doundo\\analytics\piwik\core\PluginsManager.php:290]
#11 Piwik_PluginsManager->loadPlugins(…) called at [D:\hshome\doundo\\analytics\piwik\core\FrontController.php:267]
#12 Piwik_FrontController->init(…) called at [D:\hshome\doundo\\analytics\piwik\index.php:52]

Hi I found a way around this in my IIS 6.0 install on 2003 R2.

The IIS user needs read and execute access to cmd.exe. There must be some task using command to copy/setup.