1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flarum_ynh.git synced 2024-09-03 18:36:24 +02:00
flarum_ynh/README.md

116 lines
4.3 KiB
Markdown
Raw Normal View History

# Flarum for YunoHost
2020-06-12 01:55:21 +02:00
[![Integration level](https://dash.yunohost.org/integration/flarum.svg)](https://dash.yunohost.org/appci/app/flarum) ![](https://ci-apps.yunohost.org/ci/badges/flarum.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/flarum.maintain.svg)
2019-08-24 12:54:18 +02:00
[![Install Flarum with YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=flarum)
2020-06-12 01:55:21 +02:00
> *This package allows you to install Flarum quickly and simply on a YunoHost server.
If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.*
2016-10-05 19:44:08 +02:00
2020-06-12 01:55:21 +02:00
## Overview
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
2020-10-24 16:25:39 +02:00
**Shipped version:** 0.1.0-beta.14
2020-10-15 21:26:14 +02:00
2020-06-12 01:55:21 +02:00
## Screenshots
2020-10-15 21:26:14 +02:00
![](https://flarum.org/assets/img/home-screenshot.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/)
- 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
2019-08-24 12:54:18 +02:00
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:34:01 +02:00
Required parameters are:
- `domain`
- `path`
- `admin`, among the YunoHosts users
- `public`, *true* by default, for guests to read the forum
- `title` of the forum
2019-08-24 12:54:18 +02:00
- `language` can be English `en` (by default), French `fr`, and German `de`. Other languages are installable after installation like any other extensions
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
2020-03-14 21:22:33 +01:00
## Upgrading
Note that all third-party extensions are removed upon upgrading.
## Adding extensions after installation
Replace `flarum` with your app ID in case of multiple installation.
Replace `vendor/extension` with the appropriate names. Read the extension documentation if it requires additional steps.
```bash
app=flarum
cd /var/www/$app
sudo -u $app php7.3 composer.phar require vendor/extension
```
## Troubleshooting
### `Low memory` errors
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
```
Reboot the system and try the installation again.
### `Timeout` errors
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
2019-08-24 12:54:18 +02:00
In `/etc/php/*php_version*/fpm/pool.d/*app_id*.conf`, 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
2019-08-24 12:54:18 +02:00
Reload PHP-FPM with `sudo service php*php_version*-fpm reload`.
### Upload limit
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
2019-08-24 12:54:18 +02:00
In `/etc/php/*php_version*/fpm/pool.d/*app_id*.conf`, 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
2019-08-24 12:54:18 +02:00
Reload PHP-FPM with `sudo service php*php_version*-fpm reload`.
2020-06-12 01:55:21 +02:00
## Documentation
* Official documentation: https://flarum.org/docs/
## YunoHost specific features
#### Supported architectures
* x86-64 - [![Build Status](https://ci-apps.yunohost.org/ci/logs/flarum%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/flarum/)
* ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/flarum%20%28Apps%29.svg)](https://ci-apps-arm.yunohost.org/ci/apps/flarum/)
## Links
* Report a bug: https://github.com/YunoHost-Apps/flarum_ynh/issues
* App website: https://flarum.org/
* Upstream app repository: https://github.com/flarum/flarum
* YunoHost website: https://yunohost.org/
---
2020-10-15 21:26:14 +02:00
## Developer info
2020-06-12 01:55:21 +02:00
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/flarum_ynh/tree/testing).
To try the testing branch, please proceed like that.
```
sudo yunohost app install https://github.com/YunoHost-Apps/flarum_ynh/tree/testing --debug
or
sudo yunohost app upgrade flarum -u https://github.com/YunoHost-Apps/flarum_ynh/tree/testing --debug
```