Install TNG on a Synology NAS

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

Re: Install TNG on a Synology NAS

Post by Paul Barrett »

Hi Steve,

I'm about to do an install of TNG on a DS1821+ to two Seagate Ironwolf 1TB SSDs in SHR

Haven't done this in a while. I shall be following your guide

PHP 7.4/MariaDB 10

What's your advice re Apache 2.4 versus NGINX as the back end, please?

Paul
Steve
Posts: 122
Joined: Sun Oct 01, 2017 3:08 pm

Re: Install TNG on a Synology NAS

Post by Steve »

Both Apache and NGINX work fine with TNG. However you cannot use bot trap or an htaccess file with NGINX. If you want to control access to your site you can use Rip Prevention with Apache or NGINX which allows monitoring and blocking IP addresses.
Paul Barrett
Posts: 59
Joined: Sun Apr 08, 2018 6:52 pm

Re: Install TNG on a Synology NAS

Post by Paul Barrett »

Sounds like Apache it is then! Thanks
john_mpls
Posts: 1
Joined: Thu Feb 25, 2021 2:29 pm

Re: Install TNG on a Synology NAS

Post by john_mpls »

Steve,

Hoping you can help -- I posted on the TNG community page with no luck. Stuck at the "Please wait, attempting to process..." message.

I'm a newbie to PHP (but not to programming), but am certainly willing to roll up my sleeves. Are there debug commands I can edit into the script that is "attempting to process" so I can get a better idea of what is failing?

Here's the text of my message from the TNG forum. And here's the link with the screenshots of all of the dialogs that may give some clues: https://tng.community/index.php?/forums ... o-process/

I'm stuck on step 6 of the Readme HTML installation guide with the dreaded "Please wait, attempting to process..." message.

TNG v12.3, MariaDB 10, PHP 7.2, DB name: "tng", DB username: "tng-local". I'm running the Readme from the URL to the web volume on the Synology DS916. Also have referenced SKDavis' install guide for Synology.

I believe I have followed all of the other steps without missing or having issues. Screen shots attached to show privileges, versions, etc. (password omitted on screen shot but included during install). Have googled this and tried other suggestions, but I appear to be overlooking or misunderstanding something.


Appreciate any suggestions or help!

Thanks.

John
Steve
Posts: 122
Joined: Sun Oct 01, 2017 3:08 pm

Re: Install TNG on a Synology NAS

Post by Steve »

Connecting to the database is pretty straight forward with TNG. Please refer to this section viewtopic.php?f=9&t=6#7 and scroll down to section 6. I always use lower case for all the connection variables.

Make sure you are using the correct port for MariaDB. You can click MariaDB from the Synology menu and the port is displayed.

The only other problems are usually typos or the MySQLi module is not enabled in PHP. To check this module, open Web Station and select PHP Settings. Highlight the PHP version you are using and the click the Edit Tab. Scroll down and make sure the mysqli box is checked. You don't need the PDO or sqlite3 versions for TNG. You can also enable openssl if you are using https.

If you are using a virtual host make sure it is using a php profile that has mysqli enabled.

Once everything is correct it should connect.