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/doc/ADMIN.md

39 lines
1.7 KiB
Markdown
Raw Normal View History

2023-02-21 22:18:59 +01:00
## Login
2021-05-16 11:58:34 +02:00
This app allows your YunoHost users to log in with a [dedicated LDAP extension](https://github.com/tituspijean/flarum-ext-auth-ldap). By default, the standard logging method is hidden.
2023-02-21 22:18:59 +01:00
To allow non-YunoHost users to log in, tune the LDAP extension setting in Flarum's admin panel.
2021-05-16 11:58:34 +02:00
### Upgrading
Note that, for the moment, all third-party extensions are removed upon upgrading.
2023-02-21 22:50:06 +01:00
Their data and parameters remain in Flarum's database, they only require to be reinstalled.
2021-05-16 11:58:34 +02:00
### Adding extensions
Flarum does not offer to install extensions from its admin panel yet, so you need to use the command line.
Replace `vendor/extension` with the appropriate names. Read the extension documentation if it requires additional steps.
```bash
sudo su
2023-02-21 22:56:50 +01:00
app=__ID__
2021-05-16 11:58:34 +02:00
cd /var/www/$app
2023-02-21 22:18:59 +01:00
sudo -u $app php__PHPVERSION__ composer.phar require vendor/extension
2021-05-16 11:58:34 +02:00
```
#### Troubleshooting
##### `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).
2023-02-21 22:56:50 +01:00
In `/etc/php/__PHPVERSION__/fpm/pool.d/__ID__.conf`, you can increase the `max_execution_time` and `max_input_time` limits (both values are in seconds if nothing is specified).
2021-05-16 11:58:34 +02:00
2023-02-21 22:18:59 +01:00
Reload PHP-FPM with `sudo service php__PHPVERSION__-fpm reload`.
2021-05-16 11:58:34 +02:00
##### Upload limit
If you are facing an error while uploading large files into the forum, PHP may be limiting file upload.
2023-02-21 22:56:50 +01:00
In `/etc/php/__PHPVERSION__/fpm/pool.d/__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).
2021-05-16 11:58:34 +02:00
2023-02-21 22:18:59 +01:00
Reload PHP-FPM with `sudo service php__PHP_VERSION__-fpm reload`.