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

problems with admin area

Quote Reply
problems with admin area
HI all,

I am fairly new to cgi but understand the basics and can learn quick.

I have problems when I call the admin.cgi script.

The script seems to work as I can see the 3 frames in their correct place.

Problem is that they are showning DNS error server not found in all 3 frames.

I have searched through the faq's and for a similar problem but no luck.

Also there 3 lines in links.cfg that are not refered to in the read me file - cool page, ratings page and new page. Do these need to be altered??

Any help will be much appreciated.

Thanks

Jason.

location of script:

www.piscatorial.com/cgi-bin/links/admin/admin.cgi




Quote Reply
Re: problems with admin area In reply to
I put the full paths in and it seems to work for me

http://www.youtrek.com



Quote Reply
Re: problems with admin area In reply to
Thanks for the quick reply,

What do you mean you put the full paths in?

Quote Reply
Re: problems with admin area In reply to
this is how I filled mine obviously yours will be different

# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/host/w/w/w/y/o/u/www.youtrek.com/cgi-bin/admin";
$db_dir_url = "http://www.youtrek.com/cgi-bin/admin";

I was sent this file below, Call it "basepath.cgi" Upload to your CGI directory, chmod 755, and execute it. This will tell you the exact path to your cgi-bin just figure out the others from there

#!/usr/bin/perl

print "Content-type:text/html\n\n";
print <<EndOfHTML;
<html><head><title>Print Environment</title></head> <body>
EndOfHTML
;
$ENV{'SCRIPT_FILENAME'} =~ s/basepath.cgi/ /;
print "Your basepath to this directory is: $ENV{'SCRIPT_FILENAME'}";


print "</body></html>";

Hope it is helpful.



Quote Reply
Re: problems with admin area In reply to
Phew!

Thanks for that I have now found out my absolute path.
It seems to work as I now am getting 404 error messages in the frames, instead of dns error.

Any suggestions??

Quote Reply
Re: problems with admin area In reply to
I just checked your site out and everything seems to be working ok, In fact it is working better than mine.

Quote Reply
Re: problems with admin area In reply to
Thanks for your support all,

I seem to be well on the way now, a couple of small hiccups to address.

One thing I cant seem to get to work is the sendmail.

I have set it to the system path on my server as they advised

/user/sbin/sendmail

But if i add a URL as if I were a visitor I do not recieve an email to confirm the addition?

Any suggestions greatly recieved.

Thanks

Jason

Quote Reply
Re: problems with admin area In reply to
might be a silly sugestion but did you change the two lines below "$db_admin_email =" from 0 to 1 like

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

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

# Notify visitors automatically when their links are modified?
$db_email_modify = 1;


Quote Reply
Re: problems with admin area In reply to
Thanks Gordon1,

I missed that, to busy looking for something terrible with the sendmail path!!

Quote Reply
Re: problems with admin area In reply to
Once again thanks for all the help!

I now have the scripts working like a dream.

It all works, and now i'm ready to register and customise it!!

The basepath.cgi script was a real help to determiine the absolute path to directories.

Despite numerous phone calls to my host (freeola) they seemed reluctant to give me the absolute path and instead only gave me the system path to cgi-bin. This worked fine on simple scripts, but not with links.

Maybe they would rather we did not run potentially damaging scripts and databases on their server. Who knows???

If anybody else is experiencing a similar problem here's the script.

A big thanks to GORDON1 for this

I was sent this file below, Call it "basepath.cgi" Upload to your CGI directory, chmod 755, and execute it. This will tell you the exact path to your cgi-bin just figure out the others from there

#!/usr/bin/perl

print "Content-type:text/html\n\n";
print <<EndOfHTML;
<html><head><title>Print Environment</title></head> <body>
EndOfHTML
;
$ENV{'SCRIPT_FILENAME'} =~ s/basepath.cgi/ /;
print "Your basepath to this directory is: $ENV{'SCRIPT_FILENAME'}";


print "</body></html>";


Good luck