Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

#1 2020-11-30 12:21:58

robot_holocaust
Member
Registered: 2020-11-30
Posts: 8

questions about running test forum on localhost

I've been hired to do some work on a FluxBB forum.  Since I have no experience with FluxBB I have been trying to build a test copy of the forum on localhost, so that I can mess around with it without breaking the real forum.

I have mainly figured out how to do get it going on past experience and searching this forum.  And basically it seems like it is working.

I have a few questions though...

(1) Are there maximum versions of PHP & MySQL that simply won't work with FluxBB 1.5?  The documentation vaguely refers to PHP7 being OK, but I have seen numerous mentions in threads that PHP7.2+ won't work.  And I initially tried to set it up with MySQL8 but got a ton of errors seeming to indicate the PHP code wasn't jiving with my MySQL version -- but it seems to be OK with MySQL5.  Is there a reason max PHP/MySQL versions are not made more obvious in the FAQ/documentation, or am I just looking in the wrong place?

(2) When I login as a forum user to my forum copy on localhost, the page I get directed to after login is bad and results in a page not found error -- I get directed to 127.0.0.1/forum/127.0.0.1/index.php, whereas it should just be 127.0.0.1/forum/index.php (the production forum lives at domain.com/forum/). 

Would anyone know why this is the case or how I can fix it?  After logging in and getting directed to the bad URL, if I then go back to the regular forum URL, it appears the login was successful and I can go about my forum business.

Thanks

Offline

#2 2020-11-30 13:48:23

Visman
Member
From: Siberia
Registered: 2010-07-10
Posts: 1,522
Website

Re: questions about running test forum on localhost

v 1.5.11         - php 7.1 (if I remember correctly)
current github - php 7.2

https://fluxbb.org/development/core/tickets/1109/
https://fluxbb.org/development/core/tickets/1138/
https://fluxbb.org/development/core/tickets/1151/

for MySQL 8+ - https://fluxbb.org/development/core/tickets/1148/


my fluxbb https://github.com/MioVisman/FluxBB_by_Visman work on PHP 5.6.12-8.0 + SQLite 3

Last edited by Visman (2020-11-30 13:55:15)

Offline

#3 2020-11-30 13:54:47

Visman
Member
From: Siberia
Registered: 2010-07-10
Posts: 1,522
Website

Re: questions about running test forum on localhost

(2) When I login as a forum ...

Check the value in:
Admin menu - Options - Base URL
or
config table in DB - o_base_url

and delete cache/cache_config.php file

Offline

#4 2020-12-06 20:17:36

robot_holocaust
Member
Registered: 2020-11-30
Posts: 8

Re: questions about running test forum on localhost

Thanks a lot for this. 

So am I correct then that the latest package on this site is 1.5.11, but the Github page has a newer version that for some reason is not posted on this site, and then you yourself have an even newer version that you have forked?

Also, do you know if are there minimum SQL versions for these?

Offline

#5 2020-12-07 01:14:21

Visman
Member
From: Siberia
Registered: 2010-07-10
Posts: 1,522
Website

Re: questions about running test forum on localhost

1.5.11 is the last official release.
On Github there are changes for version 1.6, which did not come out https://fluxbb.org/development/core/tickets/?m=33&s=all
My FluxBB is the engine I changed + many modifications https://fluxbb.org/forums/viewtopic.php?id=4941

Official FluxBB needs MySQL 4.1.2+, my FluxBB needs MySQL 5.5.3+ (for support 4 byte UTF-8).

Last edited by Visman (2020-12-07 01:15:08)

Offline

#6 2020-12-10 23:19:54

robot_holocaust
Member
Registered: 2020-11-30
Posts: 8

Re: questions about running test forum on localhost

Thanks again.  I'm attempting to upgrade to your version from 1.5.6.

I figured out that your config.php lives in the include folder rather than at the top level. So I copied my old config.php file to that location.  When going there in the browser it seems like it's working, I get prompted to update my DB, enter the DB password & it starts, and then I get an error:

File: /db_update.php
Line: 2368
FluxBB reported: Unable to write config file to include/config.php

Any idea what the problem is?  I have the whole forum with 777 perms (I don't know what they should be and I just want it to work right now) so I don't think it's a permissions thing. Is it because config.php already exists? 

If I'm not supposed to put my old config.php file in include, where should I put it so that it recognizes it's an upgrade and not a new installation?

Cheers.

Offline

#7 2020-12-11 03:04:26

Visman
Member
From: Siberia
Registered: 2010-07-10
Posts: 1,522
Website

Re: questions about running test forum on localhost

Use your hands to edit the include/config.php file (add the missing lines to your file):

<?php

$db_type = ...
$db_host = ...
$db_name = ...
$db_username = ...
$db_password = ...
$db_prefix = ...
$p_connect = false;

$cookie_name = ...
$cookie_domain = ...
$cookie_path = ...
$cookie_secure = ...
$cookie_seed = ...
$cookie_samesite = 'Lax'; // Strict, Lax or None

$salt1 = 'jfjfhfhfhfhfhfhjgutssssssdeeeqw455'; // RANDOM STRING

define('PUN', 1);

define('PUN_DEBUG', 1);
//define('PUN_SHOW_QUERIES', 1);
define('PUN_MAX_POSTSIZE', 65535);
//define('FORUM_EOL', "\r\n"); // possible values can be PHP_EOL, "\r\n", "\n" or "\r"
//define('FORUM_UA_OFF', 1);
define('FORUM_AJAX_JQUERY', 'https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js');
//define('FORUM_SQLITE3_BUSY_TIMEOUT', 10000);
//define('FORUM_SQLITE3_WAL_ON', 1);

//error_reporting(E_ALL);
//ini_set('display_errors', 1);
//ini_set('log_errors', 1);

and in db_update.php replace

		if (!array_key_exists('o_cur_ver_revision', $pun_config) || $pun_config['o_cur_ver_revision'] < 63)

to

		if (false)

and run the update again

Last edited by Visman (2020-12-11 03:12:25)

Offline

#8 2020-12-11 22:41:53

robot_holocaust
Member
Registered: 2020-11-30
Posts: 8

Re: questions about running test forum on localhost

Ok great, this works and I'm almost there...

One (hopefully last) issue: In the new config.php if I put anything other than an empty string in the salt field then no accounts can login.

Is there a way to update the DB passwords with a salt that is really a random string, or should I just leave salt as an empty string in this config.php?

Offline

#9 2020-12-12 02:46:28

Visman
Member
From: Siberia
Registered: 2010-07-10
Posts: 1,522
Website

Re: questions about running test forum on localhost

Sorry, my mistake.
Use

$salt1 = '';

Random string only for a new installation sad

Offline

Board footer

Powered by FluxBB