apt get life

Life around technology

  • Technology
    • Guides
    • Linux
    • Development
      • Laravel
    • Misc
    • Raspberry Pi
  • Writing
  • Crafts
    • Crochet
    • Model Making
    • Painting
  • Privacy Policy
You are here: Home / Technology / Guides / Solving Error: Piwik is already installed

Solving Error: Piwik is already installed

2015/06/27 by sudo

Recently, I’ve been migrating sites to a new server. This included my Piwik installation for website statistics. In order to move Piwik I used mysqldump to backup the database, copied the sites files and restored them to a new server. When accessing Piwik for the first time after the migration I was greeted by the error:

Error: Piwik is already installed

Now, I know this is the only instance on my brand new server, and I know I restored the database correctly. I did some googling to find this is a common problem for migrating Piwik to a new server, but solutions proved to be lacking. In the end I moved the config.ini.php that contains the database connection to a backup location:

mv config/config.ini.php config/config.ini.php.old

I then re-ran the Piwik installation with the same details as I had in the original config file. This wiped my data, but after setup was finished I restored my backup from the original server again:

mysql -u root -p piwik < piwik.sql

Once I logged in all of my old data was available and Piwik was working again!

 

You may be interested in the following forum posts on the Piwik site:

  • http://forum.piwik.org/read.php?2,124781 – Piwik error already installed forum post with no solution
  • http://forum.piwik.org/read.php?2,123744 – Piwik error already installed forum post with no solution

Related

Filed Under: Guides, Technology Tagged With: piwik, web analytics

Recent Posts

  • System Hang on Ubuntu 24.04 “e1000_print_hw_hang”
  • Disable iLO on HP Microserver Gen8
  • Ubuntu Desktop 24.04 Change Wallpaper Settings
  • Customising Ubuntu Desktop 24.04
  • Remove domains from Let’s Encrypt using Certbot

Tags

API auditing crochet data recovery debian debudding development Dingo API docker email Getting started with Laravel 5 & Dingo API hard drive health HP Microserver KVM Laravel larvel 5 lenovo Linux Minion mint netgear nas networking network shares php PHP development Postfix raspberry pi review samba security SMART smartctl smartmontools smb testing traefik ubuntu ubuntu 18.04 ubuntu 20.04 ubuntu 22.04 ubuntu server vagrant Virtual machines xdebug xubuntu

© Copyright 2015 apt get life