Hi TheTwi and other users,
I know this is an old topic, however other people maybe having the same issue. The problem isnt piwik it’s your current setup. To make sure images work correctly please set piwik as a sub domain.
If your using cpannel:
http://docs.cpanel.net/twiki/bin/view/AllDocumentation/CpanelDocs/SubDomains
On localhost please create a vhost subdomain for piwik (not sure why you would need piwik for checking local stats unless its for testing)
Linux Ubuntu Instructions
opten terminal (ctrl, alt + t):
Browse to the web directory:
cd /var/www
now create your file / site folder (please note you may need sudo access so use sudo infront of the command if its needed)
mkdir sub.domain.test
Enter the directory
cd sub.domain.test
add your piwik files here, once all your piwik files are created please create the virtual host by doing the following:
cd /etc/apache2/sites-available
Now create the file:
sudo nano sub.domain.test.conf
Past the following but with your details:
<VirtualHost *:80>
ServerName sub.domain.test
DocumentRoot /var/www/ sub.domain.test
<Directory /var/www/sub.domain.test>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
save the file (ctrl + x) when promted to save type y and push enter.
Now create the symlink for sites on linux this can be done by typing:
sudo a2ensite sub.domain.test
Create the hosts file to match it:
sudo nano /etc/hosts
at the bottom of the file enter:
127.0.0.1 sub.domain.test
#This links the domain nmame to your local host
The final step is to restart apache:
sudo service apache2 restart
Now you should be able to view piwik ad sub.domain.test in your browser.
For mac osx follow: http://sawmac.com/mamp/virtual/
For windows follow: Virtual hosts on Apache in Windows
I hope this post helps anyone experiencing the image issue.
Thanks Marv