Skip to content

Issues getting Flarum to work on new host

Solved Configure
65 4 29.6k 1
  • @Hari said in Issues getting Flarum to work on new host:

    i am seeing upvote limit is 10 still could not upvote

    Try now

    wrote on last edited by
    #49

    @phenomlab still same

  • @phenomlab still same

    wrote on last edited by
    #50

    @Hari Seems the max value is hard coded, so you’ll have to wait until tomorrow 😄

  • @Hari Seems the max value is hard coded, so you’ll have to wait until tomorrow 😄

    wrote on last edited by
    #51

    @phenomlab sure, i have enabled CF cache but the response time is still slow should i enable redis cache ?

  • Hari Hari has marked this topic as solved on
  • @phenomlab sure, i have enabled CF cache but the response time is still slow should i enable redis cache ?

    wrote on last edited by
    #52

    @Hari Redis cache isn’t the “saviour” everyone thinks it is - most of files and assets required to access the site initially will be served from the CF edge networks, although CF won’t have any impact on the database.

    Something like Flarum’s ReCache is suggested here - I know that the developer of this product has since left the Flarum team, so I’m not sure if this is still an active product.

  • @Hari Redis cache isn’t the “saviour” everyone thinks it is - most of files and assets required to access the site initially will be served from the CF edge networks, although CF won’t have any impact on the database.

    Something like Flarum’s ReCache is suggested here - I know that the developer of this product has since left the Flarum team, so I’m not sure if this is still an active product.

    wrote on last edited by
    #53
  • @Hari Redis cache isn’t the “saviour” everyone thinks it is - most of files and assets required to access the site initially will be served from the CF edge networks, although CF won’t have any impact on the database.

    Something like Flarum’s ReCache is suggested here - I know that the developer of this product has since left the Flarum team, so I’m not sure if this is still an active product.

    wrote on last edited by Hari
    #54
  • wrote on last edited by
    #55

    @Hari its working without adding this lines

  • wrote on last edited by
    #56

    @Hari You need to add this to the Flarum .nginx.conf file, like the below

    location / {
    	try_files $uri $uri/ /index.php?$query_string;
    }
    location = /sitemap.xml {
        try_files $uri $uri/ /index.php?$query_string;
    }
    

    So just outside of the default location / block

  • @Hari You need to add this to the Flarum .nginx.conf file, like the below

    location / {
    	try_files $uri $uri/ /index.php?$query_string;
    }
    location = /sitemap.xml {
        try_files $uri $uri/ /index.php?$query_string;
    }
    

    So just outside of the default location / block

    wrote on last edited by Hari
    #57

    @phenomlab for now sitemap is loading should i still add these lines in nginx? (thinking to ignore adding these)

    i rebooted the server and the composer is not found

    should i need to install composer again?

    cd /home/ask/public_html

    [root@ask public_html]# composer require fof/best-answer:"*"
    sh: 1: composer: not found
    [root@ask public_html]# composer require fof/best-answer:"*"
    sh: 1: composer: not found
    [root@ask public_html]# locate composer
    [root@ask public_html]#
    
  • @phenomlab for now sitemap is loading should i still add these lines in nginx? (thinking to ignore adding these)

    i rebooted the server and the composer is not found

    should i need to install composer again?

    cd /home/ask/public_html

    [root@ask public_html]# composer require fof/best-answer:"*"
    sh: 1: composer: not found
    [root@ask public_html]# composer require fof/best-answer:"*"
    sh: 1: composer: not found
    [root@ask public_html]# locate composer
    [root@ask public_html]#
    
    wrote on last edited by phenomlab
    #58

    @Hari Seems to work fine for me ?

    fa9f306f-4384-44ff-9485-cb2fb66d9890-image.png

    c081e43b-2963-4c64-a18f-3f90d90c7c97-image.png

  • @Hari Seems to work fine for me ?

    fa9f306f-4384-44ff-9485-cb2fb66d9890-image.png

    c081e43b-2963-4c64-a18f-3f90d90c7c97-image.png

    wrote on last edited by Hari
    #59

    @phenomlab sir, which terminal are you using?

    i just realized there was a special character when i was trying earlier

  • @phenomlab sir, which terminal are you using?

    i just realized there was a special character when i was trying earlier

    wrote on last edited by
    #60

    @Hari I use the basic Windows CMD or Bash Shell depending on the OS I boot into.

  • @Hari I use the basic Windows CMD or Bash Shell depending on the OS I boot into.

    wrote on last edited by
    #61
  • wrote on last edited by DownPW
    #62

    Personnaly, I like Zsh for linux or the last Windows Terminal because is fully customisable

  • phenomlab phenomlab referenced this topic on
  • @Hari said in Issues getting Flarum to work on new host:

    daily upvote limit reched

    Should be resolved now. Try upvoting again (same for @crazycells)

    wrote on last edited by
    #63

    @Hari @crazycells I think I finally fixed the upvoting limit 🙂

  • @Hari @crazycells I think I finally fixed the upvoting limit 🙂

    wrote on last edited by
    #64

    @phenomlab said in Issues getting Flarum to work on new host:

    @Hari @crazycells I think I finally fixed the upvoting limit 🙂

    thanks 🙂 it looks like it is fixed but right now I am getting this error:

    Screen Shot 2023-01-09 at 21.33.55.png

  • @phenomlab said in Issues getting Flarum to work on new host:

    @Hari @crazycells I think I finally fixed the upvoting limit 🙂

    thanks 🙂 it looks like it is fixed but right now I am getting this error:

    Screen Shot 2023-01-09 at 21.33.55.png

    wrote on last edited by
    #65

    @crazycells huh. Thanks. Will need to check that as well.


Did this solution help you?
Did you find the suggested solution useful? Support 💗 Sudonix with a coffee ☕
If your organisation needs deeper expertise around infrastructure, security, or technology leadership, learn more about Phenomlab Ltd. Many of the deeper technical guides behind Sudonix are published there.

Related Topics
  • Upgrade issues

    Solved Configure nodebb
    2
    1
    2 Votes
    2 Posts
    1k Views
    DownPW
    Use this code git fetch # Grab the latest code from the NodeBB repository git checkout v3.x git reset --hard origin/v3.x And you will have the latest version without specifying it https://docs.nodebb.org/configuring/upgrade/
  • MailGun Not Working NodeBB

    Solved Configure mail mailgun
    6
    1 Votes
    6 Posts
    2k Views
    cagatay
    @phenomlab did it i did not create smtp user on mailgun. everything is working now. [image: 6cc6061f-ed5d-41f6-8eb7-5d98f98b3706-image.png]
  • 24 Votes
    29 Posts
    15k Views
    crazycells
    @DownPW it is the second post of this thread.
  • iFramely self host help

    Solved Configure iframely hosting
    10
    9 Votes
    10 Posts
    4k Views
    phenomlab
    @DownPW https://sudonix.com/topic/331/how-to-install-a-self-hosted-instance-of-iframely-for-use-with-nodebb
  • moving flarum from sub directory to subdomain

    Solved Configure flarum
    15
    2 Votes
    15 Posts
    4k Views
    Hari
    @phenomlab yes, created different app and moved files and DB now everything is working thanks
  • VirtualMin create virtual server

    Solved Configure
    4
    2 Votes
    4 Posts
    2k Views
    phenomlab
    @justoverclock correct. You only need to keep an eye on the resources of the droplet itself
  • Email issue (virturalmin)

    Solved Hosting virtualmin
    5
    0 Votes
    5 Posts
    2k Views
    JAC
    @gotwf said in Email issue (virturalmin): @jac Typically you want your domain’s MX records to point to FQDN server name, e.g. foo.example.eg % drill stockportcounty.fans mx ;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 63911 ;; flags: qr rd ra ; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;; stockportcounty.fans. IN MX ;; ANSWER SECTION: stockportcounty.fans. 600 IN MX 10 stockportcounty.fans. Yours do not. Although a bit more drillin’ and reverse lookup indicates thusly; % drill stockportcounty.fans ;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 160 ;; flags: qr rd ra ; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;; stockportcounty.fans. IN A ;; ANSWER SECTION: stockportcounty.fans. 600 IN A 65.108.63.35 ;; AUTHORITY SECTION: ;; ADDITIONAL SECTION: ;; Query time: 127 msec ;; SERVER: 204.8.232.207 ;; WHEN: Sun Oct 10 19:37:02 2021 ;; MSG SIZE rcvd: 54 <kvg@loon:~>% drill -x 65.108.63.35 ;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 57802 ;; flags: qr rd ra ; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;; 35.63.108.65.in-addr.arpa. IN PTR ;; ANSWER SECTION: 35.63.108.65.in-addr.arpa. 86400 IN PTR vps.stockportcounty.fans. I think you probably want your mx record to point to vps.stockportcountry.fans. It is important for forward and reverse lookups for MX records jive. Maybe you are looking like a spammer in that they do not? Edit: But at least you have a reverse record, many spammers do not, so that is a big red flag. Thanks for the advice, will look into it all later once back home.
  • Virtualmin Letsencrypt Renewal

    Solved Hosting
    13
    1 Votes
    13 Posts
    6k Views
    phenomlab
    @gotwf said in Virtualmin Letsencrypt Renewal: I favor KISS engineering Then I think you’ll be able to appreciate this https://content.sudonix.com/keep-it-simple-stupid/