User Tools

Site Tools


setupsubsonicubuntu18

This is an old revision of the document!


TinkersDocs Home Back to tektinkers.com

Commands to Setup a Subsonic server in Ubuntu 18.

Download & Install Subsonic & Java

sudo wget https://files.tektinkers.com/subsonic-6.1.6.deb
sudo apt-get install openjdk-8-jre
sudo sudo dpkg -i subsonic-6.1.6.deb
sudo reboot now

Check Website's URL via IP or DNS and setup admin account

http://localhost:4040

Install & Setup Nginx Reverse Proxy

sudo apt install nginx -y
sudo nano /etc/nginx/conf.d/subsonic-proxy.conf

add following to document

server {
        listen 80;
        server_name subsonic.your-domain.com;

        location / {
                proxy_pass http://127.0.0.1:4040;
                proxy_set_header Host $http_host;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header X-Forwarded-Proto $scheme;
        }
}
sudo nginx -t
sudo systemctl reload nginx

Installing PHP

sudo apt install php libapache2-mod-php php-mysql
php -v
sudo nano /etc/apache2/mods-enabled/dir.conf

Change:

<IfModule mod_dir.c>
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm
</IfModule>

To:

<IfModule mod_dir.c>
DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm
</IfModule>
sudo systemctl restart apache2
sudo systemctl status apache2

Installing other PHP Packages:

sudo apt install php-cli

Creating a Virtual Host for Apache

Change “your_domain” to the name you want

sudo mkdir /var/www/your_domain
sudo chown -R $USER:$USER /var/www/your_domain
sudo nano /etc/apache2/sites-available/your_domain.conf
setupsubsonicubuntu18.1747259919.txt.gz · Last modified: 2025/05/14 21:58 by tektinkers