'lo, peeps.
First, thanks for Esotalk (back in the day) and now Flarum. It's a God-send; every other forum I've looked at has an awful UI.
So I've been re-installing my web server from scratch (new OS image) and I've installed Flarum.
it installed fine and I was able to log in as admin, start a discussion, log out, make a test account, log in with the test account, then log out.
Then I tried to access index.php directly, and it comes back with a 404.
I've installed in a subdirectory, "/forum", i.e. "http://blah.org/forum/index.php".
I Googled and found out about other people having this problem and to first check RewriteEngine is active and turned on (it is - I can make Apache throw an error but putting in a broken RewriteBase) and I also read posts about setting the RewriteBase to the subdirectory path, and I've done that too.
Unfortunately, still not working, and I'm now basically trying to figure out what's amiss with the .htaccess file. I'm pretty sure it's that, because everything else on the server (including a mediawiki, which is also PHP) is working.
So, this is the RewriteBase I've added;
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /forum
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
And this is what I see in my error.log when I put some logging on for Rewrite;
[Tue Jun 20 10:04:08.559567 2017] [perdir /var/www/blah.org/forum/] strip per-dir prefix: /var/www/blah.org/forum/index.php -> index.php
[Tue Jun 20 10:04:08.559644 2017] [perdir /var/www/blah.org/forum/] applying pattern '.' to uri 'index.php'
[Tue Jun 20 10:04:08.559661 2017] [perdir /var/www/blah.org/forum/] strip per-dir prefix: /var/www/blah.org/forum/index.php -> index.php
[Tue Jun 20 10:04:08.559670 2017] [perdir /var/www/blah.org/forum/] applying pattern 'vendor/(.)?$' to uri 'index.php'
[Tue Jun 20 10:04:08.559679 2017] [perdir /var/www/blah.org/forum/] strip per-dir prefix: /var/www/blah.org/forum/index.php -> index.php
[Tue Jun 20 10:04:08.559707 2017] [perdir /var/www/blah.org/forum/] applying pattern 'storage/(.)?$' to uri 'index.php'
[Tue Jun 20 10:04:08.559717 2017] [perdir /var/www/blah.org/forum/] strip per-dir prefix: /var/www/blah.org/forum/index.php -> index.php
[Tue Jun 20 10:04:08.559726 2017] [perdir /var/www/blah.org/forum/] applying pattern 'config.php$' to uri 'index.php'
[Tue Jun 20 10:04:08.559734 2017] [perdir /var/www/blah.org/forum/] strip per-dir prefix: /var/www/blah.org/forum/index.php -> index.php
[Tue Jun 20 10:04:08.559743 2017] [perdir /var/www/blah.org/forum/] applying pattern '/\.git' to uri 'index.php'
[Tue Jun 20 10:04:08.559751 2017] [perdir /var/www/blah.org/forum/] strip per-dir prefix: /var/www/blah.org/forum/index.php -> index.php
[Tue Jun 20 10:04:08.559760 2017] [perdir /var/www/blah.org/forum/] applying pattern 'composer\.(lock|json)$' to uri 'index.php'
[Tue Jun 20 10:04:08.559773 2017] [perdir /var/www/blah.org/forum/] strip per-dir prefix: /var/www/blah.org/forum/index.php -> index.php
[Tue Jun 20 10:04:08.559785 2017] [perdir /var/www/blah.org/forum/] applying pattern 'api(.)$' to uri 'index.php'
[Tue Jun 20 10:04:08.559809 2017] [perdir /var/www/blah.org/forum/] strip per-dir prefix: /var/www/blah.org/forum/index.php -> index.php
[Tue Jun 20 10:04:08.559819 2017] [perdir /var/www/blah.org/forum/] applying pattern 'admin(.*)$' to uri 'index.php'
[Tue Jun 20 10:04:08.559827 2017] [perdir /var/www/blah.org/forum/] strip per-dir prefix: /var/www/blah.org/forum/index.php -> index.php
[Tue Jun 20 10:04:08.559835 2017] [perdir /var/www/blah.org/forum/] applying pattern 'assets' to uri 'index.php'
[Tue Jun 20 10:04:08.559850 2017] [perdir /var/www/blah.org/forum/] pass through /var/www/blah.org/forum/index.php
So it seems to end up with a physical path, and I'm wondering if it is supposed to be ending up with a virtual path.
Any help gratefully received, as the Apache docs are not entirely crystal clear, and it's a complex enough subject to pick up cold anyway.