2017-08-05 11:56:24 +02:00
To install Shaarli, simply place the files in a directory under your webserver's
Document Root (or directly at the document root).
Also, please make sure your server meets the [requirements ](Server-requirements )
and is properly [configured ](Server-configuration ).
2016-10-12 12:36:59 +02:00
2017-10-22 12:50:04 +02:00
Multiple releases branches are available:
- latest (last release)
- stable (previous major release)
- master (development)
Using one of the following methods:
2016-10-12 12:36:59 +02:00
2017-08-05 11:56:24 +02:00
- by downloading full release archives including all dependencies
- by downloading Github archives
- by cloning the Git repository
2017-12-09 15:28:34 +01:00
- using Docker: [see the documentation ](docker/shaarli-images.md )
2017-08-05 11:56:24 +02:00
2017-11-18 16:22:43 +01:00
--------------------------------------------------------------------------------
2016-10-12 12:36:59 +02:00
## Latest release (recommended)
2017-11-18 16:22:43 +01:00
2016-12-12 03:38:12 +01:00
### Download as an archive
2016-10-12 12:36:59 +02:00
2017-11-18 16:22:43 +01:00
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.
2016-10-12 12:36:59 +02:00
2018-01-04 18:49:05 +01:00
The current latest released version is `v0.9.3`
2016-10-12 12:36:59 +02:00
```bash
2018-01-04 18:49:05 +01:00
$ wget https://github.com/shaarli/Shaarli/releases/download/v0.9.3/shaarli-v0.9.3-full.zip
$ unzip shaarli-v0.9.3-full.zip
2016-12-12 03:38:12 +01:00
$ mv Shaarli /path/to/shaarli/
2016-10-12 12:36:59 +02:00
```
2016-12-12 03:38:12 +01:00
### Using git
2016-10-12 12:36:59 +02:00
2017-11-18 16:22:43 +01:00
Cloning using `git` or downloading Github branches as zip files requires additional steps:
* Install [Composer ](Unit-tests.md#install_composer ) to manage Shaarli dependencies.
* Install [python3-virtualenv ](https://pypi.python.org/pypi/virtualenv ) to build the local HTML documentation.
2016-12-12 03:38:12 +01:00
```
2017-08-05 11:56:24 +02:00
$ mkdir -p /path/to/shaarli & & cd /path/to/shaarli/
2017-10-22 12:50:04 +02:00
$ git clone -b latest https://github.com/shaarli/Shaarli.git .
2017-08-05 11:56:24 +02:00
$ composer install --no-dev --prefer-dist
2017-09-01 18:47:32 +02:00
$ make translate
2017-11-18 16:22:43 +01:00
$ make htmldoc
2016-12-12 03:38:12 +01:00
```
2016-10-12 12:36:59 +02:00
2017-11-18 16:22:43 +01:00
--------------------------------------------------------------------------------
2016-10-12 12:36:59 +02:00
## Stable version
The stable version has been experienced by Shaarli users, and will receive security updates.
2017-11-18 16:22:43 +01:00
2016-10-12 12:36:59 +02:00
### Download as an archive
As a .zip archive:
```bash
$ wget https://github.com/shaarli/Shaarli/archive/stable.zip
$ unzip stable.zip
$ mv Shaarli-stable /path/to/shaarli/
```
As a .tar.gz archive :
```bash
$ wget https://github.com/shaarli/Shaarli/archive/stable.tar.gz
$ tar xvf stable.tar.gz
$ mv Shaarli-stable /path/to/shaarli/
```
2017-11-18 16:22:43 +01:00
### Using git
2016-10-12 12:36:59 +02:00
2017-11-18 16:22:43 +01:00
Install [Composer ](Unit-tests.md#install_composer ) to manage Shaarli dependencies.
2016-10-12 12:36:59 +02:00
```bash
$ git clone https://github.com/shaarli/Shaarli.git -b stable /path/to/shaarli/
# install/update third-party dependencies
$ cd /path/to/shaarli/
2017-08-05 11:56:24 +02:00
$ composer install --no-dev --prefer-dist
2016-10-12 12:36:59 +02:00
```
2017-11-18 16:22:43 +01:00
--------------------------------------------------------------------------------
2016-10-12 12:36:59 +02:00
## Development version (mainline)
_Use at your own risk!_
2017-11-18 16:22:43 +01:00
Install [Composer ](Unit-tests.md#install_composer ) to manage Shaarli dependencies.
2016-10-12 12:36:59 +02:00
To get the latest changes from the `master` branch:
```bash
2018-01-04 18:49:05 +01:00
# clone the repository
2017-05-07 18:44:05 +02:00
$ git clone https://github.com/shaarli/Shaarli.git -b master /path/to/shaarli/
2016-10-12 12:36:59 +02:00
# install/update third-party dependencies
$ cd /path/to/shaarli
2017-08-05 11:56:24 +02:00
$ composer install --no-dev --prefer-dist
2017-09-01 18:47:32 +02:00
$ make translate
2017-11-18 16:22:43 +01:00
$ make htmldoc
2016-10-12 12:36:59 +02:00
```
2017-11-18 16:22:43 +01:00
-------------------------------------------------------------------------------
2016-10-12 12:36:59 +02:00
## Finish Installation
Once Shaarli is downloaded and files have been placed at the correct location, open it this location your favorite browser.
2017-09-01 18:47:32 +02:00
![install screenshot ](images/install-shaarli.png )
2016-10-12 12:36:59 +02:00
Setup your Shaarli installation, and it's ready to use!
## Updating Shaarli
2017-01-26 18:52:54 +01:00
See [Upgrade and Migration ](Upgrade-and-migration )