Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Data Files Missing

Quote Reply
Data Files Missing
Ok now I have another problem. I have to put my data files in another directory outside of my cgi-bin. but I can't find where to change the info to point the program to the new directory with the data files in it.
Quote Reply
Re: Data Files Missing In reply to
At the end of links.cfg, you will see paths that point to the data directory files. You will need to update them. They all look something like this:

Quote:
$db_links_name = "$db_script_path/data/links.db";

The easiest way to handle this is create a new path variable just above the first data path variable that points to your data directory. Something like this:

Quote:
$db_data_path = "/full/absolute/path/to/your/data";

Then change all occurances of "$db_script_path/data" to read "$db_data_path" in links.cfg. You will also need to change it in nph-build.cgi sub build_backup as well. There may be other places in other scripts that will also need changing.

I hope this helps.