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

Please help a gal out

Quote Reply
Please help a gal out
I worked all nite to get my script working-i managed, after many screwups to get the categories and links (transferred from my old castle links script) in working order-but there is a problem-I uploaded in ascii and chmoded the files as it said to do in the installation instructions, but when (in admin) i click on build all, it seems to work, but says this:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have
done that may have caused the error.

More information about this error may be available in the server error log.


Apache/1.3.12 Server at 9inchnails.net Port 80


Now, my second set of problems, on the actual link page http://www.9inchnails.net/links/pages, you can navigate the links fine, but i get errors when i do an add modify or search:

add:
Error including libraries: Can't locate usr/local/www/htdocs/cgi-bin/cgiwrap/9inchnails/admin/db_utils.pl in @INC (@INC contains: /usr/local/www/htdocs/9inchnails/cgi-bin /usr/local/lib/perl5/sun4-solaris/5.00404 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/sun4-solaris /usr/local/lib/perl5/site_perl .) at /usr/local/www/htdocs/9inchnails/cgi-bin/add.cgi line 31.

Make sure they exist, permissions are set properly, and paths are set correctly.

modify:
Error including libraries: Can't locate usr/local/www/htdocs/cgi-bin/cgiwrap/9inchnails/admin/db_utils.pl in @INC (@INC contains: /usr/local/www/htdocs/9inchnails/cgi-bin /usr/local/lib/perl5/sun4-solaris/5.00404 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/sun4-solaris /usr/local/lib/perl5/site_perl .) at /usr/local/www/htdocs/9inchnails/cgi-bin/modify.cgi line 31.

Make sure they exist, permissions are set properly, and paths are set correctly.

search:
Error including libraries: Can't locate usr/local/www/htdocs/cgi-bin/cgiwrap/9inchnails/admin/db_utils.pl in @INC (@INC contains: /usr/local/www/htdocs/9inchnails/cgi-bin /usr/local/lib/perl5/sun4-solaris/5.00404 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/sun4-solaris /usr/local/lib/perl5/site_perl .) at /usr/local/www/htdocs/9inchnails/cgi-bin/search.cgi line 37.

Make sure they exist, permissions are set properly, and paths are set correctly.

Now here are my paths from the cfg file:
# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/usr/local/www/htdocs/9inchnails/cgi-bin/links/admin";
$db_dir_url = "http://www.9inchnails.net/cgi-bin/cgiwrap/9inchnails/links/admin";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://www.9inchnails.net/cgi-bin/cgiwrap/9inchnails";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/usr/local/www/htdocs/9inchnails/links/pages";
$build_root_url = "http://www.9inchnails.net/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";


If i did the paths wrong-wouldnt none of it work?? Im confused and stuck-please help me!

Thanks so much!
April :)

Quote Reply
Re: Please help a gal out In reply to
also-heres info on paths from my webhost:

8. My script is asking for a baseurl or basdir; what are they?

Many scripts need to know the working directory, (the directory that your script executes in) or the URL of your script.

BASEDIR

On US Net, your base directory is /usr/local/www/htdocs/9inchnails/cgi-bin/
For example, if your login name is 9inchnails then you would insert the following into your webpage or script:
/usr/local/www/htdocs/9inchnails/cgi-bin/

BASEURL

The base URL usually refers to the URL to your website
For example, http://www.9inchnails.net
However, sometime there is a CGIURL which will refer to the URL that your CGI is accessed.
For example, http://www.9inchnails.net /cgi-bin/cgiwrap/9inchnails/script.here

Quote Reply
Re: Please help a gal out In reply to
It looks like you are on a Cobalt server (educated guess Wink). In that case, please search the forums regarding the nph++ fix (try searching for nph++).

As for the second problem, try using the absolute path in the scripts. Change;

Code:
require "admin/links.cfg";
to

Code:
require "/usr/local/www/htdocs/cgi-bin/cgiwrap/9inchnails/admin/links.cfg";
Hope that helps a bit Smile

Andy

webmaster@ace-installer.com
http://www.ace-installer.com