So, I thought I had it solved, but when I installed extensions, they didn't work. They appeared to be installed and enabled, but were not functioning.
Back to square one.
I deleted all the files in my /addondomain folder and started from scratch with the installation document provided here by Flarum. It is now installed, along with the extensions and running well.
Some notes that might help others with Installation on an addon domain:
1) Avoid any capital letters in your addon domain name or unix directories.
2) The line in the installation that reads:
composer create-project flarum/flarum .
Note the dot at the end is not a typo, it is important to include it with a space preceding it.
3) Be certain your domain is pointing at the folder /addondomain/public
Sometimes this is called the root folder, the webroot or Document Root. This is not the same as a redirect. Find Domains or Addon Domains under cPanel, and look for Document Root and point it to the public folder of your flarum installation. Flarum is set to run from this folder by default and it keeps the security issues simpler.
4) Use lower case on the SQL database usernames , database names, etc. Pay close attention to the database settings. Be sure you are creating a new and unique string for each of these, if you've installed before then delete the old databases in cPanel first and still use all new names so you avoid SQL issues.
5) Start with a clean/empty installation folder.
I tried a clean install on a brand new domain I registered and setup last night. It failed with an error on installation because the folder wasn't empty. cPanel had put a couple of folders in there, cgi-bin and a hidden one, when I created the addondomain.
I deleted all the files in the /home/maindomain/addondomain folder and did a clean flarum installation from the terminal as described in the Flarum installation document (and as noted above).
It installed perfectly and is up and running correctly.
I hope this helps anyone who is having troubling setting up Flarum for the first time, especially on shared hosting as an addondomain. Most of this is a repeat of the Installation instructions, but I tried to add a few points that might help people who are getting stuck. The installation is pretty simple if you follow the instructions exactly.
Shout out to mochhost, my shared hosting, for still using cPanel, having composer installed and terminal/SSH available, etc.
Checkout FigRoots.com if you wanna see where my Flarum forum is at now.
Kind Regards All,
Papa
: : :