The issue
Fresh, new install in a subdirectory /var/www/html/flarum following the directions at https://docs.flarum.org/install/.
1) The home page loads without issue! https://owl.effortlessis.com (not a public server)
2) Click on "Start a Discussion" button, I see a red box lower left corner "The requested resource was not found". Browser console reads: "GET https://owl.effortlessis.com/flarum/api/tags?include=parent 404 (Not Found)"
3) /var/log/nginx/error.log reads:
2024/01/07 01:06:45 [error] 6281#0: *42 open() "/var/www/html/flarum/api/tags" failed (2: No such file or directory), client: 192.168.122.1, server: owl.effortlessis.com, request: "GET /flarum/api/tags?include=parent HTTP/1.1", host: "owl.effortlessis.com", referrer: "https://owl.effortlessis.com/flarum/"
4) "Red box" appears if I click on any link. EG profile click creates 404 error for /var/www/html/flarum/api/posts, etc.
5) find . -name api
returns nothing.
6) I've run composer install to verify that everything is installed.
Flarum information
[nginx@owl flarum]$ php flarum info
Flarum core: 1.8.5
PHP version: 8.2.14
MySQL version: 10.3.39-MariaDB
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, readline, Reflection, SPL, session, standard, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, intl, exif, mysqlnd, PDO, pgsql, Phar, posix, shmop, SimpleXML, sockets, sodium, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlwriter, xsl, mysqli, pdo_mysql, pdo_pgsql, pdo_sqlite, xmlreader, zip, igbinary, mailparse, msgpack, redis, Zend OPcache
+----------------------+---------+--------+
| Flarum Extensions | | |
+----------------------+---------+--------+
| ID | Version | Commit |
+----------------------+---------+--------+
| flarum-flags | v1.8.0 | |
| flarum-approval | v1.8.1 | |
| flarum-tags | v1.8.0 | |
| flarum-suspend | v1.8.1 | |
| flarum-subscriptions | v1.8.0 | |
| flarum-sticky | v1.8.0 | |
| flarum-statistics | v1.8.0 | |
| flarum-mentions | v1.8.2 | |
| flarum-markdown | v1.8.0 | |
| flarum-lock | v1.8.0 | |
| flarum-likes | v1.8.0 | |
| flarum-lang-english | v1.8.0 | |
| flarum-emoji | v1.8.0 | |
| flarum-bbcode | v1.8.0 | |
+----------------------+---------+--------+
Base URL: https://owl.effortlessis.com/flarum
Installation path: /var/www/html/flarum
Queue driver: sync
Session driver: file
Mail driver: mail
Debug mode: off
Other info:
AlmaLinux 9 with all updates applied.
nginx-1.14.1-9.module_el8.3.0+2165+af250afe.alma.x86_64
php-fpm-8.2.14-1.el8.remi.x86_64
php-mysqlnd-8.2.14-1.el8.remi.x86_64
All requirements checked multiple times. Locally hosted MySQL. config.php was created successfully.