Tiny Tiny RSS セットアップ

Nid: 1227
  • Posted on: 8 August 2019
  • By: admin

ダウンロード

$ sudo git clone https://git.tt-rss.org/fox/tt-rss.git /var/www/html/tt-rss.octaviadata.com

Nginx設定

$ sudo vi /etc/nginx/sites-available/tt-rss.octaviadata.com
$ sudo ln -s /etc/nginx/sites-available/tt-rss.octaviadata.com /etc/nginx/sites-enabled/
$ sudo nginx -t && sudo nginx -s reload

DB設定

$ sudo mysql -e "CREATE USER 'ttrss_admin'@'localhost' IDENTIFIED BY '5bV3#TMcHfg7';"
$ sudo mysql -e "CREATE DATABASE db_ttrss;"
$ sudo mysql -e "GRANT ALL ON db_ttrss.* TO 'ttrss_admin'@'localhost';"

http://tt-rss.octaviadata.com/install/

$ sudo chmod o+w /var/www/html/tt-rss.octaviadata.com/

権限設定

$ sudo chmod o-w /var/www/html/tt-rss.octaviadata.com/
$ sudo chown -R www-data:www-data /var/www/html/tt-rss.octaviadata.com
$ sudo chmod -R 766 /var/www/html/tt-rss.octaviadata.com/{cache/images,cache/upload,cache/export,feed-icons,lock}

Test configuration, Initialize database, Save configuration

http://tt-rss.octaviadata.com/ 初期ID/PWはadmin/password パスワード変更

service

$ sudo vi /etc/systemd/system/tt-rss.service
[Unit]
Description=ttrss_backend
After=network.target mysql.service postgresql.service

[Service]
User=www-data
ExecStart=/var/www/html/tt-rss.octaviadata.com/update_daemon2.php

[Install]
WantedBy=multi-user.target
$ sudo systemctl start tt-rss
$ sudo systemctl enable tt-rss
$ sudo systemctl restart tt-rss
$ sudo systemctl status tt-rss