Installing Flarum Dev-Master
luceos I am getting an HTTP Error 500 when I try to access the http://dev.flarum/flarum/public/ (that is a local domain). In the console, I see dev.flarum/ Failed to load resource: the server responded with a status of 500 (Internal Server Error)
php flarum info
returns
PHP Fatal error: Uncaught TypeError: Argument 1 passed to Illuminate\Database\Connectors\ConnectionFactory::make() must be of the type array, null given, called in /var/www/flarumdev/flarum/vendor/flarum/core/src/Database/DatabaseServiceProvider.php on line 28 and defined in /var/www/flarumdev/flarum/vendor/illuminate/database/Connectors/ConnectionFactory.php:43
Stack trace:
#0 /var/www/flarumdev/flarum/vendor/flarum/core/src/Database/DatabaseServiceProvider.php(28): Illuminate\Database\Connectors\ConnectionFactory->make(NULL)
#1 /var/www/flarumdev/flarum/vendor/illuminate/container/Container.php(749): Flarum\Database\DatabaseServiceProvider->Flarum\Database\{closure}(Object(Flarum\Foundation\Application), Array)
#2 /var/www/flarumdev/flarum/vendor/illuminate/container/Container.php(631): Illuminate\Container\Container->build(Object(Closure))
#3 /var/www/flarumdev/flarum/vendor/illuminate/container/Container.php(586): Illuminate\Container\Container->resolve('flarum.db', Array)
#4 /var/www/flarumdev/flarum/vendor/flarum/core/s in /var/www/flarumdev/flarum/vendor/illuminate/database/Connectors/ConnectionFactory.php on line 43
Is my PHP version out of date? php -v
returns
PHP 7.0.25-0ubuntu0.16.04.1 (cli) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.0.25-0ubuntu0.16.04.1, Copyright (c) 1999-2017, by Zend Technologies
apache2 -v
returns
Server version: Apache/2.4.18 (Ubuntu)
Server built: 2017-09-18T15:09:02
Any ideas as to what's up?
Frink can you check your config.php
? is the database correctly configured ?
clarkwinkelmann Where is the config.php located?
it should be at the root of the install (alongside the public
folder.
Did you reach the installation step ? It might not yet be there if you didn't do the install step. Strange to get that error if no config file exists though.
- Edited
clarkwinkelmann It never let me get to the install step, and there is no config.php file..... what page would I visit to get to the installer?
- Edited
I am still experiencing this issue.
Frink please.. As said countless times before, beta 8 is volatile and unstable. There's absolutely no reason to mention a core developer like this.
I'm sorry, it really seems like I'm just bashing around on the same person, but that might be related to having to repeat the same thing every time.
If you encounter an issue with the latest dev-master, check the github repository for a related issue. If it does not exist, feel free to open one by providing at least the steps to reproduce.
flarum/core1370 seems I reported exactly the same issue 20 days ago.
Frink please note that we don't provide support for issues with dev-master or any unreleased version of Flarum. If you find bugs or issues that remain unsolvable, I suggest you wait for a more stable commit of dev-master or for the next beta release.
0E800 it works because it has the direct attention of Toby. Obviously it would be impossible for our core devs to give individual attention to anyone who wanted to run dev-master, making Flarum.org the only such place where dev-master gets support.
Shall I wait for another commit, or should I try debugging and fixing the error (jerry-rigging) it myself?
Configure your local webserver to serve flarum from the public directory. What os and webserver do you currently use?
Woops ?
Update DocumentRoot by adding /public
in the vhost configuration.