Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Ubuntu: Migrate Piwik website #Piwik #Markdown


This article assumes you're going to move an exisiting piwik website from one server to another.


  • Ubuntu server
  • Nginx
  • Nginx minimal website
  • MySQL
  • php5-fpm
  • php5-mysql, php5-mcrypt
  • Nginx php5-fpm website
  • Increased Max Upload for php5-fpm website
  • phpMyAdmin
  • Piwik website


Export the existing SQL Piwik database with phpMyAdmin.

Import the database export into the new Piwik database with phpMyAdmin.

Update the tracking codes or update Piwik urls on the Piwik tracked websites if the hosting has changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment