Move your gedcom files
TNG Gedcom Folder
TNG defines a gedcom folder in the Setup >> General Settings >> Import Settings
You might be able to specify that folder as being in a more protected area of your web site.
TNG version: | ≥ 14.0 |
In TNG v14 and later, you can check the Store in config path box in Admin > Setup > Import Settings so that your GEDCOM Folder (Import/Export) is stored in the same location as your Config Path, outside of web addressibility.
Note: that the Rename button can be used to create the folder for you in your config path. You will need to manually move your data import .ged and / or zip file(s).
Examples
Here is how to put your gedcom files in the safe area above your shared site's document root in three easy steps:
- Use cPanel or FileZilla to create the gedcom folder above the site's document root (public_html).
- In the Admin >> Setup >> Configuration >> Import settings, set the relative path from your document root to the new folder. If your TNG site is the document root, use
../gedcom
. If you are one or two levels below the document root, you will need to use../../gedcom
or../../../gedcom
respectively. Click on Make folder and it will tell you the directory already exists (TNG found it!) - Save the change to the file path
A similar procedure should allow you to store TNG's backup tables in the private area as well.
ICDSoft Example
If you are hosted on ICDSoft for example, the gedcom folder and files could be moved to your /private folder which is not web accessible and can only be accessed through the ICDSoft Control Panel File Manager or through your FTP client.
You could create sub folders under /private to allow for having two or more test systems where you can then add a gedcom folder, for example the following was provided by Ron Krzmarzick
ICDSoft uses www for their web site root and private for files not accessible from the web browser. So under
|
Localhost Example
Note that you can simulate or test putting the folders outside of web browser accessibility on your local WampServer setup by creating the gedcom folder as a subfolder to the wamp folder. |
Create Gedcom Folder
Prior to TNG v14
TNG version: | ≥ 13.0.0 |
Note that in TNG 13 and later, Rename Folder replaced the Make Folder button but should provide the same capabilities as the previous Make Folder button.
TNG version: | ≤ 13.1.2 |
If you decide to move your gedcom folder, you can use the Make Folder button to create the new folder in Admin > Setup > Import Settings. On ICDSoft, where I already have a config folder under the private directory structure within a subdirectory for the production site (www) and for other test sites, I specified
../../private/www/gedcom
and clicked the Make Folder button to create the gedcom folder.
Note that if TNG on your site is installed in a subfolder to the web root folder, then the values would have an additional ../ to reflect that TNG is in a subfolder to the web root
../../../private/www/gedcom
Starting with TNG v14
TNG version: | ≥ 14.0 |
TNG v14 added an option that you can check to Store in config path. If you check that box, you then need to move your GEDCOM files to your Config Path folder.
Note: For added security regarding your GEDCOM files, check the box labeled "Store in config path" to have TNG keep the GEDCOM files in that location. You must move the GEDCOM folder to that location yourself prior to saving this value. |
If you checked the option to Store in config path and did not move your GEDCOM files, when you click the Select button in the Admin > Import / Export dialog, you will get the following error
Cannot open folder (/home/account/private/tng14beta/gedcom/) because the folder does not exist (check the Root Path) or does not have proper permissions (try chmod(777)).
If you receive that error, go back to Admin > Setup > Import Settings and
- check the box to Store in config path (see General Settings)
- click the Rename button to create the folder,
- click Save + Exit button,
- and then move you gedcom files to the new folder.
Known Behavior
TNG version: | ≥ 13.0.0 |
Note that in TNG 13 and later, Download GEDCOM replaced the Preview GEDCOM link.
If you moved your gedcom folder above the web root folder, the Download button cannot be used to download your .ged file. You must use FTP to download your file. |
TNG version: | ≤ 12.3.0 |
If you moved your gedcom folder above the web root folder, the Preview button once you have selected a .ged file will return
404 Not Found
The requested URL was not found on this server.
This is because the code to preview the file runs as a javascript function in the web browser which cannot access files that are above the web root folder. This is expected behavior and essentially the reason you have moved the gedcom folder so others cannot access your ged file data.
Related Links
The following provide additional security measures:
Controlling Site Access
- Using tngrobots.php
- Robots txt
- How to setup a robots.txt file
- Bot Trap
- Htaccess
- Htaccess Deny
- Htaccess Rewrite
Protecting Resources
- Permissions Explained
- Database User
- Move your configuration files
- Move your backup files
- Move your gedcom files
- Overlaid Subroot how to recover from subroot.php overlay
- Prevent Directory Listing
- Protecting access log