giảm giá 50% tất cả các gói, có thời hạn. Khởi điểm từ $2.48/mo
Matomo

Matomo

Matomo is a privacy-focused web analytics platform. Self-hosted Google Analytics alternative with full data ownership, GDPR tooling, and a 100% accurate cookieless tracking mode. Used at the European Commission, NASA, and the United Nations.

Phiên bản

Mới nhất

Hệ điều hành

Ubuntu Server 24.04 LTS

Tối thiểu. ĐẬP

2 GB

Loại IP

IPV4,IPV6

Access Matomo

  1. Mở trình duyệt web của bạn và điều hướng đến: http://<SERVER-IP>
  2. Follow the Matomo web setup wizard to complete installation.

File và thư mục quan trọng

  • Gốc Web: /var/www/matomo (thuộc sở hữu của www-data:www-data)
  • Cấu hình Apache: /etc/apache2/sites-available/matomo.conf
  • Nhật ký: /var/log/apache2/matomo_error.log & /var/log/apache2/matomo_access.log
  • Thông tin xác thực cơ sở dữ liệu: /root/.cloudzy-creds

Thiết lập cơ sở dữ liệu

Trong quá trình thiết lập, hãy nhập thông tin xác thực sau từ tệp được tạo (/root/.cloudzy-creds):

  • Máy chủ cơ sở dữ liệu: 127.0.0.1
  • Đăng nhập: matomo
  • Mật khẩu: Được tạo ngẫu nhiên
  • Tên cơ sở dữ liệu: matomo

Quản lý Apache

Quản lý dịch vụ Apache bằng lệnh systemd:

systemctl status apache2
systemctl restart apache2
systemctl stop apache2
systemctl start apache2

Kích hoạt SSL với một tên miền

1. Trỏ tên miền của bạn về IP máy chủ.

2. Chỉnh sửa cấu hình Apache và thay thế ServerName <IP> với tên miền của bạn (ServerName <your-domain>):

vim /etc/apache2/sites-available/matomo.conf

3. Cài đặt Certbot:

apt install -y certbot python3-certbot-apache

4. Chạy lệnh sau để tạo chứng chỉ Let’s Encrypt hợp lệ:

certbot --apache --non-interactive --agree-tos --email [email protected] -d yourdomain.com

5. Khởi động lại Apache để áp dụng các thay đổi:

systemctl restart apache2

6. Edit the Matomo configuration file (/var/www/matomo/config/config.ini.php) và cập nhật trusted_hosts thiết lập dưới [General] để bao gồm tên miền của bạn thay vì IP:

[General]
trusted_hosts[] = "yourdomain.com"

7. Mở trình duyệt và truy cập: https://yourdomain.com

Thêm trong Monitoring

Ứng dụng liên quan.

Deploy Matomo now. Từ $2.48/tháng.