Hi, I got 500 error when installing flarum....
I checked following log files, but I cloud not find any error.
/var/log/php-fpm/www-error.log
/var/log/php-fpm/error.log
/var/log/nginx/error.log
/path/to/flarum/storage/logs/
error message:
Something went wrong: <!DOCTYPE html> <html> <head> <title>Error</title> <style> body { width: 35em; margin: 0 auto; font-family: Tahoma, Verdana, Arial, sans-serif; } </style> </head> <body> <h1>An error occurred.</h1> <p>Sorry, the page you are looking for is currently unavailable.<br/> Please try again later.</p> <p>If you are the system administrator of this resource then you should check the <a href="http://nginx.org/r/error_log">error log</a> for details.</p> <p><em>Faithfully yours, nginx.</em></p> </body> </html>
nginx conf:
location / {
root /path/to/flarum/public;
index index.html index.htm index.php;
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
root /path/to/flarum/public;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_intercept_errors on;
}
OS : CentOS 7.6
Web Server : nginx/1.14.2, PHP 7.2.13
I also tried to write config.php file manually, but table missing error has occurred.
Error booting Flarum: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'flarum.settings' doesn't exist (SQL: select `value`, `key` from `settings`)
<?php return array (
'debug' => true,
'database' =>
array (
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'XXXXXXXXXX',
'username' => 'XXXXXXXXXX',
'password' => 'XXXXXXXXXX',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => NULL,
'port' => '3306',
'strict' => false,
),
'url' => 'XXXXXXXXXX',
'paths' =>
array (
'api' => 'api',
'admin' => '',
),
);
Cloud you tell me where I'm wrong ? :X
Regards.