# Matomo open source analytics installed, but can't access it because of 404 error. Simply a question of custom HTML files?

**URL:** <https://forum.ghost.org/t/matomo-open-source-analytics-installed-but-cant-access-it-because-of-404-error-simply-a-question-of-custom-html-files/16726>\
**Category:** Installation\
**Created:** [August 25, 2020, 9:01pm UTC](https://forum.ghost.org/t/matomo-open-source-analytics-installed-but-cant-access-it-because-of-404-error-simply-a-question-of-custom-html-files/16726 "2020-08-25T21:01:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![grivera](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/grivera/32/9268_2.png) [@grivera](https://forum.ghost.org/u/grivera)\
**Post date:** [August 25, 2020, 9:01pm UTC](https://forum.ghost.org/t/matomo-open-source-analytics-installed-but-cant-access-it-because-of-404-error-simply-a-question-of-custom-html-files/16726/1 "2020-08-25T21:01:22Z")

</div>

The open source part of Ghost also lead me to seek alternatives to Google Analytics. I landed on Matomo, but in self-hosting it I haven’t been able to make it work.

I tried placing Matomo, within my Ghost server, in two different locations. The first was, /var/www/html (as per the FLOSS Marketing School video on how to install Matomo\*). I pointed my browser to [cafebuenvivir.com/matomo](http://cafebuenvivir.com/matomo) and got a 404 error.

Alright, I Googled my issue and found this other Ghost forum post\*. It suggested placing my ‘custom files’ within the assets folder of my theme. Not ideal, since I would want to retain my ability to change themes, but if it’s the only way to make it work I’ll try. In my attempts, I _either_ _moved_ the files from /var/www/html _or_ _downloaded_ the Matomo files at **/var/www/ghost/current/content/themes/casper/assets/**. Then I went over to [cafebuenvivir.com/assets/matomo](http://cafebuenvivir.com/assets/matomo), and nothing, 404 error.

My URL is [cafebuenvivir.com](http://cafebuenvivir.com).  
My Ghost version, given by my “ghost version” command is:  
Ghost-CLI version: 1.14.1  
Ghost version: 3.31.1 (at /var/www/ghost)  
I’m hosted at the free tier Amazon Web Service server. Ubuntu 18.04 LTS. I followed the self-hosted install for Ghost instructions.  
I’m using Brave browser.  
I downloaded the Matomo files using wget (as they themselves recommend in their installation guide), instead of FTP (I’m not skilled at using FTP).

\*I’m sorry I’m not linking these. I can only give three links, the rules say, given that I’m a new user. However, I figured if it was important enough, you’d be able to find the content through the key words I gave you. On the other hand, I did give you my personal URLs, since you can’t google those.

\*\*UPDATE: After some tinkering and reading, I think my problem may be an issue with using Nginx as the engine for Matomo. Not that I shouldn’t use Nginx, but that the Github guide to using Matomo through Nginx says I’m probably using php-fpm. Yet I think I’m not using php-fpm. I didn’t even have it installed. This means, I guess, that Ghost processes PHP requests in a different way than the usual Nginx Matomo installation. Given this, do you know how I could get Nginx to use the same resources as Ghost so that they can both run in my measly machine?

---

<div class="post-metadata">

**Author:** ![Kenji\_Bailly](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kenji_bailly/32/11814_2.png) [@Kenji\_Bailly](https://forum.ghost.org/u/Kenji_Bailly)\
**Post date:** [March 24, 2021, 11:56pm UTC](https://forum.ghost.org/t/matomo-open-source-analytics-installed-but-cant-access-it-because-of-404-error-simply-a-question-of-custom-html-files/16726/2 "2021-03-24T23:56:22Z")

</div>

I have Ghost and Matomo both running in a different docker container and matomo connecting over domain with a code injection in the {{ghost\_head}}.  
I did nothing special to make it work. I’d recommend configuring matomo over domain as I can confirm this is working fine. This could be [analytics.cafebuenvivir.com](http://analytics.cafebuenvivir.com) for example  
Perhaps this could help you.
