FlaskBB
A lightweight forum software in Flask
Member
Joined:
Posts: 3

Im am new to the scene. I have been looking at this website for about a week and decided to give it a shot.
I have tried bot installation guides and im lost. I have searched the forums and dont seem to find what might help or maybe its just over my head.

I used Shings basic config file:
Path to save: (left blank)
Server name: localhost
HTTPS?: n
Postgres/SQLAlchemy: (left blank)
Use redis?: n
Mail server: localhost
SMTP Port: 25
TLS for sending mail?: N
SSL for sending mail?: N
Mail username: (left blank)
Mail password: (left blank)
Mail sender name: (left blank)
Mail sender address: (left blank)
Mail admin email: (left blank)
Logging Config Path: (left blank)

and I also added the port to 5000 like how he did.

Now i get :

(.venv) root@ubuntu:/home/power/forum/flaskbb# flaskbb --config flaskbb.cfg run

  • Environment: production
    WARNING: Do not use the development server in a production environment.
    Use a production WSGI server instead.
  • Debug mode: off
  • Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)

but now I am lost. What am I supposed to do now? I have tried accessing it from another computer on chrome but i get a refused connection...
I am running Ubuntu 4.15.0
Any help is greatly appreciated!

Member
avatar
Joined:
Posts: 16

If you're on a different computer you need to point your web browser towards the FlaskBB computer. 127.0.0.1 is another way of looking at the homepage of whatever computer you're using - it looks internally instead of externally for the website.

There's different ways of fixing this. I most permanent method is to attach a free domain name to your FlaskBB computer using a service like no-ip.

Alternatively (I think this might work), if you log onto your FlaskBB computer and visit what is my IP, then type that IP address followed by a :5000 into a different computer, it might work I'm not 100% sure.


enter image description here

Member
Joined:
Posts: 3

Right. okay so one of my issues is that i set it as localhost on port 5000 and i was using a server that runs in CLI only. So i switched it up to an Ubuntu desktop and did the whole install again and was able to get to the website. on the local host.
Now having a computer right next to it with the same ip scheme, cannot reach it... Even if i my flaskbb.cfg file has the an ip address. Ill have to play with this some more.
Thanks @shing!

Member
Joined:
Posts: 3

Also when i change the IP in the config file and run the program, it still runs on http://127.0.0.1:5000

Member
avatar
Joined:
Posts: 16

hipmatt wrote:

Also when i change the IP in the config file and run the program, it still runs on http://127.0.0.1:5000

The bit I'm not 100% sure about is - you might need to set up something like Apache web server first. @sh4nks will know more than me. I have Apache running by default and I think (but can't 100% remember) I set it up to serve my FlaskBB back in August, but my development is a slow burner and I've forgotten!


enter image description here

Administrator
avatar
Joined:
Posts: 139

Yeah, as @shing said, you have to set up a reverse proxy. There is a section about that in the documentation (i.e. for nginx: https://flaskbb.readthedocs.io/en/latest/installation.html#nginx)


Cheers! 🍻