Skip to content

Issues getting Flarum to work on new host

Solved Configure
65 4 29.6k 1
  • wrote on last edited by phenomlab
    #18

    @Hari done. You should now be able to run composer directly as any user (preferably not root) inside the public_html directory.

    Essentially, it needs to be installed as php composer-setup.php --install-dir=/usr/bin --filename=composer

  • @Hari done. You should now be able to run composer directly as any user (preferably not root) inside the public_html directory.

    Essentially, it needs to be installed as php composer-setup.php --install-dir=/usr/bin --filename=composer

    wrote on last edited by
    #19

    @phenomlab sir, do i need to move any files now? or did you fix it ?

  • @phenomlab sir, do i need to move any files now? or did you fix it ?

    wrote on last edited by
    #20

    @Hari Fixed. No need to move anything. It should just “work” 🙂

  • wrote on last edited by phenomlab
    #21

    @Hari you can go ahead and use sudo apt install redis-server redis-tools to get Redis up and running now. After that, (hopefully) Flarum should boot.

  • @Hari you can go ahead and use sudo apt install redis-server redis-tools to get Redis up and running now. After that, (hopefully) Flarum should boot.

    wrote on last edited by Hari
    #22

    @phenomlab i should also setup cron jobs now searching

    a8d3cb68-e7e3-4176-aed6-33c0e2a65eda-image.png

  • @phenomlab i should also setup cron jobs now searching

    a8d3cb68-e7e3-4176-aed6-33c0e2a65eda-image.png

    wrote on last edited by phenomlab
    #23
  • wrote on last edited by Hari
    #24

    @phenomlab i have added cron job

    updated the config file but flarum is not running on IP
    when i disable redis its not loading inner pages

    c32c944d-3902-4758-85ad-425509ddac1d-image.png

  • @phenomlab i have added cron job

    updated the config file but flarum is not running on IP
    when i disable redis its not loading inner pages

    c32c944d-3902-4758-85ad-425509ddac1d-image.png

    wrote on last edited by
    #25

    @Hari That’s expected because you didn’t run sudo apt install redis-server redis-tools 🙂
    I’ve just done this, and the site now loads.

  • @Hari That’s expected because you didn’t run sudo apt install redis-server redis-tools 🙂
    I’ve just done this, and the site now loads.

    wrote on last edited by Hari
    #26

    @phenomlab i did execute that command, the inner discussion pages still not loading

    30fcfcea-fa3c-4705-96d8-b7cde08bf089-image.png

  • @phenomlab i did execute that command, the inner discussion pages still not loading

    30fcfcea-fa3c-4705-96d8-b7cde08bf089-image.png

    wrote on last edited by
    #27

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

    i did execute that command, the inner discussion pages still not loading

    If you’d executed it, then it wouldn’t have installed when I ran it

    45402bd1-1aa2-4c63-9f2d-14e8225b7976-image.png

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

    the inner discussion pages still not loading

    This is also expected as you haven’t included the .nginx.conf file. Hold on a second.

  • wrote on last edited by
    #28

    @Hari works now - see config below (highlighted section)

    0acbe69e-d9aa-4e72-973c-1a05ad89c0d8-image.png

  • phenomlab phenomlab referenced this topic on
  • @Hari works now - see config below (highlighted section)

    0acbe69e-d9aa-4e72-973c-1a05ad89c0d8-image.png

    wrote on last edited by
    #29

    @phenomlab is this config file?

  • @phenomlab is this config file?

    wrote on last edited by phenomlab
    #30

    @Hari Your NGINX site config file, yes. Essentially, we just include the .nginx.conf file in there so it’s loaded when the site is. You need mod_rewrite for Flarum to work 🙂

  • @Hari Your NGINX site config file, yes. Essentially, we just include the .nginx.conf file in there so it’s loaded when the site is. You need mod_rewrite for Flarum to work 🙂

    wrote on last edited by
    #31

    @phenomlab could you tell me the path of this file

  • @phenomlab could you tell me the path of this file

    wrote on last edited by
    #32

    @Hari Sending in PM for security reasons

  • wrote on last edited by
    #33

    @Hari Redis also functioning as expected

    3aefeaa4-9636-438e-8c1a-1b770b970806-image.png

  • @Hari Redis also functioning as expected

    3aefeaa4-9636-438e-8c1a-1b770b970806-image.png

    wrote on last edited by Hari
    #34

    @phenomlab i think my server has no proper ssl configured

    should i need to set this to default? at domain level (virtualmin server ) lets encrypt also failing to issue certificate

    3fe57b7e-5ee6-413e-a6d9-fcc559274ed4-image.png

    i think i should change IP to my subdomain in nignx file? at the above screenshot area?

  • @Hari Redis also functioning as expected

    3aefeaa4-9636-438e-8c1a-1b770b970806-image.png

    wrote on last edited by
    #35

    @phenomlab

    failure reason

    Domain: www.ask.domain.com
      Type:   unauthorized
      Detail: No TXT record found at
      _acme-challenge.www.ask.domain.com
    
  • @phenomlab

    failure reason

    Domain: www.ask.domain.com
      Type:   unauthorized
      Detail: No TXT record found at
      _acme-challenge.www.ask.domain.com
    
    wrote on last edited by
    #36

    @Hari You should only apply the certificate at Virtualmin level, so here for example. You’ll need to update your DNS first before you can get a certificate.

    de2d8b64-bf9b-4fc1-8c6b-b1ca051b1ca0-image.png

  • @Hari You should only apply the certificate at Virtualmin level, so here for example. You’ll need to update your DNS first before you can get a certificate.

    de2d8b64-bf9b-4fc1-8c6b-b1ca051b1ca0-image.png

    wrote on last edited by
    #37

    @phenomlab sorry, i have no clue where to update DNS

    i have pointed ask.domain.com to my DO IP at CF

    anything else that needs to be done?


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