Use this code
git fetch # Grab the latest code from the NodeBB repository git checkout v3.x git reset --hard origin/v3.xAnd you will have the latest version without specifying it
https://docs.nodebb.org/configuring/upgrade/
@Hari It’s looking for a Redis install. Is this active ?
[2022-02-16 11:57:15] flarum.ERROR: Predis\Connection\ConnectionException: Connection refused [tcp://127.0.0.1:6379]
@phenomlab yes, after installing composer i am supposed to install redis
@Hari Did you install composer as per this guide ?
https://getcomposer.org/download/
Essentially, it’s this
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '906a84df04cea2aa72f40b5f787e49f22d4c2f19492ac310e8cba5b96ac8b64115ac402c8cd292b8a03482574915d1a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
@phenomlab yes,
@Hari It’s not installed
EDIT: Seems it is installed, but not correctly. You should be able to run this simply as composer
. However, php composer.phar
will work, but it’s clumsy to type…
i followed these two guides
php composer.phar
https://getcomposer.org/download/
https://getcomposer.org/doc/00-intro.md
i think i installed it in multiple places root and public_html
how can i fix it?
@Hari Ok. Let me have a look at this for you.
@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
@phenomlab sir, do i need to move any files now? or did you fix it ?
@Hari Fixed. No need to move anything. It should just “work”
@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.
@phenomlab i should also setup cron jobs now searching
@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
@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.
@phenomlab i did execute that command, the inner discussion pages still not loading
@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
@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.
@Hari works now - see config below (highlighted section)
@phenomlab is this config file?
@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