Skip to content

Issues getting Flarum to work on new host

Solved Configure
65 4 29.6k 1
  • @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?

  • @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?

    wrote on last edited by
    #38

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

    sorry, i have no clue where to update DNS
    i have pointed ask.domain.com to my DO IP at CF

    That’s all you need to do. Let me see if I can get the cert to work


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
  • Error certification on virtualmin/Nginx

    Solved Linux cert virtualmin nginx
    17
    2
    0 Votes
    17 Posts
    7k Views
    phenomlab
    @DownPW anytime
  • 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/
  • Issues with v3 alpha and Harmony

    Moved Solved Configure
    18
    4 Votes
    18 Posts
    5k Views
    phenomlab
    @cagatay Should be all sorted now Don’t forget to put your language back to Turkish.
  • 5 Votes
    13 Posts
    3k Views
    DownPW
    'use strict'; const winston = require('winston'); const user = require('../user'); const notifications = require('../notifications'); const sockets = require('../socket.io'); const plugins = require('../plugins'); const meta = require('../meta'); module.exports = function (Messaging) { Messaging.notifyQueue = {}; // Only used to notify a user of a new chat message, see Messaging.notifyUser Messaging.notifyUsersInRoom = async (fromUid, roomId, messageObj) => { let uids = await Messaging.getUidsInRoom(roomId, 0, -1); uids = await user.blocks.filterUids(fromUid, uids); let data = { roomId: roomId, fromUid: fromUid, message: messageObj, uids: uids, }; data = await plugins.hooks.fire('filter:messaging.notify', data); if (!data || !data.uids || !data.uids.length) { return; } uids = data.uids; uids.forEach((uid) => { data.self = parseInt(uid, 10) === parseInt(fromUid, 10) ? 1 : 0; Messaging.pushUnreadCount(uid); sockets.in(`uid_${uid}`).emit('event:chats.receive', data); }); if (messageObj.system) { return; } // Delayed notifications let queueObj = Messaging.notifyQueue[`${fromUid}:${roomId}`]; if (queueObj) { queueObj.message.content += `\n${messageObj.content}`; clearTimeout(queueObj.timeout); } else { queueObj = { message: messageObj, }; Messaging.notifyQueue[`${fromUid}:${roomId}`] = queueObj; } queueObj.timeout = setTimeout(async () => { try { await sendNotifications(fromUid, uids, roomId, queueObj.message); } catch (err) { winston.error(`[messaging/notifications] Unabled to send notification\n${err.stack}`); } }, meta.config.notificationSendDelay * 1000); }; async function sendNotifications(fromuid, uids, roomId, messageObj) { const isOnline = await user.isOnline(uids); uids = uids.filter((uid, index) => !isOnline[index] && parseInt(fromuid, 10) !== parseInt(uid, 10)); if (!uids.length) { return; } if (roomId != 11) { // 5 Is the ID of the ID of the global chat room. Messaging.getUidsInRoom(roomId, 0, -1); // Proceed as normal. } else { user.getUidsFromSet('users:online', 0, -1); // Only notify online users. } const { displayname } = messageObj.fromUser; const isGroupChat = await Messaging.isGroupChat(roomId); const notification = await notifications.create({ type: isGroupChat ? 'new-group-chat' : 'new-chat', subject: `[[email:notif.chat.subject, ${displayname}]]`, bodyShort: `[[notifications:new_message_from, ${displayname}]]`, bodyLong: messageObj.content, nid: `chat_${fromuid}_${roomId}`, from: fromuid, path: `/chats/${messageObj.roomId}`, }); delete Messaging.notifyQueue[`${fromuid}:${roomId}`]; notifications.push(notification, uids); } };
  • 24 Votes
    29 Posts
    15k Views
    crazycells
    @DownPW it is the second post of this thread.
  • installing flarum with plesk

    Solved Configure flarum
    78
    26 Votes
    78 Posts
    39k Views
    Hari
    @phenomlab thanks a lot, have a nice day
  • SSl expired on virtualmin

    Solved Configure virtualmin ubun server ssl
    18
    3 Votes
    18 Posts
    7k Views
    phenomlab
    @justoverclock Not necessarily. You only need to use this if it fails from the Virtualmin window
  • 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/