Jump to content
TNG Community
Ryk Brown

Help with multiple TNG13 installs on shared hosting pkg

Recommended Posts

Ryk Brown

I searched to see if this question has been posted before but couldn't find it. I hope it's not a duplicate.

I'm trying to install TNG13 on a second site on a shared hosting package. I'm not sure where to install TNG in the directory for the second site since I already have TNG installed in public_html for my main site. My second site shows up in my main director as a separate folder on the same directory level as my public_html folder. Can I just install TNG for the second time inside the folder for the second site? I have attached a screenshot of my directory as viewed in FileZilla.

Second question -- I'm using the same database for both sites. Is it possible to set up TNG on both sites to access the same database so I only have to upload updates to the database once, rather than having to upload it twice, once for each site?

My main site is https://rykbrown.net/

My first TNG install is https://rykbrown.net/TNG/index.php

My second site is https://stewartsofbalquhidder.com/

Thanks for any assistance.

Screenshot (31)_LI.jpg

Share this post


Link to post
Share on other sites
tngrlkrz

I can only show how my folders are setup from a filezilla folder snapshot:

image.png

The upper www is the webspace, and then the 3 TNG sites within it.

  • tng13 (pre-production) is a test site TNG root.
  • tng13c is another mod test site TNG root.
  • www is my production site TNG root. The TNG license permits only one 'live' site.

I copy and install TNG separately in each of those TNG root folders.  

I would advise against using the same database.  In my case, there are 3 separate databases. I import all data via gedcom, so I use the private folder outside the webspace where all TNG sites can import the same gedcom.  I keep all media in the shared folder, outside TNG but still accessible within the webspace, using symlinks to point the TNG media folder to the shared/media folders (photos/docs/headstones,etc). So I only have to upload media and gedcom once for all three TNG instances

Hope that helps a bit.

 

Share this post


Link to post
Share on other sites
Ken Roy
1 hour ago, Ryk Brown said:

My main site is https://rykbrown.net/

My first TNG install is https://rykbrown.net/TNG/index.php

My second site is https://stewartsofbalquhidder.com/

Thanks for any assistance.

While what Ron showed is allowed with one license of TNG since he only has one public facing domain, it appears to me that what you are showing is more than one domain which might require that you have more than one TNG license if you read the license.txt file

Share this post


Link to post
Share on other sites
Ryk Brown
2 hours ago, Ken Roy said:

While what Ron showed is allowed with one license of TNG since he only has one public facing domain, it appears to me that what you are showing is more than one domain which might require that you have more than one TNG license if you read the license.txt file

 

Ken, you are correct. I misunderstood the license. I didn't realize I needed a separate license for each site when they're both my sites. Thank you for that clarification. I'll look into that.
Ryk

Share this post


Link to post
Share on other sites
Ryk Brown
2 hours ago, tngrlkrz said:

I can only show how my folders are setup from a filezilla folder snapshot:

image.png

The upper www is the webspace, and then the 3 TNG sites within it.

  • tng13 (pre-production) is a test site TNG root.
  • tng13c is another mod test site TNG root.
  • www is my production site TNG root. The TNG license permits only one 'live' site.

I copy and install TNG separately in each of those TNG root folders.  

I would advise against using the same database.  In my case, there are 3 separate databases. I import all data via gedcom, so I use the private folder outside the webspace where all TNG sites can import the same gedcom.  I keep all media in the shared folder, outside TNG but still accessible within the webspace, using symlinks to point the TNG media folder to the shared/media folders (photos/docs/headstones,etc). So I only have to upload media and gedcom once for all three TNG instances

Hope that helps a bit.

 

Ron, thank you for your detailed response. As with Ken's reply below, you've helped me realize that I have misunderstood the license agreement.

Share this post


Link to post
Share on other sites
Ken Roy

Ryk,

I think you could still do it with one license but it would require that you do not use 2 different domain names, but rather use subdomains

Share this post


Link to post
Share on other sites
Rob Roy

I used two different domains, and have two licenses.  If you look at the price of TNG, it is a pretty good deal.  Each instance is in a separate directory.  When installing the second instance, if you are using the same database which on most hosts you will, you will have to change the name of each table name. For example in my second instance which is theroyfamily.com the tng_people table is roytng_people.  The installation procedures all for this change. 

On the second instance, if you copy a SQL Report from here, you will need to edit the table names.  All else runs very smothly.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×