Web based family history software

Question [SOLVED] redirection port is lost after upgrade 2.0.0 beta5

  • Forssux
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 4 months ago - 4 years 4 months ago #1 by Forssux
Hi There,

I'm running webtrees on a QNAP and Qapache
The problem is that the default webserver uses a very old php therefore I resorted to Qapache .
However Qapache listens on port 88.
The beta 2.05 seems to work but only if I manually add the portnumber..

How can I change this behavior?

example http://192.168.1.5:88/webtrees/index.php?route=%2Fwebtrees%2Ftree%2FForssman%2Fmy-page seems to work
Last edit: 4 years 4 months ago by Forssux. Reason: clarification

Please Log in or Create an account to join the conversation.

More
4 years 4 months ago #2 by fisharebest
Replied by fisharebest on topic change port
Do you have a "base_url" entry in your config.ini.php file?

webtrees.github.io/faq/config-ini-php

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • Forssux
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 4 months ago #3 by Forssux
Replied by Forssux on topic change port
yes I have that line...
base_url="http://192.168.1.5:88/webtrees/"

Please Log in or Create an account to join the conversation.

More
4 years 4 months ago #4 by fisharebest
Replied by fisharebest on topic change port
> The beta 2.05 seems to work but only if I manually add the portnumber..

Can you describe "not working".

What do you see?
What do you expect to see?
etc.

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • Forssux
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 4 months ago #5 by Forssux
Replied by Forssux on topic change port
What I see is capture10.jpg

What I expected to see is a working beta.

I had installed the first 2.0 a long time ago..I manually overwriten with 2.05.

I copied the /data directory to a safe plave
I also made sure I had the original media and config-ini-php

Kind regards
Guy Forssman
Attachments:

Please Log in or Create an account to join the conversation.

More
4 years 4 months ago #6 by fisharebest
Replied by fisharebest on topic change port
It really isn't clear from the screenshot what is happening.

Start at the beginning.
You type in a URL - presumably with a port number.

Does the site automatically redirect to a page without it?
Do you click on a link to get this error page?
Does the error page appear after you submit a form?
etc.

If you can activate the developer tools in your browser (e.g. ctrl-shift-I in firefox/chrome) and look at the sequence of requests, that might be helpful.

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • Forssux
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 4 months ago - 4 years 4 months ago #7 by Forssux
Replied by Forssux on topic change port
after typing 192.168.1.5:88/webtrees/index.php I immediately get the screenshot. The portnumber gets auto erased

I used the same credentials as in the 2.01 installation.

I renamed the directory via putty to webtreesOLD and unzipped the 2.05 .

Then I can start to fill in setup data, but as soon as I create a administrator I can't reach the site.

Here is my config.ini.php
; <?php return; ?> DO NOT DELETE THIS LINE
dbtype="mysql"
dbhost="127.0.0.1"
dbport="3306"
dbuser="webtrees2"
dbpass="secret"
dbname="webtrees2"
tblpfx="wt_"
base_url="http://192.168.1.5:88/webtrees/index.php"
Last edit: 4 years 4 months ago by Forssux.

Please Log in or Create an account to join the conversation.

More
4 years 4 months ago #8 by fisharebest
Replied by fisharebest on topic change port
The "base_url" line should be just

base_url="http://192.168.1.5:88/webtrees"

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • Forssux
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 4 months ago #9 by Forssux
Replied by Forssux on topic change port
I adapted the base_url and got this behavior..

enter: 192.168.1.5:88/webtrees
result: http://192.168.1.5/webtrees/tree/Forssman/my-page the portnumber is gone..

insert port 88: http://192.168.1.5:88/webtrees/tree/Forssman/my-page
result: Not Found
The requested URL /webtrees/tree/Forssman/my-page was not found on this server.


What is the best way to Restore with a existing database and media folder?

Please Log in or Create an account to join the conversation.

  • Forssux
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 4 months ago #10 by Forssux
Replied by Forssux on topic change port
Hi There,


I managed to copy the current 1715 to the new Qapache and that works.

I also noticed that there are a lot less files in the new 2.05 is this normal?
Attachments:

Please Log in or Create an account to join the conversation.

More
4 years 4 months ago - 4 years 4 months ago #11 by xmlf
Replied by xmlf on topic change port
During redirection, the port(non-80 or 443 ports) was lost.

It should be the same problem as this one.
www.webtrees.net/index.php/en/forum/3-he...ees-2-0-0-beta-5-zip

In addition,the PHP version of QNAP Firmware 4.4.1 is already 7.3.7.

Wang Family Website of Suining County, China
www.snwsjz.com
A family tree website that is customized, more humanized and convenient for users.
Last edit: 4 years 4 months ago by xmlf.

Please Log in or Create an account to join the conversation.

  • Forssux
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 4 months ago #12 by Forssux
Replied by Forssux on topic change port
During redirection, the port(non-80 or 443 ports) was lost.

It should be the same problem as this one.
www.webtrees.net/index.php/en/forum/3-he...ees-2-0-0-beta-5-zip

Indeed from the moment I make an administrator in the Wizard I get the blank page..
I copied the 1.7.15 version from the qnap/web directory ( php 5.6.38 apache 2437) to the qapache directory htdocs (PHP Version 7.2.21 apache 2.4.39) and that works

As I didn't see /opt/Qapache I did a ln- sf /share/CACHEDEV1_DAT

Then I changed ;Production Value:Off into Production Value:on in the /opt/Qapache/etcphp.ini file to see eventual errors

You mentioned that the PHP version of QNAP 4.4.1 is php 7.3.7 helas I have a older QNAP than you apparently I run a TS-869L and the latest firmware there is 4.3.4.1129 php is following phpinfo PHP Version 5.6.38.
That's the reason I was running Qapache as it has more recent versions of apache and php ( forum.qnap.com/viewtopic.php?t=143802 )

As the stable version is running Qapache I'm inclined to think that something is not correct with the 2.0.0.5 beta version
Does somebody has suggestions to make it work?

Kind regards
Guy

Please Log in or Create an account to join the conversation.

More
4 years 4 months ago #13 by fisharebest
Replied by fisharebest on topic change port
I think I have found the cause.

It might take me a day to create a fix.

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

More
4 years 4 months ago #14 by fisharebest
Replied by fisharebest on topic change port
The latest code should work with port numbers.

I have tested it:

with/without port numbers
with/without subfolders
with/without pretty urls
with/without https

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • Forssux
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 4 months ago #15 by Forssux
Problem solved.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum
}