I’ve been hard on CloudAtCost before… they’re still terrible, but I’ve got a lot of use of my one-time purchase. I still use the resources I own to run non-critical applications. Matomo falls into that category.
Anyhoo, my server crashed and had to be deleted. This is how I setup Matomo on Ubuntu 16.04. Do it behind an nginx-proxy/lets-encrypt Docker Composition. This process is very manual and may one day be set up as a proper Docker build. As it stands, there is a lot of manual manipulation within the container.
First, create a project directory:
Copy and paste this into a file called
Create and execute the container with:
This is the time to start (or restart) the
nginx-proxy/lets-encrypt composition. Once this is running, your username will be what was set in the
docker-compose.yml file described above. In this case, the default credentials are:
You should be able to login at the domain specified now.
matomo works out of the box, but there will be a bunch of things you’ll want to set up at the application level.
Before all that, there’s a weird permissions issue in the container. You’ll want to upgrade
matomo, but won’t be able to do so until you fix this. It’s super hacky having to do this from within the container, but that’s what I’m working with at the moment.
From your project directory:
Then, from within the container:
Again, this is super hacky, because now you need to install an editor and a bunch of other dependencies within the container:
Add this to the
Exit the container and restart.
At this point, everything should be operational on a basic level. Address the following points, and get a lot more use out of
- Change password
- Exclude your own visits using a cookie
I set up the GeoIP2 (Php) extension, which is supposed to make things faster somehow..
From within the container, clone
Install from inside the cloned directory:
Install the extension:
Add this to the end and save:
Get the database:
Exit the container and restart from the host:
If you refresh the System > Geolocation page, GeoIp 2 (Php) will be operational. Select this option and save.
Add all the websites you want track.
I needed to bang this out for my own purposes. I will likely be forced to revisit this when CloudAtCost fails me once again.