Install TNG on a Synology NAS

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

Re: Install TNG on a Synology NAS

Post by steven »

Sorry for the delayed reply but it took a bit to figure out how to set up TNG on a LAN without LAN access using only a remote NAS.

You cannot access http:/10.0.0.202/berksnames/readme.html from the WAN (internet) since it is a LAN address. This is why you need a VPN connection.

However, you can still setup TNG on your local NAS and then transfer the TNG files and database to the remote NAS, although this is a bit more complicated.

First install TNG on your local NAS using a temporary database with the same name, user name and password as the remote NAS.

During the install process, you will be assigned user one automatically. Once this is completed and working you will need to create another user, one who has direct access to the LAN with the remote NAS. Assign this user administrative permission. If you do not create this extra person no one will be able to approve registrations since you are remote and will not be able to access anything in TNG until you create a VPN connection.

Now go through TNG's admin pages and adjust any settings you want for users, information displayed, images, timeline and imports etc. I'm not sure if email will work, for notifications, unless the NAS has access to the internet or a local mail server on the LAN.

After the above items are completed, manually edit the TNG config.php file and verify or modify the following to match the remote NAS variables.

$rootpath - Rename the local NAS path if the local and remote NAS paths are different. Example: /volume1/web/berksnames/"

$tngdomain - http://10.0.0.202/berksnames/

If either of these variables are incorrect TNG won't work.

Go to you local phpMyAdmin and use the export feature to create a SQL file of the database on your local machine. To do this select the database name in the left column and then select Export from the tabs near the top of the phpMyAdmin window and select Go. A file will be created on your local drive with a SQL extension. Note: phpMYAdmin has a limitation of 1,024MiB. Since your file be be small, this will not be an issue.

Now log in to the remote NAS and open phpMyAdmin. In the left column select the empty TNG database you created earlier. Select import and browse to the local temporary database SQL file created on your local computer and select Go.

Last copy all the local TNG files to the remote NAS.

When this is complete the second user you created should be able to log on to TNG from the LAN and approve new user registrations.

Remember, only users on the same LAN as the remote NAS will have access to TNG. Users on the WAN will not. So you will not be able to access TNG from the WAN until you create a VPN connection.

When all this is complete and working, you can delete the temporary user and database from your local NAS using phpMyAadmin.
Paul Barrett
Posts: 82
Joined: Sun Apr 08, 2018 6:52 pm

Re: Install TNG on a Synology NAS

Post by Paul Barrett »

To be clear, I am currently experimenting with installing TNG locally on MY NAS so that I don't have the complication of a VPN to a remoted NAS. Sorry - I should've made that clear

So it's THAT instance that's throwing the error 404 page not found for http://10.0.0.202/berksnames

Paul
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,

So why is my entriely local isntance throwing an error 404 please?
steven
Posts: 133
Joined: Sun Oct 01, 2017 3:08 pm

Re: Install TNG on a Synology NAS

Post by steven »

It may be either the root path or the http address is wrong or permissions are not set to allow http access to the folder.
Paul Barrett
Posts: 82
Joined: Sun Apr 08, 2018 6:52 pm

Re: Install TNG on a Synology NAS

Post by Paul Barrett »

It may be moot, because I now have VPN access to the office NAS, so let's see if I have the same issue there. It'll be a while though - lots on my plate ATM

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

Re: Install TNG on a Synology NAS

Post by steven »

403 Definition - The HTTP 403 Forbidden response status code indicates that the server understands the request but refuses to authorize it. This status is similar to 401 , but for the 403 Forbidden status code, re-authenticating makes no difference. The access is tied to the application logic, such as insufficient rights to a resource.

404 Definition - The HTTP 404 Not Found response status code indicates that the server cannot find the requested resource. Links that lead to a 404 page are often called broken or dead links and can be subject to link rot. A 404 status code only indicates that the resource is missing: not whether the absence is temporary or permanent.
Paul Barrett
Posts: 82
Joined: Sun Apr 08, 2018 6:52 pm

Re: Install TNG on a Synology NAS

Post by Paul Barrett »

Got it. Thanks
Post Reply