]> git.immae.eu Git - github/shaarli/Shaarli.git/blame - doc/md/Download-and-Installation.md
Merge pull request #1002 from ArthurHoaro/doc/install-docker
[github/shaarli/Shaarli.git] / doc / md / Download-and-Installation.md
CommitLineData
43ad7c8e
V
1To install Shaarli, simply place the files in a directory under your webserver's
2Document Root (or directly at the document root).
3
4Also, please make sure your server meets the [requirements](Server-requirements)
5and is properly [configured](Server-configuration).
fdf88d19 6
cfcc3819
A
7Multiple releases branches are available:
8
9- latest (last release)
10- stable (previous major release)
11- master (development)
12
13Using one of the following methods:
fdf88d19 14
43ad7c8e
V
15- by downloading full release archives including all dependencies
16- by downloading Github archives
17- by cloning the Git repository
cfcc3819 18- using Docker: [see the documentation](docker/shaarli-images)
43ad7c8e
V
19
20---
fdf88d19
A
21
22## Latest release (recommended)
3cc8c898 23### Download as an archive
53ed6d7d 24Get the latest released version from the [releases](https://github.com/shaarli/Shaarli/releases) page.
fdf88d19 25
3cc8c898 26**Download our *shaarli-full* archive** to include dependencies.
fdf88d19 27
d3fee4f4 28The current latest released version is `v0.9.1`
fdf88d19 29
3cc8c898 30Or in command lines:
fdf88d19
A
31
32```bash
d3fee4f4
V
33$ wget https://github.com/shaarli/Shaarli/releases/download/v0.9.1/shaarli-v0.9.1-full.zip
34$ unzip shaarli-v0.9.1-full.zip
3cc8c898 35$ mv Shaarli /path/to/shaarli/
fdf88d19
A
36```
37
cfcc3819
A
38In most cases, download Shaarli from the [releases](https://github.com/shaarli/Shaarli/releases) page.
39Cloning using `git` or downloading Github branches as zip files requires additional steps (see below).
fdf88d19 40
3cc8c898 41### Using git
fdf88d19 42
3cc8c898 43```
43ad7c8e 44$ mkdir -p /path/to/shaarli && cd /path/to/shaarli/
cfcc3819 45$ git clone -b latest https://github.com/shaarli/Shaarli.git .
43ad7c8e 46$ composer install --no-dev --prefer-dist
1a47014f 47$ make translate
3cc8c898 48```
fdf88d19 49
fdf88d19
A
50## Stable version
51
52The stable version has been experienced by Shaarli users, and will receive security updates.
53
54### Download as an archive
55
56As a .zip archive:
57
58```bash
59$ wget https://github.com/shaarli/Shaarli/archive/stable.zip
60$ unzip stable.zip
61$ mv Shaarli-stable /path/to/shaarli/
62```
63
64As a .tar.gz archive :
65
66```bash
67$ wget https://github.com/shaarli/Shaarli/archive/stable.tar.gz
68$ tar xvf stable.tar.gz
69$ mv Shaarli-stable /path/to/shaarli/
70```
71
72### Clone with Git
73
53ed6d7d 74[Composer](https://getcomposer.org/) is required to build a functional Shaarli installation when pulling from git.
fdf88d19
A
75
76```bash
77$ git clone https://github.com/shaarli/Shaarli.git -b stable /path/to/shaarli/
78# install/update third-party dependencies
79$ cd /path/to/shaarli/
43ad7c8e 80$ composer install --no-dev --prefer-dist
fdf88d19
A
81```
82
fdf88d19
A
83## Development version (mainline)
84
85_Use at your own risk!_
86
87To get the latest changes from the `master` branch:
88
89```bash
90# clone the repository
b230bf20 91$ git clone https://github.com/shaarli/Shaarli.git -b master /path/to/shaarli/
fdf88d19
A
92# install/update third-party dependencies
93$ cd /path/to/shaarli
43ad7c8e 94$ composer install --no-dev --prefer-dist
1a47014f 95$ make translate
fdf88d19
A
96```
97
fdf88d19
A
98## Finish Installation
99
100Once Shaarli is downloaded and files have been placed at the correct location, open it this location your favorite browser.
101
1a47014f 102![install screenshot](images/install-shaarli.png)
fdf88d19
A
103
104Setup your Shaarli installation, and it's ready to use!
105
fdf88d19
A
106## Updating Shaarli
107
53ed6d7d 108See [Upgrade and Migration](Upgrade-and-migration)