]>
Commit | Line | Data |
---|---|---|
43ad7c8e V |
1 | To install Shaarli, simply place the files in a directory under your webserver's |
2 | Document Root (or directly at the document root). | |
3 | ||
4 | Also, please make sure your server meets the [requirements](Server-requirements) | |
5 | and is properly [configured](Server-configuration). | |
fdf88d19 | 6 | |
cfcc3819 A |
7 | Multiple releases branches are available: |
8 | ||
9 | - latest (last release) | |
10 | - stable (previous major release) | |
11 | - master (development) | |
12 | ||
13 | Using 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 | |
7a205fb2 | 18 | - using Docker: [see the documentation](docker/shaarli-images.md) |
43ad7c8e | 19 | |
76c3a4db | 20 | -------------------------------------------------------------------------------- |
fdf88d19 A |
21 | |
22 | ## Latest release (recommended) | |
76c3a4db | 23 | |
3cc8c898 | 24 | ### Download as an archive |
fdf88d19 | 25 | |
76c3a4db | 26 | In most cases, you should download the latest Shaarli release from the [releases](https://github.com/shaarli/Shaarli/releases) page. **Download our *shaarli-full* archive** to include dependencies. |
fdf88d19 | 27 | |
f452d3c4 | 28 | The current latest released version is `v0.9.3` |
fdf88d19 | 29 | |
fdf88d19 | 30 | ```bash |
f452d3c4 V |
31 | $ wget https://github.com/shaarli/Shaarli/releases/download/v0.9.3/shaarli-v0.9.3-full.zip |
32 | $ unzip shaarli-v0.9.3-full.zip | |
3cc8c898 | 33 | $ mv Shaarli /path/to/shaarli/ |
fdf88d19 A |
34 | ``` |
35 | ||
3cc8c898 | 36 | ### Using git |
fdf88d19 | 37 | |
76c3a4db | 38 | Cloning using `git` or downloading Github branches as zip files requires additional steps: |
39 | ||
40 | * Install [Composer](Unit-tests.md#install_composer) to manage Shaarli dependencies. | |
41 | * Install [python3-virtualenv](https://pypi.python.org/pypi/virtualenv) to build the local HTML documentation. | |
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 |
76c3a4db | 48 | $ make htmldoc |
3cc8c898 | 49 | ``` |
fdf88d19 | 50 | |
76c3a4db | 51 | -------------------------------------------------------------------------------- |
52 | ||
fdf88d19 A |
53 | ## Stable version |
54 | ||
55 | The stable version has been experienced by Shaarli users, and will receive security updates. | |
56 | ||
76c3a4db | 57 | |
fdf88d19 A |
58 | ### Download as an archive |
59 | ||
60 | As a .zip archive: | |
61 | ||
62 | ```bash | |
63 | $ wget https://github.com/shaarli/Shaarli/archive/stable.zip | |
64 | $ unzip stable.zip | |
65 | $ mv Shaarli-stable /path/to/shaarli/ | |
66 | ``` | |
67 | ||
68 | As a .tar.gz archive : | |
69 | ||
70 | ```bash | |
71 | $ wget https://github.com/shaarli/Shaarli/archive/stable.tar.gz | |
72 | $ tar xvf stable.tar.gz | |
73 | $ mv Shaarli-stable /path/to/shaarli/ | |
74 | ``` | |
75 | ||
76c3a4db | 76 | ### Using git |
fdf88d19 | 77 | |
76c3a4db | 78 | Install [Composer](Unit-tests.md#install_composer) to manage Shaarli dependencies. |
fdf88d19 A |
79 | |
80 | ```bash | |
81 | $ git clone https://github.com/shaarli/Shaarli.git -b stable /path/to/shaarli/ | |
82 | # install/update third-party dependencies | |
83 | $ cd /path/to/shaarli/ | |
43ad7c8e | 84 | $ composer install --no-dev --prefer-dist |
fdf88d19 A |
85 | ``` |
86 | ||
76c3a4db | 87 | |
88 | -------------------------------------------------------------------------------- | |
89 | ||
fdf88d19 A |
90 | ## Development version (mainline) |
91 | ||
92 | _Use at your own risk!_ | |
93 | ||
76c3a4db | 94 | Install [Composer](Unit-tests.md#install_composer) to manage Shaarli dependencies. |
95 | ||
fdf88d19 A |
96 | To get the latest changes from the `master` branch: |
97 | ||
98 | ```bash | |
f452d3c4 | 99 | # clone the repository |
b230bf20 | 100 | $ git clone https://github.com/shaarli/Shaarli.git -b master /path/to/shaarli/ |
fdf88d19 A |
101 | # install/update third-party dependencies |
102 | $ cd /path/to/shaarli | |
43ad7c8e | 103 | $ composer install --no-dev --prefer-dist |
1a47014f | 104 | $ make translate |
76c3a4db | 105 | $ make htmldoc |
fdf88d19 A |
106 | ``` |
107 | ||
76c3a4db | 108 | ------------------------------------------------------------------------------- |
109 | ||
fdf88d19 A |
110 | ## Finish Installation |
111 | ||
112 | Once Shaarli is downloaded and files have been placed at the correct location, open it this location your favorite browser. | |
113 | ||
1a47014f | 114 | ![install screenshot](images/install-shaarli.png) |
fdf88d19 A |
115 | |
116 | Setup your Shaarli installation, and it's ready to use! | |
117 | ||
fdf88d19 A |
118 | ## Updating Shaarli |
119 | ||
53ed6d7d | 120 | See [Upgrade and Migration](Upgrade-and-migration) |