My problem appears to be a path problem but I'm at wits end about what it could be. I'm not sure what actually spews out as when I go http://www.2ants.com/cgi-bin/links/admin/admin.cgi in internet explorer a window opens, a whole bunch of error messages fly by and then the window immediately closes. I added the line $input=<STDIN>; before the first exit; command just to try to stop it so I could read the messages. It didn't make a difference but when I execute the file from WS_FTP I get this error message
Content-type: text/plain
Error including libraries: Can't locate /cgi-bin/links/admin/db.pl in @INC (@INC
contains: C:\WINDOWS\TEMP D:\PERL\lib D:\PERL\site\lib .) at C:\WINDOWS\TEMP\DS
PF121.cgi line 28.
Make sure they exist, permissions are set properly, and paths are set correctly.
Links.cfg is in the same directory as admin.cgi. Here is an excerpt from links.cfg
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/cgi-bin/links/admin";
$db_dir_url = "http://www.2ants.com/cgi-bin/links/admin";
# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://www.2ants.com/cgi-bin/links";
# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/pages";
$build_root_url = "http://www.2ants.com/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";
I can't spot the error. I'm pretty sure that the permissions have been set just like the readme file directs. I asked my ISP if the path sounded OK and he said it did. In admin.cgi I tried changing require "links.cfg"; to require "/cgi-bin/links/admin/links.cfg" but there was no change. What do you think the problem is?
Content-type: text/plain
Error including libraries: Can't locate /cgi-bin/links/admin/db.pl in @INC (@INC
contains: C:\WINDOWS\TEMP D:\PERL\lib D:\PERL\site\lib .) at C:\WINDOWS\TEMP\DS
PF121.cgi line 28.
Make sure they exist, permissions are set properly, and paths are set correctly.
Links.cfg is in the same directory as admin.cgi. Here is an excerpt from links.cfg
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/cgi-bin/links/admin";
$db_dir_url = "http://www.2ants.com/cgi-bin/links/admin";
# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://www.2ants.com/cgi-bin/links";
# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/pages";
$build_root_url = "http://www.2ants.com/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";
I can't spot the error. I'm pretty sure that the permissions have been set just like the readme file directs. I asked my ISP if the path sounded OK and he said it did. In admin.cgi I tried changing require "links.cfg"; to require "/cgi-bin/links/admin/links.cfg" but there was no change. What do you think the problem is?