Before asking for help please read "Requesting Help and Suggestions" by clicking on that tab above here.
  • Page:
  • 1

TOPIC:

making webtrees accessible from internet 11 months 13 hours ago #1

  • Erik
  • Erik's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 10
Hi, I'm new to Webtrees. I have used TMG for a long time and looking for a replacement. I like Webtrees!

I've installed Webtrees on my Synology server (DS218+) and can acces it in my home network but I can't from outside my homenetwork.

I can open a dummy index.html on my web folder from outside but can't open the same file when placed in web/webtrees... ???

I checked the rights. User http has read and write rights in the webtrees folder.

Suggestions?

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

making webtrees accessible from internet 11 months 12 hours ago #2

  • Sir Peter
  • Sir Peter's Avatar
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 272
Check this forum for the configuration of the base_url parameter in your data/config.ini.php file. You probably have something like localhost in there, but need to replace it with an address that will be available from the internet.
Peter

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

making webtrees accessible from internet 11 months 11 hours ago #3

  • Erik
  • Erik's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 10
Thanks Peter for your quick reply, but it doesn't seem to help :-(

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

making webtrees accessible from internet 11 months 10 hours ago #4

  • Sir Peter
  • Sir Peter's Avatar
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 272
I‘m afraid you will have to provide more information about the errors you receive and your configuration. „Doesn‘t work“ doesn‘t help.

For the sake of completeness you should have a look at webtrees.net/faq/synology-iconv/ as well.
Peter

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

making webtrees accessible from internet 10 months 4 weeks ago #5

  • LetGoOfMyLeg
  • LetGoOfMyLeg's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 6
As a lurker on this site, I cannot answer Webtrees questions but can help with network stuff...
To eliminate a Webtree's config issue you should enter the URL of your site and try to bring up just a file. Example:https://mywebtrees/favicon.ico [or a simple html test page and link to that]
If that displays then it's a Webtrees config/install issue. If not your server/firewall/dns/internet access setup is hosed.

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

making webtrees accessible from internet 10 months 4 weeks ago #6

  • Erik
  • Erik's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 10
Thanks, as I can open a simple html test page from outside so I suspect it's a Webtrees config/install issue.

And, after trying many things, I now can't acces webtrees anymore from inside using wifi.

Would it be wise to do a complete reinstall (MariaDB10, PHP7.4, phpMyAdmin, Webtrees)?

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

making webtrees accessible from internet 10 months 4 weeks ago #7

  • LetGoOfMyLeg
  • LetGoOfMyLeg's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 6
I would suggest figuring out the problem is the way to go; reinstalling should put you right back where you are now. You should post your php error log. Then the webtrees gurus can help.
<can't acces webtrees anymore from inside using wifi.
It is either a neutrino hit or you broke something. Use Lynx for testing to eliminate networking/firewall issues

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

making webtrees accessible from internet 10 months 4 weeks ago #8

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 15173
> Thanks, as I can open a simple html test page from outside so I suspect it's a Webtrees config/install issue.

It is still not clear what error you are getting.

You said:

> but can't open the same file when placed in web/webtrees

Well, if you put index.html in a folder that also has index.php, then it is up to your server configuration as to which one will be used.
So, as a test, it doesn't help.

When you say "can't open", what *exactly* do you mean? 404 error? 403 error? 500 error? re-direct loop?
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

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

Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: 

making webtrees accessible from internet 10 months 4 weeks ago #9

  • Erik
  • Erik's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 10
When I try to connect to http://192.168.178.33/webtrees I get the error from my browser "The connection has timed out". Also the adress seemed to have been changed in 82.161.108.233/webtrees.

In my config.ini.php my base_url="http://192.168.178.33/webtrees".
I had changed it to 82.161.108.233/webtrees but that didn't solve the problem, so I changed it back to the old value.

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

Last edit: by Erik.

making webtrees accessible from internet 10 months 4 weeks ago #10

  • Sir Peter
  • Sir Peter's Avatar
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 272
192.168.178.33 is a so called private IP address that cannot be reached from the internet. I assume it is the internal IP address of your synology NAS and webserver. Did you use exactly this IP address when you initially installed webtrees? Or did you use localhost or 127.0.0.1?

82.161.108.233 seems to be the external IP address of your internet router. It will change with every reconnect to the internet, e. g. when you restart the router or when your service provider forces a reconnect. Consequently it cannot be used to connect to your webserver.

You need a publicly accessable domain like www.example.net or subdomain webtrees.example.net and you should make yourself familiar with:
  • Dynamic DNS and how to implement it on your router
  • Port Forwarding and how to implement it on your router
Peter

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

making webtrees accessible from internet 10 months 4 weeks ago #11

  • Erik
  • Erik's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 10
Thanks Peter.

In answer to your first question: I'm not sure, but I followed the instructions on webtrees.net/install/synology/, so I think I used 127.0.0.1.

In answer to your second remark: I placed a file test-index.html in the webtrees folder and when I enter the adress 82.161.108.233/webtrees/test-index.html on the browser on my phone (wifi swiched off) the contents of the file is displayed. My external IP adress is at least for over eight years the same. So it seems to me that 82.161.108.233/webtrees is accesable from the outside.

And, yes, I should make myself familiair with the topics you mention. But I think I hope(d) for a shortcut ;-)

Erik

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

making webtrees accessible from internet 10 months 4 weeks ago #12

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 15173
webtrees has a "ping" URL. It is used for remote monitoring.

With pretty URLs, it is just /ping (Without pretty URLs, it is a little more complicated.)

If I fetch it from your site, I get an "OK" message.

82.161.108.233/webtrees/index.php?route=/webtrees/ping

So, the request is being forwarded to webtrees, which thinks it is OK.

Other static files on your site work OK. e.g.
82.161.108.233/webtrees/public/css/webtrees.min.css

But other pages aren't giving a response.

The home page redirects to /webtrees/ (or the non-pretty URL equivalent).



This is odd. I would expect it to redirect to the home page of your default tree.

Do you have a tree on your site that is 100% imported, and has public access?

Perhaps have a look through the error logs in both apache and webtrees.
(you'll find the latter in the wt_log table in the database)
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
Attachments:

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

making webtrees accessible from internet 10 months 4 weeks ago #13

  • Sir Peter
  • Sir Peter's Avatar
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 272
Ok, I think we are getting closer, but we are not there yet.
http://82.161.108.233/webtrees/test-index.html
works ok for me.
http://82.161.103.233/webtrees
does not work, but after some time it results in
http://82.161.103.233/webtrees/index.php?route=%2Fwebtrees%2F
and I *think* it misses a tree in the route definition.

If you look at Greg's demo site the 2 trees can be reached via
https://dev.webtrees.net/demo-stable/index.php?route=%2Fdemo-stable%2Ftree%2Fmythology
https://dev.webtrees.net/demo-stable/index.php?route=%2Fdemo-stable%2Ftree%2Fdemo

Is there at least one tree in your database?
Did you change the rewrite rules in your .htaccess file or were there any earlier rewrite rules that might cause a conflict with webtrees?

The genealogy data you already entered should be safe in the database, but you should make a backup/export to save them in a separate file before the next step. Backup your media files as well. If you delete or rename the config.ini.php file and call
http://82.161.108.233/webtrees
through the internet, then webtrees will start the configuration wizard once more and recreate the config.ini.php file. Here's an example config.ini.php: webtrees.net/faq/config-ini-php/
Peter

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

making webtrees accessible from internet 10 months 4 weeks ago #14

  • cosmichobo
  • cosmichobo's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 15
This is my configuration on Synology and I can access my webtrees site from both sides of the router.

From the Synology Main Menu select Web Station and enter the information for Virtual Host.
Hostname: <your domain name>.<com, net, etc>
Port: 80/443
Protocol: Http/Https
Sub-folder Name: web/<your webtrees folder name>

The webtrees configuration
Enter the base_url of your domain name in config.ini.php under the data folder in webtrees.

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

Last edit: by cosmichobo.

making webtrees accessible from internet 10 months 3 weeks ago #15

  • LetGoOfMyLeg
  • LetGoOfMyLeg's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 6
You seem to ignore the advice/questions from these guys that know this product cold. You may need to go to a Synology forum if you need help with that product. I do suspect the Webtrees guys here live off of error messages and log files to troubleshoot. Post that info and they will in all probability be better able to assist.

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

making webtrees accessible from internet 1 week 6 days ago #16


Solved - Thank you All

Background: Using Synology DSM
Installed Webtrees – all was well, accessing internally, but I wanted access from the internet.
So I set permissions, set port forwarding, got hostname
Installed Web Station, php 7.4 and created Virtual Host to point to web/webtrees

Then I lost access from inside and outside (internet).

Synology support said my setup was good, but the index.php in web/webtrees was changing the hostname to the local address.

With that guide, I found this page and changed the base_url name in the last line of [web/Webtrees/data/config.ini.php] from the local address to my hostname (http:// <your domain name>.<com, net, etc>.

That solved it. Thank you.

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

  • Page:
  • 1
Powered by Kunena Forum