How to install this module?

I installed module in Drupal and it is asking for Piwik Site ID. I do not have a Piwik account and can't find how to create one.

Also, am I supposed to also install the core Piwik files, 5MB downloaded from their website, uploaded to: example.com/piwik?

When I run through the installation, I get to 25% (when you enter database info/login) and when I click "Next" it simply takes me to my drupal website, to a 404 error page. It's like Drupal is taking over Piwik install and not letting me stay in the /piwik directory.

Comments

hass’s picture

Status: Active » Fixed

This is out of scope in this drupal module queue. You need to add an path exclusion to htaccess file and install piwik from piwik.org.

mntash’s picture

Status: Fixed » Active

Do you mean this:

# PHP 5, Apache 1 and 2.
   <IfModule mod_php5.c>
     php_value session.save_handler files
   </IfModule>

Nevermind, you mean this:

<IfModule mod_rewrite.c>
  RewriteEngine on
  #
  # stuff to let through (ignore)
  RewriteCond %{REQUEST_URI} "/folder1/" [OR]
  RewriteCond %{REQUEST_URI} "/folder2/"
  RewriteRule (.*) $1 [L]
  #

Thanks!

hass’s picture

No.

hass’s picture

Title: How to install? » How to install Piwik in Drupal subdirectory?
Status: Active » Fixed
hass’s picture

Issue tags: +.htaccess

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

WeRockYourWeb.com’s picture

mntash, to exclude files/folders from your Drupal rewrite rules, look for this towards the bottom of your .htaccess file:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

The first three conditions say that all URLs will be rewritten except for existing files, directories and a request for /favicon.ico. You can add your own conditions here. For example, to avoid rewriting for urls of the form /piwik/.*:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteCond %{REQUEST_URI} !^/piwik/.*$
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]