Can anyone help me how to install flarum on localhost? because the CMD instructions on the flarum documentation don't work when I install it on a local wampserver, it's true that the data is downloaded "www/flarum"
but there is no setup wizard when I run it.
Completion
Does using the --no-dev instruction not work either? If so, please include the error capture so we can better understand the actual problem.
Technically, our documentation so far still works if done on a dedicated server.
Here are the complete instructions, good luck!
composer create-project flarum/flarum installation_folder --stability=beta --no-dev
Upload Flarum from Localhost to Shared Hosting
I am very happy after successfully using my logic skills & shamanic predictions for hours in troubleshooting this flarum case. It turned out to be very simple, just delete one of the parameters in the config.php file
For more details, I will show the code changes below.
Before
<?php return array (
'debug' => true,
'database' =>
array (
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'yourdb_inhost',
'username' => 'yourun_inhost',
'password' => 'yourpwd_inhost',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'strict' => false, //<---JUST REMOVE THIS PARAMETER
),
'url' => 'https://fgate.000webhostapp.com/',
'paths' =>
array (
'api' => 'api',
'admin' => 'admin',
),
);
After
<?php return array (
'debug' => true,
'database' =>
array (
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'yourdb_inhost',
'username' => 'yourun_inhost',
'password' => 'yourpwd_inhost',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
),
'url' => 'https://fgate.000webhostapp.com/',
'paths' =>
array (
'api' => 'api',
'admin' => 'admin',
),
);
See Evidence
- Check https://fgate.000webhostapp.com/
- I have also verified it by installing it on a different hosting, check http://forum.gatewan.com/