Move c:/subsonic folder in Windows install?

Need help? Post your questions here.

Moderator: moderators

Move c:/subsonic folder in Windows install?

Postby braddyo » Tue Dec 09, 2008 7:57 pm

Hello!

Just wondering if it is possible to move the c:/subsonic folder to a different drive while keeping the windows service intact. I don't really care about the gui settings prog, etc.

Bradford
User avatar
braddyo
 
Posts: 97
Joined: Mon Oct 29, 2007 10:27 pm
Location: UT

Postby sindre_mehus » Wed Dec 10, 2008 11:19 am

Yes. Add the following line to c:/program files/subsonic/subsonic.exe.vmoptions:

Code: Select all
-Dsubsonic.home=c:/your/favorite/directory


and restart Subsonic.
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby braddyo » Wed Dec 10, 2008 6:52 pm

Great! Thanks for the tip.
User avatar
braddyo
 
Posts: 97
Joined: Mon Oct 29, 2007 10:27 pm
Location: UT

Postby braddyo » Sun Dec 28, 2008 10:10 pm

In order for this to work for me consistently I had to take the following steps.

    * Install Subsonic as normal and verify successful operation by browsing to my site
    * Stop Subsonic service
    * Plug in "-Dsubsonic.home=c:/your/favorite/directory" into subsonic.exe.vmoptions
    * Copy existing subsonic dir (not the C:\Program Files\Subonic dir) to the new location
    * Start service


It appears that although it was creating the files by itself in the new directory, something was missing, what it was I haven't been able to tell.
User avatar
braddyo
 
Posts: 97
Joined: Mon Oct 29, 2007 10:27 pm
Location: UT

Postby braddyo » Wed Feb 04, 2009 8:46 pm

Sindre,

It looks like you made some changes with 3.6 - the modification should now be made in subsonic-service.exe.vmoptions file.

I would request that the vmoptions files be populated with all possible options, along with documentation for the options. The php.ini is a good example of this.

Bradford
User avatar
braddyo
 
Posts: 97
Joined: Mon Oct 29, 2007 10:27 pm
Location: UT

Postby disgustipated » Fri Feb 25, 2011 9:40 pm

is there a way to do this with the WAR installation?
disgustipated
 
Posts: 96
Joined: Wed Jan 26, 2011 4:18 pm
Location: US

Postby disgustipated » Sat Feb 26, 2011 4:21 am

i ended up falling back to the windows service installer and using this on the recent version and it still works great!

couple questions:
what are some other options that will work in this file

what files need modified to set this setting in the war installation if using tomcat/war? just putting it in the tomcat startup options?
disgustipated
 
Posts: 96
Joined: Wed Jan 26, 2011 4:18 pm
Location: US

Re: Move c:/subsonic folder in Windows install?

Postby cleanerz » Sun Jan 15, 2012 1:53 am

Hey, i have discovered subsonic and im using, hacking, integrating, modding it... mainly it´s joomla integration with the html5 minisub.
I love it!
But I have to use the WAR Version and i need to keep c: clean of apps (OS only).

Is there any solution to move the c:subsonic folder in WAR Version!?

greetz
cleanerz
 
Posts: 14
Joined: Sun Jan 15, 2012 1:46 am

Re: Move c:/subsonic folder in Windows install?

Postby chugmonkey » Mon Jan 16, 2012 9:04 am

cleanerz wrote:But I have to use the WAR Version and i need to keep c: clean of apps (OS only).

Is there any solution to move the c:subsonic folder in WAR Version!?



Hi Cleanerz,

Absolutely there's a solution.

Stop Tomcat (assuming you're using Tomcat!).

Open Apache Tomcat properties - right click on Tomcat Manager in task bar and select Configure - select the Java tab:

ApacheTomcatPropertiesJVM.png


Now, add the same string used for the vmoptions file (note direction of slashes - never checked if forward slashes work):
-Dsubsonic.home=d:\new\subsonic\location

The -D is a system properties parameter used when Tomcat starts the Java virtual machine - not a parameter held in subsonic. If your path contains spaces, enclose the bit after the Equals sign in double quotes.

Cut/copy your C:\subsonic folder to its new location.

Start Tomcat and visit your subsonic site in your browser!

Peace
chugmonkey
 
Posts: 20
Joined: Wed Jun 25, 2008 10:11 am

Re: Move c:/subsonic folder in Windows install?

Postby cleanerz » Tue Jan 17, 2012 7:39 am

many thanks chugmonkey!
but hmm... yes i use tomcat (v7)... but as part of xampp. there is no tomcat manager in taskbar. :(
i found this and got the feeling it has something to do with it...

Do not set the variables in this script. Instead put them into a script
rem setenv.bat in CATALINA_BASE/bin to keep your customizations separate.
rem
rem CATALINA_HOME May point at your Catalina "build" directory.
rem
rem CATALINA_BASE (Optional) Base directory for resolving dynamic portions
rem of a Catalina installation. If not present, resolves to
rem the same directory that CATALINA_HOME points to.
rem
rem CATALINA_OPTS (Optional) Java runtime options used when the "start",
rem "run" or "debug" command is executed.
rem Include here and not in JAVA_OPTS all options, that should
rem only be used by Tomcat itself, not by the stop process,
rem the version command etc.
rem Examples are heap size, GC logging, JMX ports etc.
rem
rem CATALINA_TMPDIR (Optional) Directory path location of temporary directory
rem the JVM should use (java.io.tmpdir). Defaults to
rem %CATALINA_BASE%\temp.
rem
rem JAVA_HOME Must point at your Java Development Kit installation.
rem Required to run the with the "debug" argument.
rem
rem JRE_HOME Must point at your Java Runtime installation.
rem Defaults to JAVA_HOME if empty. If JRE_HOME and JAVA_HOME
rem are both set, JRE_HOME is used.
rem
rem JAVA_OPTS (Optional) Java runtime options used when any command
rem is executed.
rem Include here and not in CATALINA_OPTS all options, that
rem should be used by Tomcat and also by the stop process,
rem the version command etc.
rem Most options should go into CATALINA_OPTS.
rem
rem JAVA_ENDORSED_DIRS (Optional) Lists of of semi-colon separated directories
rem containing some jars in order to allow replacement of APIs
rem created outside of the JCP (i.e. DOM and SAX from W3C).
rem It can also be used to update the XML parser implementation.
rem Defaults to $CATALINA_HOME/endorsed.
rem
rem JPDA_TRANSPORT (Optional) JPDA transport used when the "jpda start"
rem command is executed. The default is "dt_socket".
rem
rem JPDA_ADDRESS (Optional) Java runtime options used when the "jpda start"
rem command is executed. The default is 8000.
rem
rem JPDA_SUSPEND (Optional) Java runtime options used when the "jpda start"
rem command is executed. Specifies whether JVM should suspend
rem execution immediately after startup. Default is "n".
rem
rem JPDA_OPTS (Optional) Java runtime options used when the "jpda start"
rem command is executed. If used, JPDA_TRANSPORT, JPDA_ADDRESS,
rem and JPDA_SUSPEND are ignored. Thus, all required jpda
rem options MUST be specified. The default is:
rem
rem -agentlib:jdwp=transport=%JPDA_TRANSPORT%,
rem address=%JPDA_ADDRESS%,server=y,suspend=%JPDA_SUSPEND%
rem


or can i run tomcat7 standalone with xampp?
if not, do i have to use apache + apache tomcat?

thanks
cleanerz
 
Posts: 14
Joined: Sun Jan 15, 2012 1:46 am

Re: Move c:/subsonic folder in Windows install?

Postby chugmonkey » Tue Jan 17, 2012 9:13 am

cleanerz wrote:yes i use tomcat (v7)... but as part of xampp. there is no tomcat manager in taskbar. :(

No problem - that just means xampp doesn't fire it up. Navigate to the xampp\tomcat folder and run the tomcat7w.exe program, or whichever program looks like tomcatXw.exe, where X is your major version.

cleanerz wrote:or can i run tomcat7 standalone with xampp?


You don't have to use the bundled version of Tomcat at all. In the early days when Xampp had just introduced Tomcat, I found it more preferable to install Tomcat independently to ensure my security settings were better. To keep Tomcat up to date, you can simply install the latest version using xampp\tomcat as your root installation folder :wink:
If you DO want to do that, the only thing you'll need to do on restart is add the subsonic folder location system property again.

cleanerz wrote:if not, do i have to use apache + apache tomcat?

No - Tomcat in Xampp is an extension of Apache. You can install Tomcat on its own with nothing else and deploy any WAR application as you wish.

Let me know if you have any joy!
chugmonkey
 
Posts: 20
Joined: Wed Jun 25, 2008 10:11 am

Re: Move c:/subsonic folder in Windows install?

Postby cleanerz » Tue Jan 17, 2012 7:36 pm

Yes, i got it. It wasnt too easy... the new xampp has tomcat somehow integrated without even installing the service.
tomcat7w.exe said ... service not installed.

I went with standalone tomcat server now. works like you said! THX!

...on to the next challenge.. ;D
cleanerz
 
Posts: 14
Joined: Sun Jan 15, 2012 1:46 am


Return to Help

Who is online

Users browsing this forum: No registered users and 31 guests