Adgang til Matomo
- Åbn din webbrowser og gå til:
http://<SERVER-IP> - Følg Matomo-webopsætningsguiden for at fuldføre installationen.
Vigtige filer og mapper
- Webrod:
/var/www/matomo(ejet afwww-data:www-data) - Apache-konfiguration:
/etc/apache2/sites-available/matomo.conf - Logs:
/var/log/apache2/matomo_error.log&/var/log/apache2/matomo_access.log - Databaseoplysninger:
/root/.cloudzy-creds
Opsætning af database
Under opsætningen skal du indtaste følgende legitimationsoplysninger fra den genererede fil (/root/.cloudzy-creds):
- Databaseserver:
127.0.0.1 - Login:
matomo - Adgangskode: Genereret tilfældigt
- Databasenavn:
matomo
Apache-styring
Administrer Apache-tjenesten ved hjælp af systemd-kommandoer:
systemctl status apache2
systemctl restart apache2
systemctl stop apache2
systemctl start apache2
Aktivering af SSL med et domæne
1. Peg dit domæne mod serverens IP-adresse.
2. Rediger Apache-konfigurationen og udskift ServerName <IP> med dit domæne (ServerName <your-domain>):
vim /etc/apache2/sites-available/matomo.conf
3. Installer Certbot:
apt install -y certbot python3-certbot-apache
4. Kør følgende kommando for at generere et gyldigt Lets Encrypt-certifikat:
certbot --apache --non-interactive --agree-tos --email [email protected] -d yourdomain.com
5. Genstart Apache for at anvende ændringerne:
systemctl restart apache2
6. Rediger Matomo-konfigurationsfilen (/var/www/matomo/config/config.ini.php) og opdatere trusted_hosts indstilling under [General] for at inkludere dit domæne i stedet for IP-adressen:
[General]
trusted_hosts[] = "yourdomain.com"
7. Åbn din browser og gå til: https://yourdomain.com