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

500 Internal Server Error

Quote Reply
500 Internal Server Error
Well I installed it on a NT Server and after updating perl and making sure the server read .pl and .cgi I got it up and running, now I've transferred it to a Unix box and I can't seem to get it to run. I've checked the path using another cgi script so I'm somewhat sure that's not the problem, I think it my be the version of perl, my provider tells me that it's version 6 but I have no way of knowing for sure, anyone have any ideas?

# Paths and URL's to Important Stuff

# --------------------------------------------------------

# PATH and URL of Admin CGI directory. No Trailing Slash.

# $db_script_path = "/alex/links/cgi-bin/admin";

# $db_dir_url = "http://localhost/links/cgi-bin/admin";



$db_script_path = "/wwwusr/www1/chrysali/pages/cgi-bin/admin";

$db_dir_url = "http://www.calvertpreclin.com/cgi-bin/admin";



# URL of User CGI directory. No Trailing Slash.

# $db_cgi_url = "http://localhost/links/cgi-bin";

$db_cgi_url = "http://www.calvertpreclin.com/cgi-bin";



# PATH and URL of Pages to be built. No Trailing Slash.

# $build_root_path = "/alex/links/pages";

# $build_root_url = "http://localhost/links/pages";

$build_root_path = "/wwwusr/www1/chrysali/pages";

$build_root_url = "http://www.calvertpreclin.com";



# 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";



# Database Options

# --------------------------------------------------------

# You really need to use flock(). However if your system doesn't support it (Win95),

# then turn this off at your own risk!

$db_use_flock = 1;

# Use Pragma: no-cache to stop browsers from caching output? (0 = cache, 1 = nocache)

$db_nocache = 0;

# Use IIS headers? Set this to 1 if your web server needs the full headers (HTTP/1.0 etc.)

$db_iis = 0;

# Field number of category in category.db

$db_main_category = 1;

# Referers -- which hosts are allowed to add to your database.

@db_referers = ();



# Email Options

# --------------------------------------------------------

# NOTE: Be sure to edit the text of the message. It can be found

# in the templates directory: email-add.txt, email-del.txt and

# email-mod.txt respectively.



# Set only ONE of either $db_mail_path which should go to a

# mail program like sendmail, or $db_smtp_server which will use

# a SMTP server. Do not set both at once!



# PATH of sendmail. # SMTP Server

$db_mail_path = '/usr/sbin/sendmail'; $db_smtp_server = '';



# Email address of the administrator. BE SURE TO SET!

$db_admin_email = 'info\@calvertpreclin.com';



# Notify visitors automatically when their links are validated?

$db_email_add = 0;



# Notify visitors automatically when their links are modified?

$db_email_modify = 0;



# Log all outgoing messages? Put the full path to a logfile and make sure it

# exists and is writeable (chmod 666 -rw-rw-rw-). This logfile can get pretty

# big!

$db_mailer_log = '';



# Build Options

# --------------------------------------------------------

# Setting for popular cutoff, can either be a percent (i.e. top 3%), or

# a fixed value (i.e. top 10). Enter 0.03 or 10 respectively.

$db_popular_cutoff = 0.03; # Top 3%

# Number of days a link is considered New.

$db_new_cutoff = 14; # 14 days old.

# Return search results bolded (1 = yes, 0 = no).

$search_bold = 1;

# The name of an index file.

$build_index = "index.html";

# The extension to use for non index files:

$build_extension = ".html";

Quote Reply
Re: 500 Internal Server Error In reply to
Code:
# $db_script_path = "/alex/links/cgi-bin/admin";
# $db_dir_url = "http://localhost/links/cgi-bin/admin";
See if puting your admin path and url makes it work.

--Drew
Quote Reply
Re: 500 Internal Server Error In reply to
I did, I just left the old code in and commented it out as a point of reference, thanks, any other ideas?


# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.

# $db_script_path = "/alex/links/cgi-bin/admin";
# $db_dir_url = "http://localhost/links/cgi-bin/admin";

$db_script_path = "/wwwusr/www1/chrysali/pages/cgi-bin/admin";
$db_dir_url = "http://www.calvertpreclin.com/cgi-bin/admin";

Quote Reply
Re: 500 Internal Server Error In reply to
Duh! Blush It's about time to schedule another eye appointment...

Look at your paths and urls. They seem to conflict; in your script path, you have /cgi-bin in a subdirectory of /pages/, and in another place, /cgi-bin is off your root.


--Drew