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

Share this:

  • Twitter
  • Facebook
  • Reddit
  • Tumblr
  • Pinterest

Related

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

Recent Posts

  • Alternative GPIO pins for Wemos D1 Mini BME280 sensor
  • Fixing zsys daemon: timed out waiting for server handshake on Ubuntu 20.04 ZFS
  • Solving Error on statfs() system call with cAdvisor and Docker
  • MySQL in Docker for Local Development
  • Laravel Docker Development Environment With PHP7

Tags

7zip API auditing Courier MTA crochet data recovery debian debudding development Dingo API docker email Getting started with Laravel 5 & Dingo API hard drive health KVM Laravel larvel 5 lenovo Linux Mail Quota Minion mint netgear nas networking network shares php PHP development Postfix samba security SMART smartctl smartmontools smb smbfs testing traefik ubuntu ubuntu 18.04 ubuntu 20.04 ubuntu server vagrant Virtual machines xdebug xubuntu

© Copyright 2015 apt get life