User Tools

Site Tools


setupsubsonicubuntu18

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
setupsubsonicubuntu18 [2025/05/14 21:52] – created tektinkerssetupsubsonicubuntu18 [2025/05/14 22:04] (current) tektinkers
Line 8: Line 8:
 <code>sudo apt-get install openjdk-8-jre</code> <code>sudo apt-get install openjdk-8-jre</code>
 <code>sudo sudo dpkg -i subsonic-6.1.6.deb</code> <code>sudo sudo dpkg -i subsonic-6.1.6.deb</code>
-<code>sudo service subsonic restart</code>+<code>sudo reboot now</code>
  
 //Check Website's URL via IP or DNS and setup admin account// //Check Website's URL via IP or DNS and setup admin account//
 +<code>http://localhost:4040</code>
  
-**Installing MySQL**+**Install & Setup Nginx Reverse Proxy**
  
-<code>sudo apt install mysql-server</code> +<code>sudo apt install nginx -y</code> 
-<code>sudo mysql</code> +<code>sudo nano /etc/nginx/conf.d/subsonic-proxy.conf</code> 
-//change "rootand "password" to whatever you want// +//add following to document - change "subsonic.your-domain.com"// 
-<code>ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';</code> +<code>server { 
-<code>exit</code> +        listen 80
-<code>sudo mysql_secure_installation</code>+        server_name subsonic.your-domain.com;
  
-**Installing PHP**+        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; 
 +        } 
 +}</code> 
 +<code>sudo nginx -t</code> 
 +<code>sudo systemctl reload nginx</code> 
 +<code>sudo apt-get install software-properties-common -y</code> 
 +<code>sudo add-apt-repository ppa:certbot/certbot</code> 
 +<code>sudo apt-get update</code> 
 +<code>sudo apt-get install certbot python3-certbot-nginx -y</code> 
 +<code>sudo certbot --nginx --agree-tos</code> 
 +<code>sudo nano /etc/nginx/conf.d/subsonic-proxy.conf</code> 
 +//add following line to space after "proxy_set_header X - Forwarded - Proto $scheme;"// 
 +<code>proxy_redirect http:// https://;</code> 
 +<code>sudo nginx -t</code> 
 +<code>sudo systemctl reload nginx</code>
  
-<code>sudo apt install php libapache2-mod-php php-mysql</code> +**Increase Upload File Size for adding albums** 
-<code>php -v</code> +<code>sudo nano /etc/nginx/nginx.conf</code> 
-<code>sudo nano /etc/apache2/mods-enabled/dir.conf</code> +//Add line to http { block (at top)// 
- +<code>client_max_body_size 102400M;</code> 
-//Change:// +<code>sudo reboot now</code>
-<code> +
-<IfModule mod_dir.c> +
-DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm +
-</IfModule> +
-</code> +
- +
-__To:__ +
-<code> +
-<IfModule mod_dir.c> +
-DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm +
-</IfModule> +
-</code> +
- +
-<code>sudo systemctl restart apache2</code> +
-<code>sudo systemctl status apache2</code> +
- +
-//Installing other PHP Packages:// +
-<code>sudo apt install php-cli</code> +
- +
-**Creating a Virtual Host for Apache** +
- +
-//Change "your_domain" to the name you want// +
-<code>sudo mkdir /var/www/your_domain</code> +
-<code>sudo chown -R $USER:$USER /var/www/your_domain</code> +
-<code>sudo nano /etc/apache2/sites-available/your_domain.conf</code>+
setupsubsonicubuntu18.1747259556.txt.gz · Last modified: 2025/05/14 21:52 by tektinkers