You may have a problem with your directory names.
$db_script_path = "/cgi-bin/links/cgi-bin/admin";
"cgi-bin" is often a restricted directory name. I don't know if your server will let you use it twice in a single path.
It should probably be something like:
$db_script_path = "/links/cgi-bin/admin";
although most servers would have your local path set up something like:
/usr/userid/
so the absolute path for links would look like:
$db_script_path = "/usr/userid/links/cgi-bin/admin";
or something to that effect. It's just a guess though.
Dan O.