Using Matomo 5.1.0, it’s working good, but I started getting these warnings in System check under the Required Private Directories & Recommended Private Directories.
Checking the URL https://mydomain.com/matomo/config/config.ini.php failed: /var/www/html/p/core/Http.php(622): Warning - file_get_contents(https://mydomain.com/matomo/config/config.ini.php): Failed to open stream: operation failed - Matomo 5.1.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
Checking the URL https://mydomain.com/matomo/tmp/ failed: /var/www/html/p/core/Http.php(622): Warning - file_get_contents(https://mydomain.com/matomo/tmp/): Failed to open stream: operation failed - Matomo 5.1.0 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
If I try to open those URLs in by browser I just get a normal forbidden page: “Forbidden / You don’t have permission to access this resource.”
EDIT: Figured it out. I wasn’t able to load the website URLs with curl either due to some SSL error.
curl: (60) SSL: no alternative certificate subject name matches target host name
After investigating, I could pinpoint that this issue happens when I have the public IP assigned to the domain in /etc/hosts. My guess is, when using curl locally, the local SSL cert for the server didn’t match the Cloudflare SSL cert. My site works without having the public ip assigned to the domain in /etc/hosts, so removed it. Now curl and matomo system verification can load pages on the site domain.
1 post - 1 participant