Home
Packages
Forums
Wiki
GitLab
Security
AUR
Download
コンテンツにスキップ
メインメニュー
メインメニュー
サイドバーに移動
非表示
案内
メインページ
目次
コミュニティに貢献
最近の出来事
おまかせ表示
特別ページ
交流
ヘルプ
貢献
最近の更新
最近の議論
新しいページ
統計
リクエスト
ArchWiki
検索
検索
表示
アカウント作成
ログイン
個人用ツール
アカウント作成
ログイン
Matomoのソースを表示
ページ
議論
日本語
閲覧
ソースを閲覧
履歴を表示
ツール
ツール
サイドバーに移動
非表示
操作
閲覧
ソースを閲覧
履歴を表示
全般
リンク元
関連ページの更新状況
ページ情報
表示
サイドバーに移動
非表示
←
Matomo
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
[[Category:Web アプリケーション]] [[en:Matomo]] [[zh-hans:Matomo]] Matomo, formerly Piwik, is an open source web analysis tool licensed under the GNU General Public License 3. The software is written in php and is accessed over the web browser. The core idea of the project is privacy as when using third party website analysis providers website owners are giving all of their users' data away for them to sell them to advertisers. With one running instance multiple websites can be analysed by loading some JavaScript on the target websites. == Installation == [[Install]] the package {{AUR|matomo}} or {{AUR|matomo-git}}. The git package already configures the php-fpm daemon for you. Additionally, it downloads and installs the most recent GeoIP database for you. By default, Matomo guesses the visitor's location by their set browser language which is not reliable information for geographical location. == Configuration == === php configuration === php needs to be configured properly for Matomo to work. First, enable MySQL support as described in [[PHP#MySQL/MariaDB]]. Do so by editing {{ic|/etc/php/php.ini}}. Uncomment {{ic|1=;extension=pdo_mysql}} and {{ic|1=;extension=mysqli}} by removing the preceding semicolon. In general, comments are indicated by preceding semicolons. {{ic|1=;extension=iconv}} needs to be enabled and {{ic|1=;extension=gd}} is optional for Matomo. Uncomment at least iconv. ==== Allow Matomo access to needed files ==== {{Note|The changes here are only needed for the {{AUR|matomo}} package and not {{AUR|matomo-git}} which already contains this file.}} Because of new restrictions on {{ic|php-fpm.service}} since version 7.4, where {{ic|ProtectSystem}} is set to prevent Matomo to function correctly (unable to installing plugins, changing configuration, etc), the ability to access certain files needs to be set manually. The file {{ic|/etc/systemd/system/php-fpm.service.d/override_matomo.conf}} below fixes the issue while not exposing more than necessary and still allow the user to change ACL as described in the installation manifest, if this is not desired. {{bc|1=<nowiki/> [Service] ReadWritePaths = /usr/share/webapps/matomo/config ReadWritePaths = /usr/share/webapps/matomo/matomo.js ReadWritePaths = /usr/share/webapps/matomo/misc/user/ ReadWritePaths = /usr/share/webapps/matomo/plugins/ }} === Server setup (nginx) === In order to enable php websites, install the {{Pkg|php-fpm}} package and [[start/enable]] {{ic|php-fpm.service}} (See [[Nginx#PHP implementation]]). Create the server by modifying {{ic|/etc/nginx/nginx.conf}}. Add the following template to the "http" context. Alternatively, take a look at [https://github.com/matomo-org/matomo-nginx matomo's GitHub] instructions. {{bc|1=<nowiki/> include /etc/nginx/mime.types; server { index index.php; listen 443 ssl; listen [::]:443 ssl; root /usr/share/webapps/matomo/; server_name matomo.example.com; location ~ ^/(\.git/{{!}}config/{{!}}core/{{!}}lang/{{!}}tmp/) { return 403; } location ~ \.php$ { try_files $uri =404; # FastCGI include fastcgi.conf; fastcgi_pass unix:/run/php-fpm/php-fpm.sock; fastcgi_index index.php; } location ~ \.(avi{{!}}css{{!}}eot{{!}}gif{{!}}htm{{!}}html{{!}}ico{{!}}jpg{{!}}js{{!}}json{{!}}mp3{{!}}mp4{{!}}ogg{{!}}png{{!}}svg{{!}}ttf{{!}}wav{{!}}woff{{!}}woff2)$ { try_files $uri =404; } location ~ ^/(libs/{{!}}misc/{{!}}node_modules/{{!}}plugins/{{!}}vendor/) { return 403; } } }} To use encryption, you can get free certificates from [[letsencrypt]]. After requesting and installing your certificates, use them by adding the following code to the "http" or "server" context: {{bc| include /etc/letsencrypt/options-ssl-nginx.conf; ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; ssl_certificate_key /etc/letsencrypt/live/subdomain.domain.me/privkey.pem; ssl_certificate /etc/letsencrypt/live/subdomain.domain.me/fullchain.pem; }} Run the nginx server by [[starting/enabling]] {{ic|nginx.service}}. {{Note|{{ic|mariadb.service}} and {{ic|php-fpm.service}} are required.}} === Final steps === All major settings are done. Call your Matomo website in your browser and complete the small installation guide which is not more than checking that everything needed is available and set up and writing your configuration file.
このページで使用されているテンプレート:
テンプレート:AUR
(
ソースを閲覧
)
テンプレート:Bc
(
ソースを閲覧
)
テンプレート:Ic
(
ソースを閲覧
)
テンプレート:Note
(
ソースを閲覧
)
テンプレート:Pkg
(
ソースを閲覧
)
Matomo
に戻る。
検索
検索
Matomoのソースを表示
話題を追加