Jump to content
TNG Community
JohnP

XAMPP & TNG

Recommended Posts

JohnP

Hello All,

I am also a newbie (I don't even know enough to know if I'm in trouble!)

I have become fascinated with TNG and decided that it was time to dive in. After reading these threads, I decided to create a local test environment to work and play. After downloading all of the WAMP applications, I realized that that wasn't going to be fun or easy, so I selected XAMPP as a WAMP installer.

XAMPP appears to have correctly installed each application.

There was a conflict with Apache not able to run due to Port 80 use. This may have been caused by Google Earth. I closed everything and rebooted which seemed to clear it up. The XAMPP Control Panel is launched from the icon on the desktop and shows Apache and MySQL are both running.

The XAMPP home page opens from: http:/localhost/

Unlike as noted in the installation instructions, I was NOT provided an opportunity to set any configurations for any of the apps including the following:

Host name: localhost

Database name: genealogy

Databased User name: root

Database password: leave blank

Save & Verify

Today I am trying to install the The Next Generation (TNG) downloaded from the site. I am using the Readme.html and "TNG Installation Instructions" that are included in the TNG directory.

I extracted the TNG files to a new folder "genealogy" and placed it in the "htdocs" folder, i.e. C:\xampp\htdocs\genealogy

When working through the TNG Installation Instructions, I did not find any actual installation of TNG, only the unzip and move of the files to the created "genealogy" folder.

1. Did I miss the actual TNG installation somewhere?

Unlike the posted instructions for using WampServer (above), I am not sure how to connect TNG to XAMPP. I think everything is installed and located in the correct folders. The prior step-by-step instructions for WampServer noted that the "genealogy" folder should be available in the WAMP server screen. I am not able to locate any such comparable feature in XAMPP.

2. How do I access TNG from XAMPP Control Panel?

I'm sure this is very easy, but I'm struggling. Any help will be greatly appreciated.

Thanks,

John

Share this post


Link to post
Share on other sites
thewag

Welcome John,

I use XAMPP and TNG as my production website. Please find some suggestions below:

Unlike as noted in the installation instructions, I was NOT provided an opportunity to set any configurations for any of the apps including the following:

Host name: localhost

Database name: genealogy

Databased User name: root

Database password: leave blank

Save & Verify

Today I am trying to install the The Next Generation (TNG) downloaded from the site. I am using the Readme.html and "TNG Installation Instructions" that are included in the TNG directory.

The instructions are assuming that you had a hosting provider setup a database. Take at look at: http://www.reg.ca/faq/PhpMyAdminTutorial.html (Yeah Google!) for a quick tutorial on setting up a database using phpmyadmin (http://localhost/phpmyadmin) for xampp. [Note: only go through the portion of creating the database. Stop where you would create the table "people".]

I extracted the TNG files to a new folder "genealogy" and placed it in the "htdocs" folder, i.e. C:\xampp\htdocs\genealogy

When working through the TNG Installation Instructions, I did not find any actual installation of TNG, only the unzip and move of the files to the created "genealogy" folder.

1. Did I miss the actual TNG installation somewhere?

Unlike the posted instructions for using WampServer (above), I am not sure how to connect TNG to XAMPP. I think everything is installed and located in the correct folders. The prior step-by-step instructions for WampServer noted that the "genealogy" folder should be available in the WAMP server screen. I am not able to locate any such comparable feature in XAMPP.

Nope, you did the installation when you moved the files. Try going to: http://localhost/genealogy . The page will probably have a lot of errors if you haven't setup the database yet, but you should still see something of a TNG install.

TNG isn't an executable in the since you install it like Word or Legacy or any other "general" windows program. Its a set of scripts (instructions) that PHP (which you got when you installed xampp) execute. If you installed XAMPP correctly (if you see something about xampp when you type http://localhost/ in a webroswer) then all that was needed for installation was to copy the files to a place under your webservers document root (c:\xampp\htdocs).

2. How do I access TNG from XAMPP Control Panel?

You don't. You can access the database that TNG will create via the XAMPP included program of phpmyadmin. I strongly DON'T recommend this if you are new to SQL and webservers, except to create the database as shown in the tutorial above. Once you've created the database and followed Darrin's instructions for installation, you will access TNG from the website (http://localhost/genealogy) or its administrative interface (see instructions).

Best of Luck,

Ben

Share this post


Link to post
Share on other sites
JohnP

Welcome John,

I use XAMPP and TNG as my production website. Please find some suggestions below:

The instructions are assuming that you had a hosting provider setup a database. Take at look at: http://www.reg.ca/faq/PhpMyAdminTutorial.html (Yeah Google!) for a quick tutorial on setting up a database using phpmyadmin (http://localhost/phpmyadmin) for xampp. [Note: only go through the portion of creating the database. Stop where you would create the table "people".]

Nope, you did the installation when you moved the files. Try going to: http://localhost/genealogy . The page will probably have a lot of errors if you haven't setup the database yet, but you should still see something of a TNG install.

TNG isn't an executable in the since you install it like Word or Legacy or any other "general" windows program. Its a set of scripts (instructions) that PHP (which you got when you installed xampp) execute. If you installed XAMPP correctly (if you see something about xampp when you type http://localhost/ in a webroswer) then all that was needed for installation was to copy the files to a place under your webservers document root (c:\xampp\htdocs).

You don't. You can access the database that TNG will create via the XAMPP included program of phpmyadmin. I strongly DON'T recommend this if you are new to SQL and webservers, except to create the database as shown in the tutorial above. Once you've created the database and followed Darrin's instructions for installation, you will access TNG from the website (http://localhost/genealogy) or its administrative interface (see instructions).

Best of Luck,

Ben

Share this post


Link to post
Share on other sites
JohnP

Hi Ben,

Thanks for the prompt reply. I had not read anywhere in any of the literature about creating a database early in the process.

I checked out the PhpMyAdmin tutorial, then went to http://localhost/phpmyadmin

I did NOT get the login screen (username and password) shown in the tutorial, but did get the main screen. There are a number of settings, and all I did was enter "genealogy" as the name of the new database. I clicked "Create" and the "genealogy" database showed up in the left pane with a "(0)" after it.

A notice also appeared at the bottom of the PhpMyAdmin screen saying:

"Your configuration file contains settings (root with no password) that corresponds to the default MySQL privileged account. Your MySQL server is running with this default, is open to intrusion, and you really should fix this security hole."

I then tried http://localhost/genealogy and got the same error message: "TNG is not communicating with your database."

As concerns the security settings, I was not ever presented with an option to set them per the Installation Instructions. In step 2 of the Instructions, I had clicked on the "Set Permissions" button, which displayed a prompt in red noting "Attempting to process..." but it never completed or truly activated.

Ben, I'm sorry for the ignorance, but do appreciate the assistance!

Thanks,

John

Share this post


Link to post
Share on other sites
nimebe

Once created the database in phpMyAdmin, go to http://localhost/genealogy/readme.html

This is the installation/configuration file for TNG. Read through each step very carefully.

When you're asked your

DB Name is genealogy

DB User is root

DB Password is (leave it blank)

DB Prefix tng_ (leave as the default)

You need to complete the installation at the readme.html file before TNG will know what and where your database is in order to connect to it.

Share this post


Link to post
Share on other sites
thewag

I did NOT get the login screen (username and password) shown in the tutorial, but did get the main screen. There are a number of settings, and all I did was enter "genealogy" as the name of the new database. I clicked "Create" and the "genealogy" database showed up in the left pane with a "(0)" after it.

A notice also appeared at the bottom of the PhpMyAdmin screen saying:

"Your configuration file contains settings (root with no password) that corresponds to the default MySQL privileged account. Your MySQL server is running with this default, is open to intrusion, and you really should fix this security hole."

The (0) means zero tables. Thats ok. The note about default configuration can also be ignored if this a test environment NOT open to the world. (If you are on a higher speed internet connection, you do have some sort of firewall I hope.) If you wish to secure your xampp settings see: http://robsnotebook.com/xampp-builtin-security . You can go as far in the instructions as you like, but the basics are on the first page. The pages after that can get quite technical.

I then tried http://localhost/genealogy and got the same error message: "TNG is not communicating with your database."

Look back at the TNG instructions. There should be a http://localhost/genealogy/readme.html that you should be following. There should be section on database tables there.

As concerns the security settings, I was not ever presented with an option to set them per the Installation Instructions. In step 2 of the Instructions, I had clicked on the "Set Permissions" button, which displayed a prompt in red noting "Attempting to process..." but it never completed or truly activated.

That may have something to do with windows.

John, continue to ask questions. I'm gonna have to bow out for a few days. There should be plenty of help on the forums if you need it. If not, email Darrin. He'll get you going in the right direction. I think you just need to carefully go through the TNG install. TNG is a wonderful software for genealogy, but it is a web server based application. If you're coming from a novice standpoint to server installation and server software installation, there can be a learning curve in just understanding the basics as to the software behind what makes TNG work. Not actually using it, really, but the interaction. XAMPP tries to make it easier to install, which is a big jump. Configuring is your next hurdle. You'll get it soon enough. Then its off to making a wonderful genealogy site.

Best wishes,

Ben

Share this post


Link to post
Share on other sites
JohnP

Many many thanks for all the help from everyone. As it turned out, most of the steps were relatively easy, once I understood them. As soon as I created the database via MySQLAdmin, all of the steps in the Installation Instructions worked dandy.

I will try to compile my notes and post them so others can benefit from my learnings in creating a test machine using WAMP and XAMPP.

Now the fun begins ...

I'm sure I will have more questions as the uploading, tweaking and modifying begin.

For now, many thanks again!

John

Share this post


Link to post
Share on other sites
gracielou

Thanks, Everyone, for this post. I followed the info and was able to get TNG installed and up and running on an XAMPP stack. - Gracielou

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

×