Skip to content

setting up Matomo

Solved General
48 2 18.6k 1
  • @jac Yep, that’s it.

    wrote on last edited by
    #17

    @phenomlab thanks, now to proceed 🙂

  • JAC JAC

    @phenomlab thanks, now to proceed 🙂

    wrote on last edited by
    #18

    @jac said in setting up Matomo:

    @phenomlab thanks, now to proceed 🙂

    rookie error 😉

    “Failed to create virtual server : A sub-server cannot have MySQL enabled unless the parent server does”

  • JAC JAC

    @jac said in setting up Matomo:

    @phenomlab thanks, now to proceed 🙂

    rookie error 😉

    “Failed to create virtual server : A sub-server cannot have MySQL enabled unless the parent server does”

    wrote on last edited by
    #19

    @jac Yes, that means that MySQL isn’t enabled at the root domain. You’ll need to go to the root domain, and enable that feature for it to work on subdomains.

    The reason for it being missing is that you do not require MySQL for NodeBB as it uses MongoDB instead.

  • @jac Yes, that means that MySQL isn’t enabled at the root domain. You’ll need to go to the root domain, and enable that feature for it to work on subdomains.

    The reason for it being missing is that you do not require MySQL for NodeBB as it uses MongoDB instead.

    wrote on last edited by
    #20

    @phenomlab Thanks Mark,

    I’ll go and locate this now.

  • JAC JAC

    @phenomlab Thanks Mark,

    I’ll go and locate this now.

    wrote on last edited by
    #21

    @jac done 🙂

  • JAC JAC

    @jac done 🙂

    wrote on last edited by
    #22

    @jac Yes, this probably helps

    c4410185-5774-455f-ba84-de1b87abf74a-image.png

  • JAC JAC

    @jac done 🙂

    wrote on last edited by
    #23

    @jac Now re-add the subdomain

  • JAC JAC

    @jac done 🙂

    wrote on last edited by
    #24

    @jac “Requesting a certificate for stats.stockportcounty.fans, www.stats.stockportcounty.fans from Let’s Encrypt …”

    that will be interesting… 👀

  • JAC JAC

    @jac “Requesting a certificate for stats.stockportcounty.fans, www.stats.stockportcounty.fans from Let’s Encrypt …”

    that will be interesting… 👀

    wrote on last edited by
    #25

    @jac Should be fine. It may bomb on the www request - let me know if that’s the case.

  • @jac Should be fine. It may bomb on the www request - let me know if that’s the case.

    wrote on last edited by phenomlab
    #26

    @phenomlab said in setting up Matomo:

    @jac Should be fine. It may bomb on the www request - let me know if that’s the case.

    Requesting a certificate for stats.stockportcounty.fans, www.stats.stockportcounty.fans from Let's Encrypt ..
    .. request failed : Web-based validation failed :
    
    Saving debug log to /var/log/letsencrypt/letsencrypt.log
    Plugins selected: Authenticator webroot, Installer None
    Obtaining a new certificate
    Performing the following challenges:
    http-01 challenge for stats.stockportcounty.fans
    http-01 challenge for www.stats.stockportcounty.fans
    Using the webroot path /home/stockportcounty/domains/stats.stockportcounty.fans/public_html for all unmatched domains.
    Waiting for verification...
    Challenge failed for domain www.stats.stockportcounty.fans
    http-01 challenge for www.stats.stockportcounty.fans
    Cleaning up challenges
    Some challenges have failed.
    IMPORTANT NOTES:
     - The following errors were reported by the server:
    
       Domain: www.stats.stockportcounty.fans
       Type:   dns
       Detail: DNS problem: NXDOMAIN looking up A for
       www.stats.stockportcounty.fans - check that a DNS record exists for
       this domain
    
       DNS-based validation failed :
    
    Saving debug log to /var/log/letsencrypt/letsencrypt.log
    Plugins selected: Authenticator manual, Installer None
    Obtaining a new certificate
    Performing the following challenges:
    dns-01 challenge for www.stats.stockportcounty.fans
    Running manual-auth-hook command: /etc/webmin/webmin/letsencrypt-dns.pl
    Waiting for verification...
    Challenge failed for domain www.stats.stockportcounty.fans
    dns-01 challenge for www.stats.stockportcounty.fans
    Cleaning up challenges
    Running manual-cleanup-hook command: /etc/webmin/webmin/letsencrypt-cleanup.pl
    Some challenges have failed.
    IMPORTANT NOTES:
     - The following errors were reported by the server:
    
       Domain: www.stats.stockportcounty.fans
       Type:   dns
       Detail: DNS problem: NXDOMAIN looking up TXT for
       _acme-challenge.www.stats.stockportcounty.fans - check that a DNS
       record exists for this domain
    
  • JAC JAC

    @phenomlab said in setting up Matomo:

    @jac Should be fine. It may bomb on the www request - let me know if that’s the case.

    Requesting a certificate for stats.stockportcounty.fans, www.stats.stockportcounty.fans from Let's Encrypt ..
    .. request failed : Web-based validation failed :
    
    Saving debug log to /var/log/letsencrypt/letsencrypt.log
    Plugins selected: Authenticator webroot, Installer None
    Obtaining a new certificate
    Performing the following challenges:
    http-01 challenge for stats.stockportcounty.fans
    http-01 challenge for www.stats.stockportcounty.fans
    Using the webroot path /home/stockportcounty/domains/stats.stockportcounty.fans/public_html for all unmatched domains.
    Waiting for verification...
    Challenge failed for domain www.stats.stockportcounty.fans
    http-01 challenge for www.stats.stockportcounty.fans
    Cleaning up challenges
    Some challenges have failed.
    IMPORTANT NOTES:
     - The following errors were reported by the server:
    
       Domain: www.stats.stockportcounty.fans
       Type:   dns
       Detail: DNS problem: NXDOMAIN looking up A for
       www.stats.stockportcounty.fans - check that a DNS record exists for
       this domain
    
       DNS-based validation failed :
    
    Saving debug log to /var/log/letsencrypt/letsencrypt.log
    Plugins selected: Authenticator manual, Installer None
    Obtaining a new certificate
    Performing the following challenges:
    dns-01 challenge for www.stats.stockportcounty.fans
    Running manual-auth-hook command: /etc/webmin/webmin/letsencrypt-dns.pl
    Waiting for verification...
    Challenge failed for domain www.stats.stockportcounty.fans
    dns-01 challenge for www.stats.stockportcounty.fans
    Cleaning up challenges
    Running manual-cleanup-hook command: /etc/webmin/webmin/letsencrypt-cleanup.pl
    Some challenges have failed.
    IMPORTANT NOTES:
     - The following errors were reported by the server:
    
       Domain: www.stats.stockportcounty.fans
       Type:   dns
       Detail: DNS problem: NXDOMAIN looking up TXT for
       _acme-challenge.www.stats.stockportcounty.fans - check that a DNS
       record exists for this domain
    
    wrote on last edited by phenomlab
    #27

    @jac Unsurprising. There are two ways to do this

    • Create a CNAME record called WWW and have it point to the subdomain in DNS
    • Create a custom request for LE so that it ignores the www value, and only processes the actual domain you want

    VirtualMin -> Server Configuration -> SSL Certificate

    8ec0c6a1-fb68-4af8-a66e-b6dba7044a93-image.png

    Let’s Encrypt

    f0f6e0eb-de26-40bc-be66-7ebf708fa9fe-image.png

    Set as per the example, so you only request the domain you want. Ensure that “Automatically renew certificate” is selected, then “Request Certificate”

  • @jac Unsurprising. There are two ways to do this

    • Create a CNAME record called WWW and have it point to the subdomain in DNS
    • Create a custom request for LE so that it ignores the www value, and only processes the actual domain you want

    VirtualMin -> Server Configuration -> SSL Certificate

    8ec0c6a1-fb68-4af8-a66e-b6dba7044a93-image.png

    Let’s Encrypt

    f0f6e0eb-de26-40bc-be66-7ebf708fa9fe-image.png

    Set as per the example, so you only request the domain you want. Ensure that “Automatically renew certificate” is selected, then “Request Certificate”

    wrote on last edited by
    #28

    @phenomlab said in setting up Matomo:

    @jac Unsurprising. There are two ways to do this

    • Create a CNAME record called WWW and have it point to the subdomain in DNS
    • Create a custom request for LE so that it ignores the www value, and only processes the actual domain you want

    VirtualMin -> Server Configuration -> SSL Certificate

    8ec0c6a1-fb68-4af8-a66e-b6dba7044a93-image.png

    Let’s Encrypt

    f0f6e0eb-de26-40bc-be66-7ebf708fa9fe-image.png

    Set as per the example, so you only request the domain you want. Ensure that “Automatically renew certificate” is selected, then “Request Certificate”

    Thanks,

    which is the best solution?

  • JAC JAC

    @phenomlab said in setting up Matomo:

    @jac Unsurprising. There are two ways to do this

    • Create a CNAME record called WWW and have it point to the subdomain in DNS
    • Create a custom request for LE so that it ignores the www value, and only processes the actual domain you want

    VirtualMin -> Server Configuration -> SSL Certificate

    8ec0c6a1-fb68-4af8-a66e-b6dba7044a93-image.png

    Let’s Encrypt

    f0f6e0eb-de26-40bc-be66-7ebf708fa9fe-image.png

    Set as per the example, so you only request the domain you want. Ensure that “Automatically renew certificate” is selected, then “Request Certificate”

    Thanks,

    which is the best solution?

    wrote on last edited by
    #29

    @jac Well, depending on configuration, they are as simple as each other. If you choose the first, then you need to add DNS records, and ensure your server is capable of handling them on arrival (it should be by default).

    If you choose the second, it’s the easiest (and probably laziest 🙂 ), but it will work. We just then need to set a redirect so that all traffic lands up at https://site.domain.com even if we try with or without the www prefix.

  • @jac Well, depending on configuration, they are as simple as each other. If you choose the first, then you need to add DNS records, and ensure your server is capable of handling them on arrival (it should be by default).

    If you choose the second, it’s the easiest (and probably laziest 🙂 ), but it will work. We just then need to set a redirect so that all traffic lands up at https://site.domain.com even if we try with or without the www prefix.

    wrote on last edited by
    #30

    @phenomlab said in setting up Matomo:

    If you choose the second, it’s the easiest (and probably laziest ), but it will work. We just then need to set a redirect so that all traffic lands up at https://site.domain.com even if we try with or without the www prefix.

    Will try this now mate 🙂

  • JAC JAC

    @phenomlab said in setting up Matomo:

    If you choose the second, it’s the easiest (and probably laziest ), but it will work. We just then need to set a redirect so that all traffic lands up at https://site.domain.com even if we try with or without the www prefix.

    Will try this now mate 🙂

    wrote on last edited by
    #31

    @jac As per PM, this has been completed.

  • phenomlab phenomlab marked this topic as a question on
  • phenomlab phenomlab has marked this topic as solved on
  • @jac As per PM, this has been completed.

    wrote on last edited by
    #32

    @phenomlab said in setting up Matomo:

    @jac As per PM, this has been completed.

    Can’t thank you enough for that Mark! - Superb yet again! 🙂

  • JAC JAC

    @phenomlab said in setting up Matomo:

    @jac As per PM, this has been completed.

    Can’t thank you enough for that Mark! - Superb yet again! 🙂

    wrote on last edited by
    #33

    @jac I have a feeling the real-time map isn’t working correctly?

    Screenshot 2021-12-09 at 18-05-20 Stockport County Fans - Web Analytics Reports - Matomo.png

    “NO Data”.

  • JAC JAC

    @jac I have a feeling the real-time map isn’t working correctly?

    Screenshot 2021-12-09 at 18-05-20 Stockport County Fans - Web Analytics Reports - Matomo.png

    “NO Data”.

    wrote on last edited by
    #34

    @jac You need to wait for 24 hours ⏲

  • @jac You need to wait for 24 hours ⏲

    wrote on last edited by
    #35

    @phenomlab said in setting up Matomo:

    @jac You need to wait for 24 hours ⏲

    Thanks mate 🙂 was wondering if it should work real-time when someone visits. I do remember this being the case last time I used it.

  • JAC JAC

    @phenomlab said in setting up Matomo:

    @jac You need to wait for 24 hours ⏲

    Thanks mate 🙂 was wondering if it should work real-time when someone visits. I do remember this being the case last time I used it.

    wrote on last edited by
    #36

    @jac IMG_20211209_183230.jpg

    VPN connected to Holland… Stats site shows UK. Oh dear… 😳😑.


Did this solution help you?
Did you find the suggested solution useful? Support 💗 Sudonix with a coffee ☕
If your organisation needs deeper expertise around infrastructure, security, or technology leadership, learn more about Phenomlab Ltd. Many of the deeper technical guides behind Sudonix are published there.

Related Topics
  • Cloud Storage

    General zeitkapsl europe cloud proton storage
    2
    0 Votes
    2 Posts
    901 Views
    DownPW
    For EU-based, end-to-end encrypted cloud storage, here are the strongest options beyond what you’re already using: Tresorit (Switzerland) : Probably the gold standard for E2EE. Zero-knowledge, Swiss/EU data residency, excellent for both file sync and secure sharing. More expensive than competitors but very polished and audited. Filen (Germany) : Zero-knowledge E2EE by default, generous free tier (10GB), very competitive pricing on paid plans, and lifetime plans available. Open-source clients. Popular on the privacy subreddits as a Proton Drive alternative. Internxt (Spain) : Open-source, zero-knowledge E2EE, GDPR-based. Offers storage plus a few extra privacy tools. Lifetime plans available. Younger company, so weigh that against the price. pCloud (Switzerland, registered in EU) : Massive caveat: E2EE is not default. It’s a paid add-on called “pCloud Crypto.” Without it your files are encrypted at rest but not zero-knowledge. The draw is genuine lifetime plans, which can be cost-effective over years if you trust their longevity.
  • Nodebb vs Wordpress vs Other

    General wordpress nodebb woocomerce business
    4
    5 Votes
    4 Posts
    2k Views
    DownPW
    PrestaShop + modules IA https://www.prestashop.com Magento https://developer.adobe.com/open/magento
  • Torturing My Father & Mother In Law

    General linux story kde plasma fedora
    15
    15 Votes
    15 Posts
    4k Views
    phenomlab
    @DownPW once you leave windows for Linux, you don’t ever go back.
  • Cloud Storage Options

    General cloud storage onedrive dropbox nextcloud others
    7
    3 Votes
    7 Posts
    3k Views
    Madchatthew
    @phenomlab I will have to test this out in my virtual environment. I have an Arch KDE Plasma install in virtualbox that I am testing a bunch of things out before I actually wipe the hard drive and install linux. I am currently in the process of copying my Arch test web server over to virtualbox on linux to make sure that it works. This is the virtual server that I test updates on before updating the production server. I can’t remember the error I was getting but I think it had to do with the network device. That was on the virtualbox side. So the cloud storage will be the next thing that I test.
  • Windows 10 End of Life

    General windows linux arch end of life
    10
    2 Votes
    10 Posts
    3k Views
    Madchatthew
    @phenomlab this looks very nice as well. It is nice that they keep the KDE Neon a rolling release so you will get those updated apps even though Ubuntu isn’t a rolling release. Is it a rolling distro? KDE neon is rolling for KDE software. The Ubuntu base OS is not, but certain packages will be updated as needed to support KDE software requiring newer library versions than what is provided by Ubuntu. Apps from the main repositories are not rolling either, and therefore can be up to two years old. Users are encouraged not to use them, and to instead get apps from Snap or Flatpak using KDE’s Discover app store. In neon, Discover is set up to only show apps from these sources, filtering out apps from the repositories.
  • OKTA offering personal password manager

    General okta password manager
    31
    18 Votes
    31 Posts
    11k Views
    phenomlab
    @Madchatthew yes, works well for us.
  • 4 Votes
    11 Posts
    4k Views
    phenomlab
    @Hari Really? Can you elaborate a bit more here?
  • Best antivirus software? (Looking to switch)

    General
    35
    19 Votes
    35 Posts
    13k Views
    Madchatthew
    @phenomlab or Challenge Accepted haha