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

Please help 7.5 hours and still no joy

Quote Reply
Please help 7.5 hours and still no joy
Hi I really need some big time help here.

I have been at this now for coming upto 7.5 hours and no joy !!!!!!

I keep getting the following error when I access my page
:-http://www.theultimateworld.f2s.com/cgi-bin/links/admin/admin.cgi

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@theultimateworld.f2s.com 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.19 Server at www.theultimateworld.f2s.com Port 80

=================================================================================

First off I am using a f2s.com account and it automatically chmods my files too 644 and folders too 755

But anyway I have chmoded the scripts as required:-
chmod 755 (-rwxr-xr-x) on all .cgi files.
chmod 666 (-rw-rw-rw-) on all files in the data directory.
chmod 666 (-rw-rw-rw-) on all your template files (if using the online editor).
chmod 777 (drwxrwxrwx) on the hits directory
chmod 777 (drwxrwxrwx) on the ratings directory
chmod 777 (drwxrwxrwx) on the directory where Links pages will be created.

1) Do I chmod the pl and pm files or leave them at 644.

2) I have also changed the following line in my admin.cgi as stated in the forums board.

require "/web/sites/11/stu2000/www.theultimateworld.f2s.com/cgi-bin/links/admin/links.cfg";

My links.cfg file looks like this :-



# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/web/sites/11/stu2000/www.theultimateworld.f2s.com/cgi-bin/links/admin";
$db_dir_url = "http://www.theultimateworld.f2s.com/cgi-bin/links/admin";

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/web/sites/11/stu2000/www.theultimateworld.f2s.com/cgi-bin/links/pages";
$build_root_url = "http://www.theultimateworld.f2s.com/cgi-bin/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/sbin/sendmail'; $db_smtp_server = '';

# Email address of the administrator. BE SURE TO SET!
$db_admin_email = 'bollocksss99@yahoo.co.uk';


Can anyone help, if needed I will proide my account user name and ftp password if someone wants to try and fix it

Please Please anyone

Quote Reply
Re: Please help 7.5 hours and still no joy In reply to
Have you got an error log?......If so I'd check it - if it is a links2 error it normally shows a custom error with a message, but this is a normal 500 so you should see what shows in your error log.

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Please help 7.5 hours and still no joy In reply to
Unfortunately I don't have the server error log. I have emailed f2s.com but they will not provide me with this.
Can anyone see any obvious mistake as this is doing my head in big time, its now almost 8 hours ---- OUCH !!!!!!

Quote Reply
Re: Please help 7.5 hours and still no joy In reply to
Only things I can think of.....

Check the chmodding
Path to perl
Variable in links.cfg
Uploaded in ASCII

If none of that works you could try adding this to the top of the script causing the problem......

use CGI::Carp qw(fatalsToBrowser);

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Please help 7.5 hours and still no joy In reply to
qoote"If none of that works you could try adding this to the top of the script causing the problem......

use CGI::Carp qw(fatalsToBrowser); "

do i place this instead of #!/usr/local/bin/perl or does it go above or below, sorry but my knowledge is very poor and I mean very poor

Quote Reply
Re: Please help 7.5 hours and still no joy In reply to
Hm ok I've tried a number of things to try and fix it but it's having none of it. I even tried a test script with the following in it....

#!/usr/local/bin/perl

print "Content-type: text/html\n\n";

print "Hello";

....and even that gave an error (and I tried it with #!/usr/bin/perl) so I think you will have to contact f2s and while you have their attention force them to set up an error log for your site.

There is nothing else I can do - sorry :(

I re-uploaded some fresh copies in ASCII and chodded them correctly but nothing works - not even non-links2 scripts.

Sorry :(

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Please help 7.5 hours and still no joy In reply to
Below #!/usr/bin/perl or whatever the location to Perl is on your server Cool


e.g.

#!/usr/bin/perl
use CGI::Carp qw(fatalsToBrowser);


Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: Please help 7.5 hours and still no joy In reply to
Thanx Paul for trying, I tried too get in touch with f2s.com but they said all my personal files are my responsibility and could not help and the error log files are for there use only.
Does anyone else know a place where I can host this script that works -- booo hooo too f2s.com

Quote Reply
Re: Please help 7.5 hours and still no joy In reply to
OK its now been 9 hours and no joy.
Since this is a free account with f2s.com and I must be mad to do this but here are my login details. Can someone please go into my account and sort this nightmare

details removed-------------

anymore information please just ask, can someone please get this thing too work.

I think it maybe f2s.com not allowing links 2.0 if so can someone reccomend a free site by email please.
As this has been asked so many times and I don't want too start another thread on it. Saying that all the threads I have searched not one as reccomended a free site so I think if all else fails I am going to sign up with Pauls http://wiredon.net/

Quote Reply
Re: Please help 7.5 hours and still no joy In reply to
Hi,

I'm not saying I know it all because I don't, but I have tried almost everything I can think of and it isn't working. Maybe I missed something simple but I don't think I did, so it really isn't worth posting your login details publically - too much of a risk.

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Please help 7.5 hours and still no joy In reply to
thanx Paul, I have removed the above posting

Quote Reply
Re: Please help 7.5 hours and still no joy In reply to
Have you read the documentation at your hosting company?

if not, you should read the following web pages:

* http://www.f2s.com/...ory=Perl CGI Scripts

Regards,

Eliot Lee
Quote Reply
Re: Please help 7.5 hours and still no joy In reply to
Yes. A few things to note;

1) fs2.com use #!/usr/bin/perl Wink

2) For some reason any scripts within a 777 CHMODed directory give 500 IS Errors, try changing it to 755 and that will allow scripts to work (including Links 2). This is from personal experience!

Hope that helps a bit, but f2s.com is still a pain to install Links 2 on.... Frown
Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: Please help 7.5 hours and still no joy In reply to
Actually to allow writable and readable and executable permissions, the directory should be changed to 766 if 777 does not work. Unfortunately, 755 will pose problems with running NPH-BUILD.CGI and other scripts via the web browser.

Regards,

Eliot Lee
Quote Reply
Re: Please help 7.5 hours and still no joy In reply to
Oh...ok....I stand corrected Smile We all make mistakes!

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: Please help 7.5 hours and still no joy In reply to
Some more than others Wink

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/