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

Re: Not writing to url.db

Quote Reply
Re: Not writing to url.db In reply to
Apart from the lines that needed setting to suit the server, now nothing except the line ...

else { chmod 0666, $db_links_name; }

# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/var/lib/apache/share/cgi-bin/links/admin";
$db_dir_url = "http://artists.artdept.com.au/cgi-bin/links/admin";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://artists.artdept.com.au/cgi-bin/links";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/var/lib/apache/share/htdocs/artists.artdept.com.au/links/pages";
$build_root_url = "http://artists.artdept.com.au/links/pages";

# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "$build_root_path/new";
$build_new_url = "$build_root_url/new";

# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "$build_root_path/cool";
$build_cool_url = "$build_root_url/cool";

# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "$build_root_path/ratings";
$build_ratings_url = "$build_root_url/ratings";



$db_script_url = $db_dir_url . "/admin.cgi"; # Admin script.
$db_header_path = $db_script_path . "/header"; # Place to store header and footers.
$db_footer_path = $db_script_path . "/footer";
$build_search_url = $db_cgi_url . "/search.cgi"; # URL of search script.
$build_add_url = $db_cgi_url . "/add.cgi"; # URL of add script.
$build_modify_url = $db_cgi_url . "/modify.cgi"; # URL of modify script.
$build_jump_url = $db_cgi_url . "/jump.cgi"; # URL of jump script.
$build_email_url = $db_cgi_url . "/subscribe.cgi"; # URL of email update script.
$build_rate_url = $db_cgi_url . "/rate.cgi"; # URL of rate script.
$db_mail_url = $db_dir_url . "/nph-email.cgi"; # URL of admin mass mail script.
$build_css_url = $build_root_url . "/links.css"; # URL to your CSS file.

$db_lib_path = $db_script_path; # PATH of library files.
$db_links_name = "$db_script_path/data/links.db"; # PATH to links database.
$db_category_name = "$db_script_path/data/categories.db"; # PATH to category database.
$db_valid_name = "$db_script_path/data/validate.db"; # PATH to validation database.
$db_modified_name = "$db_script_path/data/modified.db"; # PATH to modification database.
$db_url_name = "$db_script_path/data/url.db"; # PATH to URL lookup database.
$db_email_name = "$db_script_path/data/email.db"; # PATH to email database.
$db_links_id_file_name = "$db_script_path/data/linksid.txt"; # PATH to links counter file.
$db_category_id_file_name = "$db_script_path/data/categoryid.txt"; # PATH to category counter file.
$db_hits_path = "$db_script_path/data/hits"; # PATH to hits directory.
$db_template_path = "$db_script_path/templates"; # PATH to templates.
$db_rates_path = "$db_script_path/data/rates"; # PATH to ratings.



cgi-bin/links/
drwxrwxrwx 3 art users 4096 Feb 25 13:47 .
drwxrwxrwx 19 art users 4096 Feb 17 01:54 ..
-rwxr-xr-x 1 art users 6043 Feb 25 03:10 add.cgi
drwxrwxrwx 5 art users 4096 Feb 25 01:03 admin
-rwxr-xr-x 1 art users 4836 Feb 25 03:10 jump.cgi
-rwxr-xr-x 1 art users 6849 Feb 25 03:10 modify.cgi
-rwxr-xr-x 1 art users 4173 Feb 25 03:10 rate.cgi
-rwxr-xr-x 1 art users 11623 Feb 25 03:10 search.cgi
-rwxr-xr-x 1 art users 4765 Feb 25 03:10 subscribe.cgi


cgi-bin/links/admin/
drwxrwxrwx 5 art users 4096 Feb 25 01:03 .
drwxrwxrwx 3 art users 4096 Feb 25 13:47 ..
-rw-r--r-- 1 art users 387 Feb 22 00:38 .htaccess
-rwxr-xr-x 1 art users 11924 Feb 25 01:02 Mailer.pm
-rwxr-xr-x 1 art users 4526 Feb 25 01:03 Template.pm
-rwxr-xr-x 1 art users 5842 Feb 25 03:11 admin.cgi
-rwxr-xr-x 1 art users 71023 Feb 25 01:02 admin_html.pl
drwxrwxrwx 2 art users 4096 Feb 25 01:01 backup
-rwxr-xr-x 1 art users 3119 Feb 25 01:02 category.def
drwxrwxrwx 4 art users 4096 Feb 25 13:33 data
-rwxr-xr-x 1 art users 37893 Feb 25 01:02 db.pl
-rwxr-xr-x 1 art users 23352 Feb 25 01:02 db_utils.pl
-rw-r--r-- 1 art users 13 Feb 21 23:27 htgroup
-rw-r--r-- 1 art users 20 Feb 21 23:27 htpasswd
-rwxr-xr-x 1 art users 10558 Feb 25 03:16 links.cfg
-rwxr-xr-x 1 art users 4670 Feb 25 01:02 links.def
-rwxr-xr-x 1 art users 47815 Feb 25 03:11 nph-build.cgi
-rwxr-xr-x 1 art users 7444 Feb 25 03:11 nph-email.cgi
-rwxr-xr-x 1 art users 7769 Feb 25 03:11 nph-verify.cgi
-rwxr-xr-x 1 art users 37115 Feb 25 01:03 site_html.pl
-rwxr-xr-x 1 art users 16355 Feb 25 01:03 site_html_templates.pl
drwxrwxrwx 2 art users 4096 Feb 2 08:54 templates

cgi-bin/links/admin/data/
drwxrwxrwx 4 art users 4096 Feb 25 13:33 .
drwxrwxrwx 5 art users 4096 Feb 25 01:03 ..
-rw-rw-rw- 1 art users 13 Feb 25 01:12 categories.db
-rw-rw-rw- 1 art users 1 Feb 25 01:12 categoryid.txt
-rw-rw-rw- 1 art users 0 Feb 25 01:01 email.db
drwxrwxrwx 2 art users 4096 Feb 25 01:01 hits
-rw-rw-rw- 1 art users 580 Feb 25 13:36 links.db
-rw-rw-rw- 1 art users 0 Feb 25 13:33 links.db.bak
-rw-rw-rw- 1 art users 1 Feb 25 13:35 linksid.txt
-rw-rw-rw- 1 art users 0 Feb 25 01:01 modified.db
drwxrwxrwx 2 art users 4096 Feb 25 01:01 rates
-rw-rw-rw- 1 art users 0 Feb 25 01:01 url.db
-rw-rw-rw- 1 art users 0 Feb 25 13:36 validate.db

Of the above I have moved the "backup" folder. Methinks it is either in the paths above... or something to do with the credit for Gossamer being removed from the template files. I checked this out and could't find any referrence... unless it's well hidden.

Otherwise it should be a standard install. It writes to links.db but not to url.db... then I tried adding a link to the url.db file and it still couldn't find the link ID

Only other mod was to the "new" folder name as the script didn't like the "N", but that doesn't figure in this as I haven't used that option for this testing.

All the folders and permissions seem to be ok and as advised. I do recall that when I had it woorking for the original testing that I did have problems in the "hits" folder. The script was creating the ID file but couldn't increment... also noticed that it didn't trip the counter. But as I say, this was much earlier and then I didn't have the "backup" folder in place anyway... but I did see it sort of working once.

If this was licenced would the scripts be different?

Subject Author Views Date
Thread Unable to copy links backup adamtheo 15952 Apr 29, 1999, 8:58 PM
Post Re: Unable to copy links backup
Bobsie 15637 Apr 30, 1999, 12:03 AM
Post Re: Unable to copy links backup
adamtheo 15719 Apr 30, 1999, 7:07 AM
Post Re: Unable to copy links backup
Dan Kaplan 15641 Apr 30, 1999, 8:10 AM
Post Re: Unable to copy links backup
adamtheo 15745 Apr 30, 1999, 11:28 AM
Post Re: Unable to copy links backup
Bobsie 15682 Apr 30, 1999, 5:41 PM
Post Re: Unable to copy links backup
adamtheo 15603 Apr 30, 1999, 11:35 PM
Post Re: Unable to copy links backup
Bobsie 15690 May 1, 1999, 1:21 PM
Post Re: Unable to copy links backup
adamtheo 15639 May 1, 1999, 3:22 PM
Thread Re: Unable to copy links backup
Bobsie 15684 May 2, 1999, 10:57 AM
Thread Re: Unable to copy links backup
justanartist 15794 Feb 24, 2001, 8:32 AM
Thread Re: Unable to copy links backup
Paul 15805 Feb 24, 2001, 9:55 AM
Thread Re: Unable to copy links backup
justanartist 15778 Feb 24, 2001, 11:37 AM
Thread Re: Unable to copy links backup
Stealth 15760 Feb 24, 2001, 11:45 AM
Post Re: Unable to copy links backup
justanartist 15741 Feb 24, 2001, 6:41 PM
Thread Re: Unable to copy links backup
Paul 15718 Feb 24, 2001, 11:47 AM
Thread Re: Unable to copy links backup
justanartist 15768 Feb 24, 2001, 6:44 PM
Thread Re: Unable to copy links backup
Stealth 15863 Feb 25, 2001, 4:16 PM
Thread Re: Unable to copy links backup
justanartist 15844 Feb 25, 2001, 7:04 PM
Thread Re: Unable to copy links backup
Stealth 15717 Feb 25, 2001, 7:13 PM
Thread Re: Unable to copy links backup
justanartist 15671 Feb 25, 2001, 7:35 PM
Thread Re: Unable to copy links backup
Stealth 15710 Feb 25, 2001, 8:01 PM
Thread Re: Not writing to url.db
justanartist 15707 Feb 25, 2001, 8:47 PM
Thread Re: Not writing to url.db
Stealth 15757 Feb 26, 2001, 7:42 AM
Post Re: Not writing to url.db
justanartist 15684 Feb 26, 2001, 10:23 AM
Post Re: Unable to copy links backup
justanartist 5088 Feb 27, 2001, 1:38 AM
Post Re: [justanartist] Unable to copy links backup
justanartist 4823 Aug 3, 2002, 12:43 AM
Thread Re: [adamtheo] Unable to copy links backup
wereman2 4916 Sep 12, 2002, 6:58 PM
Thread Re: [wereman2] Unable to copy links backup
Andy 4934 Sep 13, 2002, 2:06 AM
Thread Re: [Andy] Unable to copy links backup
birddog 4856 Sep 19, 2002, 12:42 PM
Post Re: [birddog] Unable to copy links backup
Andy 4762 Sep 20, 2002, 1:46 AM