Install TNG on a Synology NAS

Paul Barrett
Posts: 82
Joined: Sun Apr 08, 2018 6:52 pm

Re: Install TNG on a Synology NAS

Post by Paul Barrett »

Hi Steve

Long time - Happy New Year

If I wanted to install TNG as a purely local installation with no access from the internet, what modifications would I need to make to your process, please?

Would I create a local DNS entry for the internal installation or just create a local address in WebStation?

Regards

Paul
steven
Posts: 133
Joined: Sun Oct 01, 2017 3:08 pm

Re: Install TNG on a Synology NAS

Post by steven »

Happy New Year to you too!

First ensure external access to the web folder root is not public. If you have active websites, they should be in sub-folders inside the web folder.

To check this, go to web station and select Web Service Portal. Active websites should be listed there. Look at the summary column. Websites should be listed as"
Document Root: web/website folder name 1
Document Root: web/website folder name 2
Document Root: web/website folder name 3
and so on.

If a website is listed as Document Root: web/ you can not prevent access to a local TNG install because ALL folders inside the web folder will be accessible to the public.

If public access is limited to sub-folders inside the web folder, simply create another folder for your local TNG installation. You do not need to create anything special to access the folder. Simply use the local address like: http://192.168.1.27/mytng/ where mytng is the folder name you assigned.

Then install TNG in this folder. You can also check this post for details about setting the $rootpath and $tngdomain variables.

Good luck and hope all goes well!
Paul Barrett
Posts: 82
Joined: Sun Apr 08, 2018 6:52 pm

Re: Install TNG on a Synology NAS

Post by Paul Barrett »

Hi Steve

Odd. I didn't receive a notification that you'd replied. It was your separate email that alerted me.

OK, thanks for the information. I think were good. I see that a colleage has created entries to places outside /web/ already!

Document root: web/bapt_names_index
Document root: web/yourtrees_test
Document root: web/burl_names_index
Document root: web/marr_names_index
Document root: web/yourtrees
Document root: web/devtng_berks
Document root: CHFH
Document root: CHFH

Document root: web/devtng_berks
Document root: web/poc_names_index

This is a longer term project, and on a practical note, since I'm 300 miles away from the NAS I'll have to wait until VPN access has been set up or I won't be able to do much. Might experiment on my own NAS in the meantime though

Thanks for your help
Paul Barrett
Posts: 82
Joined: Sun Apr 08, 2018 6:52 pm

Re: Install TNG on a Synology NAS

Post by Paul Barrett »

I'm not clear on this.

If I access the TNG installation on say http://10.0.0.202/foldername, how do I assign a php scripting version (8.0)?

I'm not connecting the dots ATM
steven
Posts: 133
Joined: Sun Oct 01, 2017 3:08 pm

Re: Install TNG on a Synology NAS

Post by steven »

I believe it uses the default setting but I’ll check.
steven
Posts: 133
Joined: Sun Oct 01, 2017 3:08 pm

Re: Install TNG on a Synology NAS

Post by steven »

So I have a question. Do you just want to access TNG locally or do you want to use an access portal?

If you use it locally you do not need to create a portal simply set the default backend version of PHP to 8.0
Paul Barrett
Posts: 82
Joined: Sun Apr 08, 2018 6:52 pm

Re: Install TNG on a Synology NAS

Post by Paul Barrett »

OK. Context.

I need to create an installation of TNG that is accessible to anyone on our LAN in the office 300 miles away from me (i.e. hardwired connections only). No access from the internet for anyone but me because I needs to set it up

Are you suggesting that an access portal for me would allow me in but no-one else from outside?
steven
Posts: 133
Joined: Sun Oct 01, 2017 3:08 pm

Re: Install TNG on a Synology NAS

Post by steven »

To setup php 8.0 go to web station. PHP 8.0 should be listed if it is installed and running. If not go to the package center and install or set to run.

Image

Then select Script Language Settings. Then select create.

Image

When the window open you will need to populate the selections. You may want to check the Enable display_errors to display PHP error message. Keep in errors may be shown to users if this profile is used for a website.

Image

I entered the names I normally use to make it easy to identify each version.

Image

Once you fill in the boxes select extensions.

Image

Now check the box of each extension you want to enable.

Image

These selections should get TNG running but if you use the profile for other application you may need to check additional boxes.
Once you've made your selections click create.

Now select Web Service Portal. Then select Default Server and then Edit.

Image

Now set the PHP to use the PHP profile you created then select save.

Image


Now using the instructions I gave you earlier, anyone on the LAN can type the NAS IP address followed by the TNG folder name and access TNG using PHP 8.0.

Enabling a remote connection to the LAN should be done with a VPN connection. I do not know how your LAN is set up. You can set up a VPN using the NAS by following these instructions: Set up VPN Server

If you are using a Synology Router you can also set up a VPN using VPN Plus.
Paul Barrett
Posts: 82
Joined: Sun Apr 08, 2018 6:52 pm

Re: Install TNG on a Synology NAS

Post by Paul Barrett »

Thanks Steve

There's a little New Year project for me then

Paul
Paul Barrett
Posts: 82
Joined: Sun Apr 08, 2018 6:52 pm

Re: Install TNG on a Synology NAS

Post by Paul Barrett »

I've completed all the php8 setup steps and set php8 to be teh defualt server scritping language

I've created a ne shrae for the local TNG installation and copied the TNG14 files in to it.

I've set up the database in phpmyadmin

But when I I enter http:/10.0.0.202/berksnames/readme.html to set up TNG, I get Error 404 - page no found

Any suggestions please?

Paul
Post Reply