Run the command in terminal to rebuild
cd ~/srv/project/slapos/software/matomo
../../update-hash
slapos node software --all
slapos node instance --all
Now, there will be a output file "matomo.conf
", in path "~/srv/project/runner/slappartX/etc/apache.d/matomo.conf
".
This path is been setting as directory of configuration file of apache webrunner in LAMP, so when we put configuration file here, it will work.
X is the slappart where you apache server runs on, if you are not sure, check it with the command
slapos node status
You can use linux command find
to check if configuration output file exist:
find ~/srv/project/runner/ -name instance-matomo.cfg
Normally, you will get the result like this:
/srv/slapgrid/slappart9/srv/project/runner/instance/slappart2/etc/apache.d/matomo.conf
Normally, we can access the web pages of matomo by browser. Rerun the bash script to get the URL information.
cd ~/srv/project
./request-matomo-instance.sh
You will find parameters like these:
{'backend-url': 'https://[2001:67c:1254:102::76fd]:9988/',
'mariadb-url-list': "['mysql://nextcloud:insecure@10.0.25.127:2099/nextcloud']",
'monitor-base-url': 'https://softinst169422.host.vifib.net',
'monitor-setup-url': 'https://monitor.app.officejs.com/#page=settings_configurator&url=https://softinst169422.host.vifib.net/public/feeds&username=admin&password=G1SdcxYEKCt9Gnx5',
'url': 'https://softinst169424.host.vifib.net'}
Copy the url to your browser and you will see the welcome page of matomo.