Hi. I don't know if any of you here have ever tried to set up Links 2 on a cronjob, but if you have I'm sure you would have come accross an error that would cause the links.db file to be CHMODed to 664 (thus not giving you access to add or modify it). Just a little fix that I found to help get round this. Add the following line in nph-build.cgi;
NOTE: BE SURE TO MAKE A BACKUP OF NPH-BUILD.CGI BEFORE ATTEMPTING THIS AS IT MAY NOT WORK FOR YOU IN WHICH CASE YOU WILl NEED TO GO BACK TO HOW IT USED TO BE
chmod(0666, $db_script_path/data/links.db) or die "can't chmod: $db_script_path/data/links.db ($!)";
after;
# We are finished!
print "Pages Built (", time() - $start, " s)!";
print "</PRE></BODY></HTML>" if ($use_html);
Like so;
# We are finished!
print "Pages Built (", time() - $start, " s)!";
print "</PRE></BODY></HTML>" if ($use_html);
chmod(0666, $db_script_path/data/links.db) or die "can't chmod: $db_script_path/data/links.db ($!)";
Well, I hope this helps some of you out there as it certainly helped me!
Andy
webmaster@ace-installer.com
http://www.ace-installer.com
NOTE: BE SURE TO MAKE A BACKUP OF NPH-BUILD.CGI BEFORE ATTEMPTING THIS AS IT MAY NOT WORK FOR YOU IN WHICH CASE YOU WILl NEED TO GO BACK TO HOW IT USED TO BE
chmod(0666, $db_script_path/data/links.db) or die "can't chmod: $db_script_path/data/links.db ($!)";
after;
# We are finished!
print "Pages Built (", time() - $start, " s)!";
print "</PRE></BODY></HTML>" if ($use_html);
Like so;
# We are finished!
print "Pages Built (", time() - $start, " s)!";
print "</PRE></BODY></HTML>" if ($use_html);
chmod(0666, $db_script_path/data/links.db) or die "can't chmod: $db_script_path/data/links.db ($!)";
Well, I hope this helps some of you out there as it certainly helped me!
Andy
webmaster@ace-installer.com
http://www.ace-installer.com