Installing Flarum Dev-Master
Woops ?
Update DocumentRoot by adding /public
in the vhost configuration.
- Edited
After finishing the install process, it told me an error occured while trying to load this page
. After enabling debug mode, I got this error:
Illuminate \ Database \ QueryException (42S22)
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'discussions.id' in 'where clause' (SQL: (select `fldev_discussions`.* from `fldev_discussions` where not exists (select 1 from `fldev_discussions_tags` where 0 = 1 and discussions.id = discussion_id) and (`fldev_discussions`.`is_private` = 0 or (`fldev_discussions`.`is_approved` = 0)) and not exists (select 1 from `fldev_users_discussions` where discussions.id = discussion_id and `user_id` = 1 and `subscription` = ignore) and not exists (select 1 from `fldev_discussions_tags` where 0 = 1 and discussions.id = discussion_id) order by `last_time` desc limit 21) union (select `fldev_discussions`.* from `fldev_discussions` where not exists (select 1 from `fldev_discussions_tags` where 0 = 1 and discussions.id = discussion_id) and (`fldev_discussions`.`is_private` = 0 or (`fldev_discussions`.`is_approved` = 0)) and `is_sticky` = 1 limit 21) order by is_sticky and not exists (select 1 from `fldev_users_discussions` as `fldev_sticky` where sticky.discussion_id = id and `fldev_sticky`.`user_id` = 1 and sticky.read_number >= last_post_number) and last_time > 0 desc, `last_time` desc limit 21)
I tried running php flarum install
and php flarum help install
but that didn't work....
UPDATE!! I was running php flarum install
in the wrong directory ? trying it in the right one now!
I keep on getting The directory is not writable. Please chmod this directory and its contents to 0775.
even though it is writable, and I have chmodded it to 0775...
Even when I run terminal as root, and chmod it, and try installing it, it still tells me that the directory is not writable....
i think its because of the folder in public (assets) .
luceos I tried re-installing from scratch. I finished the installation, and now it says: An error occurred while trying to load this page.
So, I tried php flarum install
. Then I got this error:
username@DEV-COMPUTER:/var/www/flarumdev$ php flarum install
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 going on? I have chmodded all the directories multiple times, and I can never get it!
Frink what user owns the files?
jordanjay29 root, but I have given access to all the other users
- Edited
jordanjay29 I also ran sudo php flarum install
in hopes that running it as root would fix it, but that didn't work either....
Edit: I ran sudo chown -R frink flarumdev
and even that didn't work... I also ran this command on the public, storage, and vendor folders
Reinstall on a non-root user.
jordanjay29 Like, make a new non-root user, and install it like that?
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!