1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flarum_ynh.git synced 2024-09-03 18:36:24 +02:00
Flarum, an open-source forum software, packaged for YunoHost
Find a file
2018-09-01 14:06:01 +02:00
conf Add php-fpm.ini to increase time and memory limits 2018-08-22 22:11:43 +02:00
scripts [enh] ynh_replace_string instead of sed 2018-08-30 20:59:31 +02:00
.gitattributes 👾 Added .gitattributes 2016-10-05 19:43:44 +02:00
.gitignore Initial commit 2016-10-05 19:44:08 +02:00
check_process Fix upgrade test 2018-07-26 16:48:12 +02:00
LICENSE Initial commit 2016-10-05 19:44:08 +02:00
manifest.json [mod] manifest.json: remove "required for postinstall" text about admin user too 2018-08-31 16:50:37 +02:00
README.md [mod] Update README for low-powered devices 2018-09-01 14:06:01 +02:00

Flarum for YunoHost

Integration level

Install Hubzilla with YunoHost

Flarum, an open-source forum software, packaged for YunoHost, a self-hosting server operating server.

Shipped version: 0.1.0-beta.7

Features

Installation

Flarum is available in the Community listing.

You can also install it with yunohost app install https://github.com/YunoHost-Apps/flarum_ynh.

  • Required parameters are :
    • 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.

Performance issues and loading errors

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). 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). Reload PHP-FPM with sudo service php7.0-fpm reload.

Upload limit

If you are facing an error while uploading large files into the forum, PHP may be limiting file upload. 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). Reload PHP-FPM with sudo service php7.0-fpm reload.