[Other doc versions]
[Doc downloads]
This page describes how to manually install Stash from an archive file. However, we strongly recommend that you use the Stash installer instead, for a quick and trouble-free install experience.
You may be interested in these alternative provisioning approaches:
Check the Supported platforms page for details of the application servers, databases, operating systems, web browsers and Java and Git versions that we have tested Stash with and recommend.
Atlassian only officially supports Stash running on x86 hardware and 64-bit derivatives of x86 hardware.
Cygwin Git is not supported. No internal testing is done on that platform, and many aspects of Stash's functionality (pull requests and forks among them) have known issues. When running Stash on Windows, always use msysGit.
In a terminal or command prompt, run this:
java -version
The version of Java should be 1.7.x or 1.8.x. You'll need a 64-bit version of Java if you have a 64-bit operating system.
In a terminal or command prompt, run:
git --version perl --version
The version of Git should be 1.7.6 or higher. The version of Perl should be 5.8.8 or higher.
If you don't see supported versions of Git and Perl, either install or upgrade them – see Installing and upgrading Git.
Download Stash from the Atlassian download site. Looking for the Stash WAR file?
Extract the downloaded file to an install location (without spaces in the path).
The path to the extracted directory is referred to as the
in these instructions.<Stash installation directory>
Never unzip the Stash archive file over the top of an existing Stash installation – each version of Stash includes versioned jar files, such as stash-model-2.4.1.jar
. If you copy these, you end up with multiple versions of Stash's jar files in the classpath, which leads to runtime corruption.
Note that you should use the same user account to both extract Stash and to run Stash (in Step 6.) to avoid possible permission issues at startup. For production installations, we recommend that you create a new dedicated user that will run Stash on your system. See Running Stash with a dedicated user.
The Stash home directory is where your Stash data is stored.
If you are upgrading Stash, simply update the value of STASH_HOME
in the <Stash installation directory
>/bin/setenv
file so the new Stash installation points to your existing Stash home directory (if you use a STASH_HOME
environment variable to specify the home directory location, no change is required).
Otherwise, for a new install, create your Stash home directory (without spaces in the name), and then tell Stash where you created it by editing the <Stash installation directory
>/bin/setenv
file – uncomment the STASH_HOME
line and add the absolute path to your home directory. Here's an example of what that could look like when you're done:
You should not locate your Stash home directory inside the
— they should be entirely separate locations. If you do put the home directory in the <Stash installation directory>
it may be overwritten, and lost, when Stash gets upgraded. And by the way, you'll need separate Stash home directories if you want to run multiple instances of Stash.<Stash installation directory>
shared
directoryStarting with Stash 3.8, the server.xml file (which, among other things, configures which port Stash serves web requests on) should be located in the shared
directory of your Stash home. When you unzip/untar the Stash installation archive server.xml will be located in <Stash installation directory>/conf
. You should move this to the shared
directory of your Stash home ensuring it is readable by the user account which will run Stash.
If you leave it in <Stash installation directory>/conf
Stash will still read it but when you upgrade to new versions you will have to remember to copy it across to the new Stash installation directory. Much easier is to keep it in the shared
directory of your Stash home as it will not have to be moved for each upgrade.
There are a couple of ways in which you can start Stash – see Starting and stopping Stash.
Now, in your browser, go to http://localhost:7990 and run through the Setup Wizard. In the Setup Wizard:
Configure your email server so users can receive a link from Stash that lets them generate their own passwords. See Setting up your mail server.
Now is the time to set up your users in Stash, and to tell Stash about any existing repositories you have. Please the following pages for the details:
For production or enterprise environments we recommend that you configure the additional aspects described on Using Stash in the enterprise. The aspects described there are not necessary when you are installing for evaluation purposes only.
If you wish to install Stash as a service on Linux or Windows, see either of:
See Starting and stopping Stash.
To uninstall Stash, stop Stash as described above and then delete the <Stash installation directory
> and Stash home directory.