alex32's avatar

Install Flarum to subdomain

I've installed Flarum locally (WAMP) under /laravel/flarum and it works fine by adding a VirtualHost. Now, I want to install it in production, in a subdomain because this is what Flarum suggest [1,2] Can you please check the steps below, in particular how do I install Flarum in my subdomain? Many thanks

Ubuntu 22.04
Php 8.1
Laravel 10
OpenLite Speed 1.7.18
Cyberpanel 2.3
  1. Add the A record 'forum' to my DSN (CFlare) | Done
  2. Create a forum.example.com sub-domain, folder: /example.com/forum.example.com | Done
  3. Test the sub-domain url: forum.example.com | Done
  4. Download Flarum via Composer to: forum.example.com | TBC
    • how do I tell composer to download the package here?
  5. Visit url: forum.example.com and install Flarum | TBC
  6. Update the URL in config.php (url="forum.example.com")
    • optional since it'd have been done already in #5 above
  7. (optional) Clear the cache: > php flarum cache:clear

[1] https://discuss.flarum.org/d/30123-how-to-properly-set-forummydomaincom-with-flarum/7

[2] https://discuss.flarum.org/d/7724-moving-installation-from-root-to-a-subdomain/3

0 likes
1 reply
alex32's avatar
alex32
OP
Best Answer
Level 2

OK , my steps were correct. Thanks

Please or to participate in this conversation.