Matomo@Debian12
Prepare webserver, refer to configurtaion example:
https://github.com/matomo-org/matomo-nginx/blob/master/sites-available/matomo.conf
cd ~/downloads/
curl -O https://builds.matomo.org/matomo.zip
unzip matomo.zip
sudo su
mv matomo /var/www/footprint.2dz.fi/
export dir="/var/www/footprint.2dz.fi/"
mkdir -p ${dir}/matomo/tmp/assets/
mkdir -p ${dir}/matomo/tmp/cache/
mkdir -p ${dir}/matomo/tmp/logs/
mkdir -p ${dir}/matomo/tmp/tcpdf/
mkdir -p ${dir}/matomo/tmp/templates_c
Permissions
sudo su
export dir="/var/www/footprint.2dz.fi/"
export webuser="www-data"
chown -R ${webuser}:${webuser} ${dir}/matomo
find ${dir}/matomo/tmp -type f -exec chmod 644 {} \;
find ${dir}/matomo/tmp -type d -exec chmod 755 {} \;
find ${dir}/matomo/tmp/assets/ -type f -exec chmod 644 {} \;
find ${dir}/matomo/tmp/assets/ -type d -exec chmod 755 {} \;
find ${dir}/matomo/tmp/cache/ -type f -exec chmod 644 {} \;
find ${dir}/matomo/tmp/cache/ -type d -exec chmod 755 {} \;
find ${dir}/matomo/tmp/logs/ -type f -exec chmod 644 {} \;
find ${dir}/matomo/tmp/logs/ -type d -exec chmod 755 {} \;
find ${dir}/matomo/tmp/tcpdf/ -type f -exec chmod 644 {} \;
find ${dir}/matomo/tmp/tcpdf/ -type d -exec chmod 755 {} \;
find ${dir}/matomo/tmp/templates_c -type f -exec chmod 644 {} \;
find ${dir}/matomo/tmp/templates_c -type d -exec chmod 755 {} \;