2018-09-01 14:20:50 +02:00
# Flarum for YunoHost
2018-08-31 17:10:59 +02:00
2018-09-01 14:34:01 +02:00
[![Install Hubzilla with YunoHost ](https://install-app.yunohost.org/install-with-yunohost.png )](https://install-app.yunohost.org/?app=flarum)
2018-08-31 17:10:59 +02:00
2018-12-01 16:51:23 +01:00
[![Integration level ](https://ci-apps.yunohost.org/ci/logs/flarum%20(Community ).svg)](https://dash.yunohost.org/appci/app/flarum) [![Flarum version ](https://img.shields.io/badge/flarum-0.1.0--beta.7.2-green.svg )](https://github.com/flarum/core/releases/tag/v0.1.0-beta.7.2)
2016-10-05 19:44:08 +02:00
2018-09-01 14:34:01 +02:00
[Flarum ](http://flarum.org/ ), an open-source forum software, packaged for [YunoHost ](https://yunohost.org/ ), a self-hosting server operating server.
2018-02-17 22:15:29 +01:00
2018-02-18 23:50:28 +01:00
![](http://flarum.org/img/screenshot_2x.png)
2017-02-28 07:19:47 +01:00
2018-02-18 23:50:28 +01:00
## Features
2017-02-28 07:19:47 +01:00
2018-02-18 23:50:28 +01:00
- All Flarum features, see its [documentation ](http://flarum.org/docs/ )
2018-09-01 14:20:50 +02:00
- SSOwat integration through a [dedicated extension ](https://github.com/tituspijean/flarum-ext-auth-ssowat ).
2016-10-05 19:44:08 +02:00
2018-02-18 23:50:28 +01:00
## Installation
2018-09-01 14:34:01 +02:00
This Flarum package can be installed through:
- YunoHost's webadmin, in the Community listing
- YunoHost's CLI: `yunohost app install https://github.com/YunoHost-Apps/flarum_ynh` .
2018-09-01 14:20:50 +02:00
2018-09-01 14:34:01 +02:00
Required parameters are:
2018-09-01 14:20:50 +02:00
- `domain`
- `path`
- `admin` , among the YunoHosts users
- `public` , *true* by default, for guests to read the forum
- `title` of the forum
- `language` can be English (by default), French, and German. Other languages installable after installation as any other extensions
- `bazaar_extension` to install the extension marketplace (*false* by default), to avoid using the command line to add new extensions.
2016-10-19 20:16:19 +02:00
2018-09-01 14:20:50 +02:00
After installation, simply open your browser to Flarum's page. First loading may be a bit longer as assets are generated.
2018-02-18 23:50:28 +01:00
2018-09-01 14:20:50 +02:00
## Troubleshooting
2018-09-01 14:06:01 +02:00
2018-09-01 14:20:50 +02:00
### `Low memory` errors
2018-09-01 14:06:01 +02:00
A swapfile will enable your system to extend its limited memory through its disk capacity. The following commands will create a 1 GB swapfile.
```
sudo dd if=/dev/zero of=/swapfile bs=1024 count=1024000
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
```
Then add this line in `/etc/fstab` :
```
/swapfile none swap sw 0 0
```
2018-09-01 14:20:50 +02:00
2018-09-01 14:06:01 +02:00
Reboot the system and try the installation again.
2018-09-01 14:20:50 +02:00
### `Timeout` errors
2018-09-01 14:06:01 +02:00
Some users have reported a successful installation, but get a blank page due to a `timeout` on a PHP script that prepares the forum assests (`Minify.php`, notably).
2018-09-01 14:34:01 +02:00
2018-09-01 14:06:01 +02:00
In `/etc/php/7.0/fpm/conf.d/20-{APPID}.ini` , you can increase the `max_execution_time` and `max_input_time` limits (both values are in seconds if nothing is specified).
2018-09-01 14:34:01 +02:00
2018-09-01 14:06:01 +02:00
Reload PHP-FPM with `sudo service php7.0-fpm reload` .
2018-09-01 14:20:50 +02:00
### Upload limit
2018-09-01 14:06:01 +02:00
If you are facing an error while uploading large files into the forum, PHP may be limiting file upload.
2018-09-01 14:34:01 +02:00
2018-09-01 14:06:01 +02:00
In `/etc/php/7.0/fpm/conf.d/20-{APPID}.ini` , you can uncomment (remove `;` at the beginning of the line) and increase the values of `upload_max_filesize` and `post_max_size` (both values are in bytes).
2018-09-01 14:34:01 +02:00
2018-09-01 14:06:01 +02:00
Reload PHP-FPM with `sudo service php7.0-fpm reload` .