jordanjay29 Like, make a new non-root user, and install it like that?
Installing Flarum Dev-Master
jordanjay29 OK, I am pretty sure it is an issue with the command-line installer. I tried installing it on my webhost. I chmodded all directories and files to 0775
and tried running php flarum install
and I got
Please fix the following errors before we can continue with the installation.
The directory is not writable.
Please chmod this directory and its contents to 0775.
What is up?
I just tried an install and noticed something. The installer page does not show up if the url is not /
. Which means you have to set up a virtualhost so the public
folder is at <http/https>://<domain/ip>/
When using a virtualhost (or the php dev server inside the public folder) I can install the latest dev-master fine following luceos instructions.
And as a foot note, if you don't know why using sudo
will make a difference, this means you probably shouldn't run it as sudo
. You can only mess up things if you don't know what you're doing.
- Edited
clarkwinkelmann I got the installer to work, but once it finished, it gave me an error:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'discussions.id' in 'where clause' (SQL: (select `flarum_discussions`.* from `flarum_discussions` where not exists (select 1 from `flarum_discussions_tags` where 0 = 1 and discussions.id = discussion_id) and (`flarum_discussions`.`is_private` = 0 or (`flarum_discussions`.`is_approved` = 0 and (`start_user_id` = 0 or (exists (select 1 from `flarum_discussions_tags` where 0 = 1 and discussions.id = discussion_id))))) and (`flarum_discussions`.`hide_time` is null or `start_user_id` = 0 or (exists (select 1 from `flarum_discussions_tags` where 0 = 1 and discussions.id = discussion_id))) and (`comments_count` > 0 or `start_user_id` = 0 or (exists (select 1 from `flarum_discussions_tags` where 0 = 1 and discussions.id = discussion_id))) and not exists (select 1 from `flarum_users_discussions` where discussions.id = discussion_id and `user_id` = 0 and `subscription` = ignore) and not exists (select 1 from `flarum_discussions_tags` where 0 = 1 and discussions.id = discussion_id) order by `last_time` desc limit 21) union (select `flarum_discussions`.* from `flarum_discussions` where not exists (select 1 from `flarum_discussions_tags` where 0 = 1 and discussions.id = discussion_id) and (`flarum_discussions`.`is_private` = 0 or (`flarum_discussions`.`is_approved` = 0 and (`start_user_id` = 0 or (exists (select 1 from `flarum_discussions_tags` where 0 = 1 and discussions.id = discussion_id))))) and (`flarum_discussions`.`hide_time` is null or `start_user_id` = 0 or (exists (select 1 from `flarum_discussions_tags` where 0 = 1 and discussions.id = discussion_id))) and (`comments_count` > 0 or `start_user_id` = 0 or (exists (select 1 from
How did you get yours to work?
EDIT: Think I see where I went wrong, re-installing from scratch
ARGHHH! Still did it!
Try leaving blank the prefix... That did it for me!
How would I install Flarum dev-master on shared hosting? I can't adjust the document root, so how else would I do this?
- Edited
One could symlink the public directory?
In shared hosting it should also be possible to have files outside the docroot.
- Edited
I'm aware of that dev-master is not supported. But I'm very new to flarum, composer and git, so I came to some trouble installing dev-master. Main reason to get it installed is to prepare my conversion-script for SMF2 to the new structures comming with beta-8.
For 1st, I'm not able to git clone using given command from luceos, so I started with cloning it using git clone https://github.com/flarum/flarum.git .
. So far, this was working and as well composer update
worked after modifying the composer.json.
At this point, I see the first issue which is, that php flarum -V
shows 0.1.0-beta.7 and not the expected beta-8 or dev-master. Unfortunally I started the installation and stuck after entering all information in the form (database, user, password, ....) as it stops with an error telling me "Soemthing went wrong: Class cache.store does not exist".
Even the installation via SSH stops with same error (additionally telling the location of the error where it occured "In Container.php line 752").
What did I do wrong ?
PHP v7.1.23
Apache 2.4.25
Debian stretch
luceos Just found that on github. Thanks.
https://github.com/flarum/core/issues/1587
Pirat you need to install flarum/flarum from the source;
https://discuss.flarum.org/d/9829-installing-flarum-dev-master/2