# \[Flarum\] A lightweight forum

**URL:** https://forum.yunohost.org/t/flarum-a-lightweight-forum/1971
**Category:** Apps
**Tags:** flarum
**Created:** [October 5, 2016, 6:06pm UTC](https://forum.yunohost.org/t/flarum-a-lightweight-forum/1971 "2016-10-05T18:06:16Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![nimch](https://forum.yunohost.org/user_avatar/forum.yunohost.org/nimch/32/560_2.png) [@nimch](https://forum.yunohost.org/u/nimch)
#### Post date: [January 16, 2017, 12:04pm UTC](https://forum.yunohost.org/t/flarum-a-lightweight-forum/1971/22 "2017-01-16T12:04:57Z")

</div>

Damned I fucked up my last comment !

Well… I was wrinting :

@tituspijean

I confirm my system is up-to-date.

Last 2 lines in verbose mode install:  
**+ sudo service nginx reload**  
**Error: Installation failed**

Thx

---

<div class="post-metadata">

### Author: ![frju365](https://forum.yunohost.org/user_avatar/forum.yunohost.org/frju365/32/7108_2.png) [@frju365](https://forum.yunohost.org/u/frju365)
#### Post date: [January 16, 2017, 12:21pm UTC](https://forum.yunohost.org/t/flarum-a-lightweight-forum/1971/23 "2017-01-16T12:21:53Z")

</div>

@nimch, can you do in the terminal `sudo nginx -t` ? and post here what returned this command ?

---

<div class="post-metadata">

### Author: ![nimch](https://forum.yunohost.org/user_avatar/forum.yunohost.org/nimch/32/560_2.png) [@nimch](https://forum.yunohost.org/u/nimch)
#### Post date: [January 16, 2017, 1:06pm UTC](https://forum.yunohost.org/t/flarum-a-lightweight-forum/1971/24 "2017-01-16T13:06:07Z")

</div>

> [@frju365](#):
>
> sudo nginx -t

Of course :  
**nginx: the configuration file /etc/nginx/nginx.conf syntax is ok**  
**nginx: configuration file /etc/nginx/nginx.conf test is successful**

---

<div class="post-metadata">

### Author: ![tituspijean](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tituspijean/32/3584_2.png) [@tituspijean](https://forum.yunohost.org/u/tituspijean)
#### Post date: [January 16, 2017, 1:21pm UTC](https://forum.yunohost.org/t/flarum-a-lightweight-forum/1971/25 "2017-01-16T13:21:34Z")

</div>

@frju365  
I guess everything is OK with this `nginx -t` because in case of failure the installation script reverses everything back to normal. 😉

I think the problem lays with the `mv` command @nimch quoted earlier. If you are in a hurry and know how to do it, clone the repo, edit the `install` script and replace lines 78 and 79

```
sudo mkdir $final_path
sudo mv $tmp/$app $final_path/..

```

by

```
 sudo cp -Rfv $tmp/$app $final_path/

```

Then run the moulinette with this local package. I will anyway look into it tonight.

---

<div class="post-metadata">

### Author: ![nimch](https://forum.yunohost.org/user_avatar/forum.yunohost.org/nimch/32/560_2.png) [@nimch](https://forum.yunohost.org/u/nimch)
#### Post date: [January 16, 2017, 2:35pm UTC](https://forum.yunohost.org/t/flarum-a-lightweight-forum/1971/26 "2017-01-16T14:35:17Z")

</div>

@tituspijean

I did :

**git clone [GitHub - YunoHost-Apps/flarum\_ynh: Flarum, an open-source forum software, packaged for YunoHost](https://github.com/YunoHost-Apps/flarum_ynh) /tmp/install\_script\_flarum**  
**sudo vim /tmp/install\_script\_flarum/scripts/install**

> **#sudo mkdir $final\_path**  
> **#sudo mv $tmp/$app $final\_path/…**  
> **sudo cp -Rfv $tmp/$app $final\_path/**

**sudo yunohost app install /tmp/install\_script\_flarum --verbose**

=\> **Success**! Installation complete

Thx

---

<div class="post-metadata">

### Author: ![nimch](https://forum.yunohost.org/user_avatar/forum.yunohost.org/nimch/32/560_2.png) [@nimch](https://forum.yunohost.org/u/nimch)
#### Post date: [January 18, 2017, 10:48am UTC](https://forum.yunohost.org/t/flarum-a-lightweight-forum/1971/27 "2017-01-18T10:48:39Z")

</div>

hi

@tituspijean

I saw you’ve updated flarum package so I removed successful hacky install and I’m trying “official” install again.  
I have another error, I’ve opened an issue [here](https://github.com/YunoHost-Apps/flarum_ynh/issues/17).  
**Warning: ERROR 1146 (42S02) at line 1: Table ‘flarum.api\_keys’ doesn’t exist**  
**Error: Installation failed**

---

<div class="post-metadata">

### Author: ![frju365](https://forum.yunohost.org/user_avatar/forum.yunohost.org/frju365/32/7108_2.png) [@frju365](https://forum.yunohost.org/u/frju365)
#### Post date: [January 18, 2017, 10:56am UTC](https://forum.yunohost.org/t/flarum-a-lightweight-forum/1971/28 "2017-01-18T10:56:21Z")

</div>

Hi ! Bonjour !  
@nimch: can you open an issue on github ?  
Thanks,  
frju365

---

<div class="post-metadata">

### Author: ![frju365](https://forum.yunohost.org/user_avatar/forum.yunohost.org/frju365/32/7108_2.png) [@frju365](https://forum.yunohost.org/u/frju365)
#### Post date: [January 18, 2017, 10:58am UTC](https://forum.yunohost.org/t/flarum-a-lightweight-forum/1971/29 "2017-01-18T10:58:37Z")

</div>

ok… already done. Sorry, @nimch, I haven’t seen it. thanks.

---

<div class="post-metadata">

### Author: ![nimch](https://forum.yunohost.org/user_avatar/forum.yunohost.org/nimch/32/560_2.png) [@nimch](https://forum.yunohost.org/u/nimch)
#### Post date: [January 18, 2017, 11:00am UTC](https://forum.yunohost.org/t/flarum-a-lightweight-forum/1971/30 "2017-01-18T11:00:05Z")

</div>

@frju365

Already done. Read my message again ! 😏

---

<div class="post-metadata">

### Author: ![tituspijean](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tituspijean/32/3584_2.png) [@tituspijean](https://forum.yunohost.org/u/tituspijean)
#### Post date: [January 18, 2017, 7:57pm UTC](https://forum.yunohost.org/t/flarum-a-lightweight-forum/1971/31 "2017-01-18T19:57:41Z")

</div>

Should be fixed now !

---

<div class="post-metadata">

### Author: ![nimch](https://forum.yunohost.org/user_avatar/forum.yunohost.org/nimch/32/560_2.png) [@nimch](https://forum.yunohost.org/u/nimch)
#### Post date: [January 19, 2017, 8:30am UTC](https://forum.yunohost.org/t/flarum-a-lightweight-forum/1971/32 "2017-01-19T08:30:55Z")

</div>

**Success! Installation complete**

Yes it is ! Thx

---

<div class="post-metadata">

### Author: ![tituspijean](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tituspijean/32/3584_2.png) [@tituspijean](https://forum.yunohost.org/u/tituspijean)
#### Post date: [January 24, 2017, 7:14pm UTC](https://forum.yunohost.org/t/flarum-a-lightweight-forum/1971/33 "2017-01-24T19:14:08Z")

</div>

cf. [Application login by SSOwat or LDAP](https://forum.yunohost.org/t/application-login-by-ssowat-or-ldap/2028):

I’ve started a repo for a [LDAP login extension for Flarum](https://github.com/tituspijean/flarum-ext-auth-ldap). I have only put together a preexisting code for a SAML2 auth extension and a LDAP class for PHP. **Nothing** is functional, yet.

I’ve created issues to specify what’s to be done with the code. Feel free to help !

---

<div class="post-metadata">

### Author: ![frju365](https://forum.yunohost.org/user_avatar/forum.yunohost.org/frju365/32/7108_2.png) [@frju365](https://forum.yunohost.org/u/frju365)
#### Post date: [January 24, 2017, 10:35pm UTC](https://forum.yunohost.org/t/flarum-a-lightweight-forum/1971/34 "2017-01-24T22:35:07Z")

</div>

I’m interesting. Can post the update of your work here ?

Thanks and Great work.  
PS: Since you have packaged Flarum, I have discovered this wonderful software and now I like Flarum. 🙂  
frju365

---

<div class="post-metadata">

### Author: ![tituspijean](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tituspijean/32/3584_2.png) [@tituspijean](https://forum.yunohost.org/u/tituspijean)
#### Post date: [January 28, 2017, 8:54am UTC](https://forum.yunohost.org/t/flarum-a-lightweight-forum/1971/35 "2017-01-28T08:54:21Z")

</div>

LDAP authentication extension update : it works… if you have a user “test” with password “12345678”. 😅  
I’m having difficulties with storing parameters and getting the login and password on Flarum’s side, so everything is pretty much hardcoded so far.

---

<div class="post-metadata">

### Author: ![jellium](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jellium/32/922_2.png) [@jellium](https://forum.yunohost.org/u/jellium)
#### Post date: [January 28, 2017, 12:48pm UTC](https://forum.yunohost.org/t/flarum-a-lightweight-forum/1971/36 "2017-01-28T12:48:30Z")

</div>

Good news here!  
Thanks for your time and efforts. 😄  
(I am keeping an eye on your Git repository for that specific topic in order to learn a bit, but I can’t be of any help 😓)

---

<div class="post-metadata">

### Author: ![tituspijean](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tituspijean/32/3584_2.png) [@tituspijean](https://forum.yunohost.org/u/tituspijean)
#### Post date: [February 6, 2017, 11:30pm UTC](https://forum.yunohost.org/t/flarum-a-lightweight-forum/1971/37 "2017-02-06T23:30:06Z")

</div>

@jellium, @all,

I have managed to integrate SSOwat authentication into Flarum ! 😄 See this repository : [https://github.com/tituspijean/flarum-ext-auth-ssowat](https://github.com/tituspijean/flarum-ext-auth-ssowat)

I think it is not optimal, but here is the route : user logs in through SSOwat’s own login page, then their credentials are passed to the Flarum extension, which connects to YunoHost’s LDAP server to retrieve their email.

There’s still one [mishap](https://github.com/tituspijean/flarum-ext-auth-ssowat/issues/1). Flarum sends mixed messages upon signup : user is created, but Flarum says an error occured. Refreshing the page successfully makes the user logged in.  
Once I fix this issue, I will integrate the extension in the Flarum package.

---

<div class="post-metadata">

### Author: ![frju365](https://forum.yunohost.org/user_avatar/forum.yunohost.org/frju365/32/7108_2.png) [@frju365](https://forum.yunohost.org/u/frju365)
#### Post date: [February 6, 2017, 11:32pm UTC](https://forum.yunohost.org/t/flarum-a-lightweight-forum/1971/38 "2017-02-06T23:32:39Z")

</div>

👍 +1 🙂  
Great work !

---

<div class="post-metadata">

### Author: ![tituspijean](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tituspijean/32/3584_2.png) [@tituspijean](https://forum.yunohost.org/u/tituspijean)
#### Post date: [February 8, 2017, 6:25pm UTC](https://forum.yunohost.org/t/flarum-a-lightweight-forum/1971/39 "2017-02-08T18:25:19Z")

</div>

Can you guys try it the extension ? It needs more testers. 🙂

---

<div class="post-metadata">

### Author: ![jellium](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jellium/32/922_2.png) [@jellium](https://forum.yunohost.org/u/jellium)
#### Post date: [February 8, 2017, 9:18pm UTC](https://forum.yunohost.org/t/flarum-a-lightweight-forum/1971/40 "2017-02-08T21:18:20Z")

</div>

Hi @tituspijean,  
Thanks for your work!  
I can’t manage to install the extension. It seems that I have a problem with the config in `composer.json` as I am invited to change the `minimum-stability` to allow for `dev` level (see [here](https://getcomposer.org/doc/04-schema.md#minimum-stability)).  
Despite my attempts, I can’t manage to install the extension and get the following error:

```auto
Do not run Composer as root/super user! See https://getcomposer.org/root for details
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package tituspijean/flarum-ext-auth-ssowat could not be found in any version, there may be a typo in the package name.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting ./composer.json to its original content.

```

---

<div class="post-metadata">

### Author: ![tituspijean](https://forum.yunohost.org/user_avatar/forum.yunohost.org/tituspijean/32/3584_2.png) [@tituspijean](https://forum.yunohost.org/u/tituspijean)
#### Post date: [February 8, 2017, 9:49pm UTC](https://forum.yunohost.org/t/flarum-a-lightweight-forum/1971/41 "2017-02-08T21:49:52Z")

</div>

Hi, thanks for trying !

What is the command you have used ?

- composer complains about that you ran it as root
- the error log doesn’t mention the “dev” option

Can you try to run `sudo -u www-data composer require --dev "tituspijean/flarum-ext-auth-ssowat:*@dev"` ?

[Previous page](https://forum.yunohost.org/t/flarum-a-lightweight-forum/1971.md?page=1)

[Next page](https://forum.yunohost.org/t/flarum-a-lightweight-forum/1971.md?page=3)
