Page 1 of 1
How do I setup tomcat/madsonic
Posted: 07 Feb 2013, 15:13
by justin
I am running ubuntu server and have never messed with tomcat can someone please guide me throw the installation and deploying the war?
Re: How do I setup tomcat/madsonic
Posted: 08 Feb 2013, 01:51
by Madsonic
Hi,
I hope this little guide help you:
1. Install Tomcat
Code: Select all
$ sudo apt-get install tomcat7 tomcat7-common tomcat7-admin
2. Add an administrative user to Tomcat
Tomcat does have any users defined that could be used for administrative purposes so we need
to open
tomcat-users.xml in a text editor and add a user with the proper roles assigned to it.
Code: Select all
$ sudo nano /etc/tomcat7/tomcat-users.xml
Replace its content with the following and make sure that you replace
USERNAME and
PASSWORD with the values you want:
Code: Select all
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="admin-gui"/>
<role rolename="manager-gui"/>
<user username="USERNAME" password="PASSWORD" roles="manager-gui,admin-gui"/>
</tomcat-users>
On Linux, Madsonic keeps its files in
/var/madsonic. Depending on your configuration, Tomcat may not be permitted to create this directory,
in which case you have to create it manually:
Code: Select all
$ sudo chown tomcat7:tomcat7 /var/madsonic
3. Restart Tomcat Service
4. Deploy and administrate
the
madsonic.war file can be easy managed within the admin GUI
http://localhost:8080/manager/html
best regards
Re: How do I setup tomcat/madsonic
Posted: 08 Feb 2013, 02:35
by justin
this is all i get when i try to start it FAIL - Application at context path /subsonic could not be started
Re: How do I setup tomcat/madsonic
Posted: 08 Feb 2013, 02:41
by Madsonic
justin wrote:this is all i get when i try to start it FAIL - Application at context path /subsonic could not be started
do you have a
/var/subsonic directory? whats in there?
any log file, errors?
Re: How do I setup tomcat/madsonic
Posted: 08 Feb 2013, 04:19
by justin
Madevil wrote:justin wrote:this is all i get when i try to start it FAIL - Application at context path /subsonic could not be started
do you have a
/var/subsonic directory? whats in there?
any log file, errors?
Got it Working thanks for your help. after deploying, it copied everything to /var/subsonic like it was suppose to but it must have changed permissions because I had to sudo chown tomcat7:tomcat7 /var/subsonic again then it let me start it.
Re: How do I setup tomcat/madsonic
Posted: 02 Jun 2013, 16:37
by Saklasklas222
Hi,
its possible to run madsonic on same tomcat installation wheres allready running subsonic?
Re: How do I setup tomcat/madsonic
Posted: 20 Dec 2013, 20:41
by mad1993max
hi is the prozess for madsonic war the same
doe i have to deploy only the madsonic war file ore also the subsonic?
Re: How do I setup tomcat/madsonic
Posted: 30 Aug 2015, 15:54
by aadam12
@Madevil thanks for the HowTo
FYI: Wherever it says "gedit" please change it to "nano" or "vi"... this is Ubuntu Server there is no GUI.
Re: How do I setup tomcat/madsonic
Posted: 30 Aug 2015, 16:03
by Madsonic
aadam12 wrote:@Madevil thanks for the HowTo
FYI: Wherever it says "gedit" please change it to "nano" or "vi"... this is Ubuntu Server there is no GUI.
you are right nano is the better choice !
PS: complete guide updated!
Re: How do I setup tomcat/madsonic
Posted: 09 Aug 2016, 19:19
by thechez
Is anyone else having issues with any of the 6.0 or 6.1 versions deploying in Tomcat?
I'm on a QNAP NAS and am overwriting the .war file with the newer file but it will not deploy.
Do I need to wipe out my 5.1 instance on the server first and then deploy? I swear I've tried that and
it wouldn't install the WAR package as a whole for 6.0 or 6.1.
Thanks.