I have successfully run FLARUM in my local machine but when I deploy it to my hosting then its generating error like below:
Parse error: syntax error, unexpected 'finally' (T_STRING), expecting catch (T_CATCH) in /home/user/public_html/community/vendor/flarum/core/src/Foundation/Application.php on line 119
I have edit my root config.php with below:
<?php return array (
'debug' => true,
'database' =>
array (
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'mydb',
'username' => 'myuser',
'password' => 'mypass',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => 'it_',
'strict' => false,
),
'url' => 'http://myurl.com/',
'paths' =>
array (
'api' => 'api',
'admin' => 'admin',
),
);
Finally cant run it in web server. Any suggestion....Please.......