Image and menu not displaying correctly on Piwik Admin Panel


I installed Piwik on my webserver by using Windows Platform Installer. My server is Windows Server 2008. At first, I installed it by using the url address. http://localhost:990

Later, we want it to make it available for the public and we bind the dns address http://piwik to our server. We can now access it by using the URL http://piwik. But the problem is the path of the images are still using http://localhost:990/images/xxx.jpg instead of http://piwik/images/xxx.jpg. And some menus are not showing as usual.

I tried to find it in the files to change it. But I could not find anywhere to change. So, could you please advise me how can I change it?

Thanks very much for your help.

(Matthieu Aubry) #2

Go to Settings > Branding and then you customize the logo


It does not solve the problem. It’s for replacing the image. Anyway, thanks.



I had recently the same problem and I found that in a db table “option” of Piwik, the option “piwikUrl” is saved, that is used, obviously, for the path of the images. (why???)
Then I opened a source view of the login page (logo.png wasn’s displayed) to make sure the path to the images is correct. And it wasn’t!
As I changed manually this option in the db, all images are shown correctly now.
Hope it points you in the right direction to solve your problem.


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:

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

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: 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:
For windows follow: Virtual hosts on Apache in Windows

I hope this post helps anyone experiencing the image issue.

Thanks Marv