Skip to content
Snippets Groups Projects
simplesamlphp-install-repo.md 1.55 KiB
Newer Older
Installing SimpleSAMLphp from the repository
============================================

These are some notes about running SimpleSAMLphp from the repository.
Prerequisites
-------------

Review the [prerequisites](../simplesamlphp-install) from the main installation guide.

Installing from git
-------------------

Go to the directory where you want to install SimpleSAMLphp:

Tim van Dijen's avatar
Tim van Dijen committed
```bash
cd /var
```
The `master` branch is not stable and targets the next major release.
Pick a [tag](https://github.com/simplesamlphp/simplesamlphp/tags) to use.

Tim van Dijen's avatar
Tim van Dijen committed
```bash
git clone --branch <tag_name> https://github.com/simplesamlphp/simplesamlphp.git simplesamlphp
Tim van Dijen's avatar
Tim van Dijen committed
```

Initialize configuration and metadata:

Tim van Dijen's avatar
Tim van Dijen committed
```bash
cd /var/simplesamlphp
cp config/config.php.dist config/config.php
cp config/authsources.php.dist config/authsources.php
cp metadata/saml20-idp-hosted.php.dist metadata/saml20-idp-hosted.php
cp metadata/saml20-idp-remote.php.dist metadata/saml20-idp-remote.php
cp metadata/saml20-sp-remote.php.dist metadata/saml20-sp-remote.php
Tim van Dijen's avatar
Tim van Dijen committed
```
Install the external dependencies with Composer (you can refer to
[getcomposer.org](https://getcomposer.org/) to get detailed
instructions on how to install Composer itself):
Tim van Dijen's avatar
Tim van Dijen committed
```bash
php composer.phar install
```
Go to the root directory of your SimpleSAMLphp installation:
Tim van Dijen's avatar
Tim van Dijen committed
```bash
cd /var/simplesamlphp
```

Ask git to update to the latest version:

Tim van Dijen's avatar
Tim van Dijen committed
```bash
git fetch origin
git pull origin master
```
Install or upgrade the external dependencies with Composer:
Tim van Dijen's avatar
Tim van Dijen committed
```bash
php composer.phar install
```