Gossamer Forum
Quote Reply
500 Error :-(
I've tried all I can think of to solve this problem. I have treid to follow the readme file to the exact word... the instalation path seems to change 1/2 way through.. then change back so I'm a little confused.

BTW: This is only my second ever perl install so I know virtually nothing.

I am currently using the free hosting at www.f2s.com.
My site is http://www.findfun.f2s.com
My document root is /web/sites/353/findfun/www.findfun.f2s.com/

I currently have links 2 installed in the following URL
http://www.findfun.f2s.com/cgi-bin/links/

THe admin directory is contained within the links dir ie:
http://www.findfun.f2s.com/cgi-bin/links/admin

Path to sendmail is: /usr/lib/sendmail

I believe I have CHMODed all the required files and dirs.

The top of my links.cfg file...
==========================================================

# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/web/sites/353/findfun/www.findfun.f2s.com/cgi-bin/links/admin";
$db_dir_url = "http://www.findfun.f2s.com/cgi-bin/links/admin";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "/web/sites/353/findfun/www.findfun.f2s.com/cgi-bin/links";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/web/sites/353/findfun/www.findfun.f2s.com/links/pages";
$build_root_url = "http://www.findfun.f2s.com/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";

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

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

# Notify visitors automatically when their links are validated?
$db_email_add = 0;
========================================================

If anyone has any suggestions as to why I am getting the 500 error I would be very grateful if they could point it out. If anyone has the time to spare to take a quick look - I enclose my ftp details.

ftp: ftp.findfun.f2s.com
login: findfun
pw: magazine

Many Thanks

MikeJeffs

Quote Reply
Re: 500 Error :-( In reply to
In Reply To:
/web/sites/353/findfun/www.findfun.f2s.com/
I beg to differ...I betcha that your ABSOLUTE ROOT directory is actually /web/sites/353/findfun/.

Delete /www.findfun.f2s.com/ from all your *_path variable configurations.

You are mixing RELATIVE and ABSOLUTE PATHS.



Regards,

Eliot Lee
Quote Reply
Re: 500 Error :-( In reply to
/web/sites/353/findfun/www.findfun.f2s.com/

Thats definatly my root. I know it looks odd... but its just the way that f2s.com give out their free webspace. I got the script working late last night though.

I'd made one of the most stupid mistakes possible... I had the incorrect path to perl. I don't think you can get much dummer than that eh?

THanks for helping!

MikeJeffs

Quote Reply
Re: 500 Error :-( In reply to
Have you checked that the path to perl is correct in all your Links2 cgi scrpts?

Paul Wilson. Shocked
(Dont blame me if I'm wrong!)