Page 1 of 1

Subsonic on VPS

PostPosted: Sun May 02, 2010 4:24 pm
by tlowing
Here's what I did to get subsonic working on a VPS hosted at WiredTree on CentOS


1) Log into the VPS WHM, and click on "ConfigServer Security&Firewall", click on "Firewall Configuration", select TCP_IN and add 8080 or whatever port you wish to use for subsonic. Do the same for TCP_OUT. Click the change button on the bottom of the page.
1) Install Putty and WinSCP
2) Download subsonic rpm
3) Connect to server as root and copy rpm to /tmp using WinSCP
4) Using PuTTY, connect to server as root, cd to tmp folder and run the command:

Code: Select all
sudo yum install --nogpgcheck subsonic-x.x.rpm


5) Using WinSCP go to /etc/sysconfig/subsonic and edit with setting similar to these. Create the SUBSONIC_DEFAULT_MUSIC_FOLDER,SUBSONIC_DEFAULT_PODCAST_FOLDER and SUBSONIC_DEFAULT_PLAYLIST_FOLDER on the server if they don't exist.

Code: Select all



--max-memory=150 --host=0.0.0.0 --port=8080 --default-music-folder=/home/scmadmin/listen/music/  --default-podcast-folder=/home/scmadmin/listen/music/podcast/ --default-playlist-folder=/home/scmadmin/listen/playlists/


6) Restart subsonic

Code: Select all
sudo service subsonic restart


7) Go to yourdomain.com:8080 to test and set up subsonic.

PostPosted: Sun May 02, 2010 5:32 pm
by sindre_mehus
Thanks for sharing! Here's a couple of comments:

1. The preferred way to change startup parameters is to edit the /etc/sysconfig/subsonic file, otherwise they will be lost when you upgrade Subsonic.

2. There is normally no reason to override SUBSONIC_HOST. The default value of 0.0.0.0 will bind to all available network interfaces.

3. Music, podcast and playlist folders are more easily set up from the web interface, rather than in the script.

4. Many providers block port 8080, so if you have problems try to change it to something else.

Thanks,
Sindre

PostPosted: Mon May 03, 2010 2:35 pm
by tlowing
sindre_mehus wrote:Thanks for sharing! Here's a couple of comments:

1. The preferred way to change startup parameters is to edit the /etc/sysconfig/subsonic file, otherwise they will be lost when you upgrade Subsonic.

-- noted, thanks

2. There is normally no reason to override SUBSONIC_HOST. The default value of 0.0.0.0 will bind to all available network interfaces.

-- I have numerous sites hosted on the VPS hosting account. If I set it to 0.0.0.0 would subsonic appear for every account when they went to that port? e.g. some-other-domain.com:8080?


3. Music, podcast and playlist folders are more easily set up from the web interface, rather than in the script.

-- Do you mean if I set folder paths under" Settings->Music Folders" it will create the folder if it does not exist? Do I have to create all three folders (music, podcast and playlist)? If so, will subsonic automatically unzip uploaded contents to the correct folders and create new playlists in the playlist folder?

-- When I added a new file it came up as "Incomming" rather than under the band's name. Is there a trick to formatting the zip file prior to upload? Or is there some interface for moving albums around once uploaded?


4. Many providers block port 8080, so if you have problems try to change it to something else.

What's the easiest way to run this so it serves up on port 80 when the user accesses a subfolder. e.g. mydomain.com/music/ ?

Thanks,
Sindre


Thanks,

Trevor