mirror of
https://github.com/mclueppers/xo-server.git
synced 2025-07-31 01:45:14 +02:00
Created Installation (markdown)
parent
133382cef7
commit
e569cc4808
69
Installation.md
Normal file
69
Installation.md
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
Follow the Installation instructions in README.md. Then for MySQL support:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo apt-get install mysql-server
|
||||||
|
mysql_secure_installation
|
||||||
|
```
|
||||||
|
|
||||||
|
Create a DB in MySQL and apply the SQL script inside the xo-server/config folder
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mysql -u root -p
|
||||||
|
```
|
||||||
|
|
||||||
|
```sql
|
||||||
|
create database xoa;
|
||||||
|
quit
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mysql -u root -p xoa < db.mysql.sql
|
||||||
|
```
|
||||||
|
|
||||||
|
Once ready please change the settings in local.yaml in order to enable MySQL support and switch userdb type to it
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# configuration of the MySQL server.
|
||||||
|
mysql:
|
||||||
|
# Is MySQL enabled?
|
||||||
|
#
|
||||||
|
# Default: false
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
# host
|
||||||
|
#
|
||||||
|
# Default: localhost
|
||||||
|
#host: localhost
|
||||||
|
|
||||||
|
# port
|
||||||
|
#
|
||||||
|
# Default: 3306
|
||||||
|
#port: 3306
|
||||||
|
|
||||||
|
# username
|
||||||
|
#
|
||||||
|
# Default: xoauser
|
||||||
|
username: xoauser
|
||||||
|
|
||||||
|
# password
|
||||||
|
#
|
||||||
|
# Default: xoapass
|
||||||
|
password: xoapass
|
||||||
|
|
||||||
|
# database
|
||||||
|
#
|
||||||
|
# Default: xoa
|
||||||
|
database: xoa
|
||||||
|
|
||||||
|
# Configuration of the userdb
|
||||||
|
userdb:
|
||||||
|
# Type of the backend?
|
||||||
|
#
|
||||||
|
# Syntax: mysql, redis, postgres, ldap
|
||||||
|
#
|
||||||
|
# /!\ Currently supported backends: redis, mysql
|
||||||
|
#
|
||||||
|
# Default: redis
|
||||||
|
type: mysql
|
||||||
|
|
||||||
|
```
|
Loading…
x
Reference in New Issue
Block a user