<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.jayscafe.net/index.php?action=history&amp;feed=atom&amp;title=Install_tt-rss</id>
	<title>Install tt-rss - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.jayscafe.net/index.php?action=history&amp;feed=atom&amp;title=Install_tt-rss"/>
	<link rel="alternate" type="text/html" href="https://wiki.jayscafe.net/index.php?title=Install_tt-rss&amp;action=history"/>
	<updated>2026-04-08T14:13:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://wiki.jayscafe.net/index.php?title=Install_tt-rss&amp;diff=462&amp;oldid=prev</id>
		<title>Jayctheriot: Created page with &quot;[https://gist.github.com/yeokm1/04f1430cb8a81d86b1ef Instructions from here]&lt;br&gt; &lt;pre&gt; Adapted from [here](https://www.digitalocean.com/community/tutorials/how-to-install-ttrss-with-nginx-for-debian-7-on-a-vps)   1) Install all packages  ```bash sudo apt-get update sudo apt-get install php5 php5-pgsql php5-fpm php-apc php5-curl php5-cli postgresql nginx git ```  2) Configure PostgresSQL  ```bash sudo -u postgres psql postgres=# CREATE USER &quot;www-data&quot; WITH PASSWORD 'yourp...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.jayscafe.net/index.php?title=Install_tt-rss&amp;diff=462&amp;oldid=prev"/>
		<updated>2023-01-07T11:31:07Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;[https://gist.github.com/yeokm1/04f1430cb8a81d86b1ef Instructions from here]&amp;lt;br&amp;gt; &amp;lt;pre&amp;gt; Adapted from [here](https://www.digitalocean.com/community/tutorials/how-to-install-ttrss-with-nginx-for-debian-7-on-a-vps)   1) Install all packages  ```bash sudo apt-get update sudo apt-get install php5 php5-pgsql php5-fpm php-apc php5-curl php5-cli postgresql nginx git ```  2) Configure PostgresSQL  ```bash sudo -u postgres psql postgres=# CREATE USER &amp;quot;www-data&amp;quot; WITH PASSWORD &amp;#039;yourp...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[https://gist.github.com/yeokm1/04f1430cb8a81d86b1ef Instructions from here]&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Adapted from [here](https://www.digitalocean.com/community/tutorials/how-to-install-ttrss-with-nginx-for-debian-7-on-a-vps) &lt;br /&gt;
&lt;br /&gt;
1) Install all packages&lt;br /&gt;
&lt;br /&gt;
```bash&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install php5 php5-pgsql php5-fpm php-apc php5-curl php5-cli postgresql nginx git&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
2) Configure PostgresSQL&lt;br /&gt;
&lt;br /&gt;
```bash&lt;br /&gt;
sudo -u postgres psql&lt;br /&gt;
postgres=# CREATE USER &amp;quot;www-data&amp;quot; WITH PASSWORD 'yourpasshere';&lt;br /&gt;
postgres=# CREATE DATABASE ttrss WITH OWNER &amp;quot;www-data&amp;quot;;&lt;br /&gt;
postgres=# \quit&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
3) Start nginx&lt;br /&gt;
&lt;br /&gt;
```bash&lt;br /&gt;
sudo service nginx start&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
4) Install TT-RSS&lt;br /&gt;
&lt;br /&gt;
```bash&lt;br /&gt;
cd /usr/share/nginx&lt;br /&gt;
git clone https://github.com/gothfox/Tiny-Tiny-RSS.git tt-rss&lt;br /&gt;
sudo mv tt-rss ttrss&lt;br /&gt;
sudo chown -R www-data:www-data ttrss&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
5) Setup TT-RSS&lt;br /&gt;
&lt;br /&gt;
```bash&lt;br /&gt;
cd /etc/nginx/sites-available&lt;br /&gt;
sudo nano ttrss&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
Paste the following into the file. Modify line &amp;quot;server_name&amp;quot; to match your domain name or ip.&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
server {&lt;br /&gt;
    listen  80; ## listen for ipv4; this line is default and implied&lt;br /&gt;
&lt;br /&gt;
    root /usr/share/nginx/ttrss;&lt;br /&gt;
    index index.html index.htm index.php;&lt;br /&gt;
&lt;br /&gt;
    access_log /var/log/nginx/ttrss_access.log;&lt;br /&gt;
    error_log /var/log/nginx/ttrss_error.log info;&lt;br /&gt;
&lt;br /&gt;
    server_name name.here;&lt;br /&gt;
&lt;br /&gt;
    location / {&lt;br /&gt;
        index           index.php;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    location ~ \.php$ {&lt;br /&gt;
        try_files $uri = 404; #Prevents autofixing of path which could be used for exploit&lt;br /&gt;
        fastcgi_pass unix:/var/run/php5-fpm.sock;&lt;br /&gt;
        fastcgi_index index.php;&lt;br /&gt;
        include /etc/nginx/fastcgi_params;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To enable this config file (and disable the default welcome page):&lt;br /&gt;
```&lt;br /&gt;
cd /etc/nginx/sites-enabled&lt;br /&gt;
sudo rm default&lt;br /&gt;
sudo ln -s ../sites-available/ttrss ttrss&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
Restart nginx:&lt;br /&gt;
&lt;br /&gt;
```bash&lt;br /&gt;
sudo service nginx restart&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
5) Setup TT-RSS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Head to http://your.server.ip. You should see the Tiny Tiny RSS install page.&lt;br /&gt;
&lt;br /&gt;
Fill fields as follows:&lt;br /&gt;
&lt;br /&gt;
Database type: Select PostgreSQL&lt;br /&gt;
&lt;br /&gt;
Username: www-data&lt;br /&gt;
&lt;br /&gt;
Password: The password you used during Step 2&lt;br /&gt;
&lt;br /&gt;
Database Name: ttrss&lt;br /&gt;
&lt;br /&gt;
Hostname: leave blank&lt;br /&gt;
&lt;br /&gt;
Port: 5432&lt;br /&gt;
&lt;br /&gt;
Press &amp;quot;Test configuration&amp;quot; button, then &amp;quot;Initialize database&amp;quot; and then &amp;quot;Save configuration&amp;quot;. Now your TTRSS is configured. Go to http://your.server.ip and login to default admin account (Username: &amp;quot;admin&amp;quot; Password: &amp;quot;password&amp;quot;). In the top-right go to Actions-&amp;gt;Preferences. You can change TTRSS settings there. It is recommended to create a new user account and use it for RSS reading instead of admin account. Also, do not forget to change your admin password to a different one from default.&lt;br /&gt;
&lt;br /&gt;
6) Add automatic update with cron&lt;br /&gt;
&lt;br /&gt;
```bash&lt;br /&gt;
sudo nano /etc/crontab&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
Paste the following lines to the end of the file. This tells cron to call update.php every 30 minutes.&lt;br /&gt;
```&lt;br /&gt;
*/30 * * * * www-data /usr/bin/php /usr/share/nginx/ttrss/update.php --feeds --quiet&lt;br /&gt;
```&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jayctheriot</name></author>
	</entry>
</feed>