I created a Mysql user and Dbase following the guide.
Gave the use
GRANT FILE ON . TO ‘user’@‘localhost’;
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON database.* TO ‘user’@‘localhost’
And installed without an error message. Created my first site for analytics, and place the code in the header of the site. Did some testing with the site to generate data, but when I wanted to look if there was any thing the Dashboard was completly white.
Also checking setting is white. So I can’t use it. I already did several setups and this is not the first time that it happens.
What can I do to fix it and to prevent it in the future?
Error: "[$compile:tpload] http://errors.angularjs.org/1.6.5/$compile/tpload?p0=plugins%2FCoreHome%2Fangularjs%2Fnotification%2Fnotification.directive.html%3Fcb%3D21eba11d2ce30bacaf751a2415b55313&p1=403&p2=Forbidden"
K https://domain.com/analytics/index.php?module=Proxy&action=getCoreJs&cb=21eba11d2ce30bacaf751a2415b55313:126
g https://domain.com/analytics/index.php?module=Proxy&action=getCoreJs&cb=21eba11d2ce30bacaf751a2415b55313:280
k https://domain.com/analytics/index.php?module=Proxy&action=getCoreJs&cb=21eba11d2ce30bacaf751a2415b55313:255
$digest https://domain.com/analytics/index.php?module=Proxy&action=getCoreJs&cb=21eba11d2ce30bacaf751a2415b55313:266
$apply https://domain.com/analytics/index.php?module=Proxy&action=getCoreJs&cb=21eba11d2ce30bacaf751a2415b55313:269
l https://domain.com/analytics/index.php?module=Proxy&action=getCoreJs&cb=21eba11d2ce30bacaf751a2415b55313:221
onload https://domain.com/analytics/index.php?module=Proxy&action=getCoreJs&cb=21eba11d2ce30bacaf751a2415b55313:227
There are some .htaccess files in some other directories, maybe I should whitelist them in my system.
.htaccess file in plugins folder
# This file is auto generated by Matomo, do not edit directly
# Please report any issue or improvement directly to the Matomo team.
# First, deny access to all files in this directory
<Files "*">
<IfModule mod_version.c>
<IfVersion < 2.4>
Order Deny,Allow
Deny from All
</IfVersion>
<IfVersion >= 2.4>
Require all denied
</IfVersion>
</IfModule>
<IfModule !mod_version.c>
<IfModule !mod_authz_core.c>
Order Deny,Allow
Deny from All
</IfModule>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
</IfModule>
</Files>
# Serve HTML files as text/html mime type - Note: requires mod_mime apache module!
<IfModule mod_mime.c>
AddHandler text/html .html
AddHandler text/html .htm
</IfModule>
# Allow to serve static files which are safe
<Files ~ "\.(gif|ico|jpg|png|svg|js|css|htm|html|mp3|mp4|wav|ogg|avi|ttf|eot|woff|woff2|json)$">
<IfModule mod_version.c>
<IfVersion < 2.4>
Order Allow,Deny
Allow from All
</IfVersion>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
</IfModule>
<IfModule !mod_version.c>
<IfModule !mod_authz_core.c>
Order Allow,Deny
Allow from All
</IfModule>
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
</IfModule>
</Files>
# include /usr/local/nginx/conf/autoprotect/XXX/autoprotect-XXX.conf;
Guess that adding my IP to allow 127.0.0.1; will resolve it and keep the autoprotect intact
For now the dashboard works again
Thanks for the GitHub link, it sure has some setting that improve my config like Referrer-Policy origin;
Will use some parts of it to improve my config and whitelist some autoprotect issues