• I am trying to set the correct Piwik path (PHP API) in the settings. It keeps telling me the path was invalid. The wordpress is at /var/www/vhosts/wordpress.domain/httpdocs/. I tried to enter:
    * /var/www/vhosts/piwik.domain/httpdocs/piwik.php
    * /var/www/vhosts/piwik.domain/httpdocs/
    as well as relative paths. I even tried to symlink and to mount the Piwik directory into a subdirectory of the wordpress path. None of it worked. What would be the correct way to enter the path?

    https://ww.wp.xz.cn/plugins/wp-piwik/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author braekling

    (@braekling)

    The full path is the best way to enter the Piwik path (without a specific file), so
    /var/www/vhosts/piwik.domain/httpdocs/
    should be the right choice.

    Please also check, if PHP safe mode is enabled and the Piwik directory is configured as safe_mode_include_dir of your wordpress.domain environment. Also using open_base_dir can avoid opening files from directories outside your current environment.

    See http://php.net/manual/en/ini.sect.safe-mode.php and http://php.net/manual/en/ini.core.php#ini.open-basedir

    You can enable WordPress’ debugging to check if there occur any safe mode related messages like

    Warning: SAFE MODE Restriction in effect. The script whose uid is 500 is
    not allowed to access /var/www/vhosts/piwik.domain/httpdocs/index.php
    owned by uid 0 in /var/www/vhosts/wordpress.domain/httpdocs/wp-content
    /plugins/wp-piwik/wp-piwik.php

    Plugin Author braekling

    (@braekling)

    Did you get it working? Any other issues?

    Thread Starter mcnesium

    (@mcnesium)

    no sorry, I had to go back to the javascript solution for now. I come back here whenever I get to work on this issue

    Plugin Author braekling

    (@braekling)

    Just to avoid a misunderstanding: You can choose between the REST Reporting API (http) and the PHP Reporting API. WP-Piwik does not support the PHP Tracking API, so the JavaScript tracking code is still necessary.

    Thread Starter mcnesium

    (@mcnesium)

    I see. So the PHP Api is for the WP Backend only. This should be documented more explicitly imho. Thank you for the addon, anyway.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘correct Piwik path (PHP API)’ is closed to new replies.