Akses Matomo
- Buka browser web Anda dan arahkan ke:
http://<SERVER-IP> - Ikuti wizard pengaturan web Matomo untuk menyelesaikan instalasi.
File & Direktori Penting
- Akar Web:
/var/www/matomo(dimiliki olehwww-data:www-data) - Konfigurasi Apache:
/etc/apache2/sites-available/matomo.conf - Catatan:
/var/log/apache2/matomo_error.log&/var/log/apache2/matomo_access.log - Kredensial Database:
/root/.cloudzy-creds
Pengaturan Database
Saat pengaturan, masukkan kredensial berikut dari file yang dihasilkan (/root/.cloudzy-creds):
- Server Basis Data:
127.0.0.1 - Masuk:
matomo - Kata sandi: Dibuat secara acak
- Nama Database:
matomo
Manajemen Apache
Kelola layanan Apache menggunakan perintah systemd:
systemctl status apache2
systemctl restart apache2
systemctl stop apache2
systemctl start apache2
Mengaktifkan SSL dengan Domain
1. Arahkan domain Anda ke IP server.
2. Edit konfigurasi Apache dan ganti ServerName <IP> dengan domain Anda (ServerName <your-domain>):
vim /etc/apache2/sites-available/matomo.conf
3. Instal Certbot:
apt install -y certbot python3-certbot-apache
4. Jalankan perintah berikut untuk menghasilkan sertifikat Lets Encrypt yang valid:
certbot --apache --non-interactive --agree-tos --email [email protected] -d yourdomain.com
5. Restart Apache untuk menerapkan perubahan:
systemctl restart apache2
6. Edit file konfigurasi Matomo (/var/www/matomo/config/config.ini.php) dan perbarui trusted_hosts pengaturan di bawah [General] untuk menyertakan domain Anda, bukan alamat IP:
[General]
trusted_hosts[] = "yourdomain.com"
7. Buka browser Anda dan kunjungi: https://yourdomain.com