Trying to install Flarum on CentOS 6.9. Seemed to install fine, but when I view index.php it displays the 500 Internal Server Error.
Installation didn't generate config.php and /storage/log/ is empty so can't view errors.
Last 10 lines of apache2 error_log:
[Wed Jul 12 21:04:45.448922 2017] [core:notice] [pid 17210:tid 139667111393248] AH00094: Command line: '/usr/sbin/httpd'
[Wed Jul 12 21:04:45.448961 2017] [mpm_event:warn] [pid 17210:tid 139667111393248] AH00488: long lost child came home! (pid 17721)
[Wed Jul 12 21:04:45.448987 2017] [mpm_event:warn] [pid 17210:tid 139667111393248] AH00488: long lost child came home! (pid 17722)
[Wed Jul 12 21:05:58.065619 2017] [mpm_event:notice] [pid 17210:tid 139667111393248] AH00493: SIGUSR1 received. Doing graceful restart
[Wed Jul 12 21:05:58.238432 2017] [mpm_event:notice] [pid 17210:tid 139667111393248] AH00489: Apache/2.4.25 (cPanel) OpenSSL/1.0.2k mod_bwlimited/1.4 configured -- resuming normal operations
[Wed Jul 12 21:05:58.238482 2017] [core:notice] [pid 17210:tid 139667111393248] AH00094: Command line: '/usr/sbin/httpd'
[Wed Jul 12 21:05:58.238551 2017] [mpm_event:warn] [pid 17210:tid 139667111393248] AH00488: long lost child came home! (pid 17981)
[Wed Jul 12 21:05:58.238600 2017] [mpm_event:warn] [pid 17210:tid 139667111393248] AH00488: long lost child came home! (pid 17982)
[Thu Jul 13 01:30:01.718463 2017] [mpm_event:error] [pid 17210:tid 139667111393248] AH00484: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting
[Thu Jul 13 16:44:25.447915 2017] [mpm_event:notice] [pid 17210:tid 139667111393248] AH00491: caught SIGTERM, shutting down
When I did CHMOD 755 on install.php I was able to complete the installation. However almost everything I try to do in the forum (start a post, go to admin, etc.) returns an error: "Oops! Something went wrong. Please reload the page and try again."
I enabled debug and most errors look like this:
POST http://www.###/forums/api/discussions
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator at
webmaster@### to inform them of the time this error occurred,
and the actions you performed just before this error.</p>
<p>More information about this error may be available
in the server error log.</p>
<p>Additionally, a 500 Internal Server Error
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>
I then did CHMOD 755 for api.php and admin.php and this cleared up most of the errors. Is this a suitable fix? Anything else/better I can do? Thanks.