9 Installation
dag edited this page 2022-03-21 02:07:29 +01:00

How to install in Linux server

These instruction were tested on a fresh Debian 11 and Ubuntu 20.04.

apt-update
apt install nginx php-fpm php-mbstring php-simplexml php-curl
rm /etc/nginx/sites-enabled/default
cd /var/www
git clone https://github.com/RSS-Bridge/rss-bridge.git
chown -R www-data:www-data ./

Create /etc/nginx/sites-enabled/rssbridge:

server {                                                                                                                
    listen 80 default_server;                                                                                              
    root /var/www/rss-bridge;                                                                                              
    access_log /var/log/nginx/rssbridge.access.log;                                                                        
    error_log /var/log/nginx/rssbridge.error.log;                                                                          
    index index.php;                                                                                                       
                                                                                                                           
    location / {                                                                                                           
        try_files $uri $uri/ /index.php$is_args$args;                                                                      
    }                                                                                                                      
                                                                                                                           
    location ~ \.php$ {                                                                                                    
        include snippets/fastcgi-php.conf;                                                                                 
        fastcgi_pass unix:/run/php/php-fpm.sock;                                                                           
    }                                                                                                                      
} 
systemctl reload nginx

The application is now browsable at its ip address and port 80.

You might want to add a server_name to the nginx config and remove it as a default server.