User login

MetaTraffic 2.0 Boxshot

Setting up on localhost

Posted by ianh [October 22, 2004]

I have sucessfully set MT up on the live server and very happy with the results. Because I develop locally and have the tracking code in the pages I need to set it up locally too.

In trying to do this I get database path errors, where it cant resolve the db location for the virtual folder on localhost. Tried various things and searched the forum without finding a solution.

Can someone point me in the right direction please.

Ian Haynes
Data Insite UK

Setting up on localhost

May be getting closer. I can put the db in a new wwwroot folder than setup will find, but it then hangs on 'Creating database connection file.."

The metatraffic2 folder and the new folder for the db both have full permissions.

Ian Haynes
Data Insite UK

Setting up on localhost

Are you running Norton Antivirus or another antivirus program? Script blocking will prevent MetaTraffic from writing files.

See this previous post if this is the case:

[url]http://www2.metasun.com/phpBB2/viewtopic.php?t=256[/url]

~Chad

Setting up on localhost

Yes that was the main problem. It dawned on me overnight and I disabled script blocking this morning. Voila!

However, I've got another problem running locally. When I view pages in other than the root directory I get an error message saying that the db path cant be found, pointing at core.asp line 199. I dont see why the pages being in a different folder should make any difference.

Despite getting the error(and not displaying the page) I see that the pages are logged correctly, so why does strConn in core.asp point to the wrong place?

Ian Haynes
Data Insite UK

Setting up on localhost

You need to make sure that your database location is an absolute path such as: /database or e:\inetpub\location

Otherwise when you change folders in your web site, MetaTraffic can't find the database.

~Chad

Setting up on localhost

I'd tried /db, to a separate folder within the metatraffic2 folder, which didn't work, and gave the core.asp error I mentioned above. A full path does though, so problem solved.

Many thanks.

Ian Haynes
Data Insite UK