XBackBone/docs/installation.md

68 lines
2.4 KiB
Markdown
Raw Normal View History

2020-04-02 12:58:06 +00:00
---
layout: default
title: Installation
nav_order: 2
---
# Installation
### Prerequisites
2021-08-01 11:24:39 +00:00
XBackBone require PHP >= `7.2`, with installed the required extensions:
2020-04-02 12:58:06 +00:00
+ `php-sqlite3` for SQLite.
+ `php-mysql` for MariaDB/MySQL.
+ `php-gd` image manipualtion library.
+ `php-json` json file support.
+ `php-intl` internationalization functions.
+ `php-fileinfo` file related functions.
+ `php-zip` compressed files related functions.
2020-04-02 12:58:06 +00:00
+ (optional) `php-ftp` to use the FTP remote storage driver.
+ (optional) `php-ldap` to use LDAP authentication.
## Web installation
+ Download latest release from GitHub: [Latest Release](https://github.com/SergiX44/XBackBone/releases/latest)
+ Extract the release zip to your document root.
+ Navigate to the webspace root (ex. `http://example.com/xbackbone`, this should auto redirect your browser to the install page `http://example.com/xbackbone/install/`)
+ Follow the instructions.
2020-04-02 13:34:07 +00:00
For futher and advanced configurations, see the [configuration page](configuration.md).
## Manual installation
2020-04-02 12:58:06 +00:00
+ Download latest release from GitHub: [Latest Release](https://github.com/SergiX44/XBackBone/releases/latest)
+ Extract the release zip to your document root.
+ Copy and edit the config file:
```sh
cp config.example.php config.php && nano config.php
```
By default, XBackBone will use Sqlite3 as DB engine, and a `storage` dir in the main directory. You can leave these settings unchanged for a simple personal installation.
You must set the `base_url`, or remove it for get dynamically the url from request (not recommended).
```php
return [
'base_url' => 'https://example.com', // no trailing slash
'storage' => [
'driver' => 'local',
2020-04-12 17:58:15 +00:00
'path' => 'absolute/path/to/storage',
2020-04-02 12:58:06 +00:00
],
'db' => [
'connection' => 'sqlite', // current support for sqlite and mysql
2020-04-12 17:58:15 +00:00
'dsn' => 'absolute/path/to/resources/database/xbackbone.db', // if sqlite should be an absolute path
2020-04-02 12:58:06 +00:00
'username' => null, // username and password not needed for sqlite
'password' => null,
]
];
```
+ Finally, run the migrate script to setup the database
```sh
php bin/migrate --install
```
+ Delete the `/install` directory.
+ Now just login with `admin/admin`, **be sure to change these credentials after your first login**.
2020-04-02 13:04:36 +00:00
For futher and advanced configurations, see the [configuration page](configuration.md).
2020-04-02 16:54:11 +00:00
## Docker deployment
2020-04-02 13:04:36 +00:00
Alternatively, a docker container is available.
2020-04-02 13:23:24 +00:00
2020-04-02 13:04:36 +00:00
[Docker container](https://hub.docker.com/r/pe46dro/xbackbone-docker){: .btn .btn-purple }