Codoforum related discussions
Installation problem -- too many redirects

I'm trying to install codoforum. I unzipped the archive in my doc root, set ownership on the files, and then tried to access it:


https :// forum.lowerlights.com


This fails, as you'll see if you fix the link and access it yourself. It redirects too many times.


The SSL is terminated by haproxy and the backend connection from haproxy to apache (both running 2.4 versions, oddly enough) is unencrypted, on port 81. It's installed on Ubuntu Linux Server, 20.04 LTS. I have other PHP software on the server that works perfectly.


For wordpress, I did have to set the back-end traffic to https, or it would not work. Is that what is going to be required here, so that codoforum knows that the browser is using https?


I have absolutely no idea where to even begin. The installation instructions claim the install is super easy, which is not what I am finding.


Help?


I'm trying to install codoforum. I unzipped the archive in my doc root, set ownership on the files, and then tried to access it: https :// forum.lowerlights.com This fails, as you'll see if you fix the link and access it yourself. It redirects too many times. The SSL is terminated by haproxy and the backend connection from haproxy to apache (both running 2.4 versions, oddly enough) is unencrypted, on port 81. It's installed on Ubuntu Linux Server, 20.04 LTS. I have other PHP software on the server that works perfectly. For wordpress, I did have to set the back-end traffic to https, or it would not work. Is that what is going to be required here, so that codoforum knows that the browser is using https? I have absolutely no idea where to even begin. The installation instructions claim the install is super easy, which is not what I am finding. Help?

I got it working by changing the back end to https. Which means that I'm doing double encryption.


Is there something I can add to the request (http header, perhaps) that will allow the back end connection to use http, while the front end uses https? Wordpress also requires the back end to be encrypted, which is frustrating.


I got it working by changing the back end to https. Which means that I'm doing double encryption. Is there something I can add to the request (http header, perhaps) that will allow the back end connection to use http, while the front end uses https? Wordpress also requires the back end to be encrypted, which is frustrating.

There appears to be a bug in the installer. When I accept the license, I get sent here:


https://forum.lowerlights.com/install/index.php&step=2


But that's an invalid URL. Replacing the & with ? allows it to work.


There appears to be a bug in the installer. When I accept the license, I get sent here: https://forum.lowerlights.com/install/index.php&step=2 But that's an invalid URL. Replacing the & with ? allows it to work.

Spoke too soon. When I give it database details it never finishes. The button changes to "installing" and the page never changes.


Spoke too soon. When I give it database details it never finishes. The button changes to "installing" and the page never changes.

I see why it never does anything. In the apache error log:


[Sun Jun 06 19:27:29.300993 2021] [php7:error] [pid 354499] [client 127.0.0.1:59160] PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (other stuff redacted)


I see why it never does anything. In the apache error log: [Sun Jun 06 19:27:29.300993 2021] [php7:error] [pid 354499] [client 127.0.0.1:59160] PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (other stuff redacted)

Or maybe that error wasn't it. I do see that the same URL problem that happened with step 2 is also happening with step 3. It's getting 404 because the URL is badly formed.


127.0.0.1 - - [06/Jun/2021:19:35:54 -0600] "POST /install/index.php&step=3 HTTP/2.0" 404


Or maybe that error wasn't it. I do see that the same URL problem that happened with step 2 is also happening with step 3. It's getting 404 because the URL is badly formed. 127.0.0.1 - - [06/Jun/2021:19:35:54 -0600] "POST /install/index.php&step=3 HTTP/2.0" 404

By editing the URL info in installer/templates/step* I was able to get it all working. You're going to want to fix that. If you have a public source repository, I could create a patch or pull request.


By editing the URL info in installer/templates/step* I was able to get it all working. You're going to want to fix that. If you have a public source repository, I could create a patch or pull request.

Wow, spoke too soon again. I clicked the link to visit the site, and then clicked the "Login" link. I immediately got a 404. Same with the "Register" link. And every other link I've tried.


Did I do something wrong? This install has been problematic from the very beginning.


Wow, spoke too soon again. I clicked the link to visit the site, and then clicked the "Login" link. I immediately got a 404. Same with the "Register" link. And every other link I've tried. Did I do something wrong? This install has been problematic from the very beginning.

I am SO confused now. I deleted the database tables, re-extracted the archive, made my changes to the files, and suddenly it didn't work any more. So I deleted the files, deleted the DB tables, extracted it again, and now everything is working, except that I had to reload the page on step 3 to get it to work. My forum appears to work correctly now. Very confusing.


I am SO confused now. I deleted the database tables, re-extracted the archive, made my changes to the files, and suddenly it didn't work any more. So I deleted the files, deleted the DB tables, extracted it again, and now everything is working, except that I had to reload the page on step 3 to get it to work. My forum appears to work correctly now. Very confusing.

@admin would you be so kind to take a look at this problem please. smile

Kind regards,


Andy smile


@admin would you be so kind to take a look at this problem please. ;) Kind regards, Andy :)

https://net-twin.de/ Community for creative people - JOIN
https://github.com/WebCrew My GitHub account
https://prattle.space A niceTwitter alternative - JOIN
https://sell-co.de/ Lots of Tools and Utilities for free

The redirect problems seems to be very strange.


Do you perhaps have any .htaccess file in codoforum root folder that is causing this 404s?


Is everything working fine with http and https or are you still looking for any help?


The redirect problems seems to be very strange. Do you perhaps have any .htaccess file in codoforum root folder that is causing this 404s? Is everything working fine with http and https or are you still looking for any help?
Necessity is the mother of all inventions!

@admin

Apparently the user has now set up a PHPBB forum.


I wish You a good day smile


@admin Apparently the user has now set up a PHPBB forum. I wish You a good day ;)

https://net-twin.de/ Community for creative people - JOIN
https://github.com/WebCrew My GitHub account
https://prattle.space A niceTwitter alternative - JOIN
https://sell-co.de/ Lots of Tools and Utilities for free

Thanks for sahring the solution for the same probelm I have


Thanks for sharing the solution for the same problem I have

@MaxRut open a new topic with your problem please otherwise it may be overlooked.

Kind regards, Andy smile


@MaxRut open a new topic with your problem please otherwise it may be overlooked. Kind regards, Andy ;)

https://net-twin.de/ Community for creative people - JOIN
https://github.com/WebCrew My GitHub account
https://prattle.space A niceTwitter alternative - JOIN
https://sell-co.de/ Lots of Tools and Utilities for free

Hi there! You're encountering a complex issue with your forum installation. Setting up back-end traffic to HTTPS could resolve the redirection problem. Maybe it's akin to finding the sutaible phone case that perfectly fits your device – sometimes, the correct configuration is necessary for everything to work seamlessly. Don't worry; with some troubleshooting, you'll likely find the right solution!


Hi there! You're encountering a complex issue with your forum installation. Setting up back-end traffic to HTTPS could resolve the redirection problem. Maybe it's akin to finding the [sutaible phone case](https://acfootballcases.com/product/islam-slimani-31/) that perfectly fits your device – sometimes, the correct configuration is necessary for everything to work seamlessly. Don't worry; with some troubleshooting, you'll likely find the right solution!
93
16
5
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft