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

500 Internal Server Error

Quote Reply
500 Internal Server Error
Hello everyone, I have been trying to get this script to work all day but with no progress, so it seems that I will need some help setting it up.

(links.cfg)
# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/usr/local/plesk/apache/vhosts/mysite.com/cgi-bin/links/admin";
$db_dir_url = "http://www.mysite.com/cgi-bin/links/admin";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://www.mysite.com/cgi-bin/links";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/usr/local/plesk/apache/vhosts/mysite.com/httpdocs/pages";
$build_root_url = "http://www.mysite.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";

# 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 = ''; $db_smtp_server = '';

# Email address of the administrator. BE SURE TO SET!
$db_admin_email = '';

# 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 = '';

Don't know, do you think there is something worry with this? I have also gave all the files/dir there permissions, have tryed different...
require "$db_lib_path/links.cfg";
in the admin.cgi, have uploaded by ASCII, and tryed over and over again. I have tryed and read the forums over and over again as well, if you can help me out in any way, that would be great, oh and one more thing, who has to register? Would a non-profit gaming site have too? And what do you consider commercial. Thanks, I am very greatful for any help that you can give me.
Quote Reply
Re: 500 Internal Server Error In reply to
Try changing the following codes:

Code:
require "$db_lib_path/links.cfg";

to the following codes:

Code:
require "/usr/local/plesk/apache/vhosts/mysite.com/cgi-bin/links/admin/links.cfg";

BTW: $db_lib_path is defined through the links.cfg file. So, you need to require the file first by the absolute path to this file before using this variable.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.
Quote Reply
Re: 500 Internal Server Error In reply to
Well I tryed what you said to do but it still dose not work, got any other ideas? That could be the problem on this issue?
Quote Reply
Re: 500 Internal Server Error In reply to
Well, check the following:

1) That the permission of your admin.cgi file is set to 755 (rwxr-xr-x).

2) That you have the correct Perl path in the first line of the file.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.
Quote Reply
Re: 500 Internal Server Error In reply to
Okay I tryed it, got the right path to perl, set the permissions, and it still gives me the error. Got any other clues?
Quote Reply
Re: 500 Internal Server Error In reply to
Are you uploading in ascii?

--mark
Quote Reply
Re: 500 Internal Server Error In reply to
Yes I have upload all in that format
Quote Reply
Re: 500 Internal Server Error In reply to
Talk to your hosting company about how to set-up CGI scripts in your account.

Wink

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.