Created Installation (markdown)

Martin Dobrev 2013-10-25 07:32:58 -07:00
parent 133382cef7
commit e569cc4808
1 changed files with 69 additions and 0 deletions

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
```