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

A different problem with the admin page...

Quote Reply
A different problem with the admin page...
Hey all. I'm fairly new to cgi too, but have a decent understanding of installing scripts. I did what the readme said and had no problems. When I went to test the admin.cgi page, it loaded, and I was overjoyed!

But none of the frames within the page loaded. Check it out:
http://1stopfonts.com/cgi-bin/links/admin/admin.cgi

The page is found and everything, so permissions must be right. But none of the frames are loading.

Any ideas?

Thanks a ton!
-Jordan

Quote Reply
Re: A different problem with the admin page... In reply to
Check your links.cfg file and verify that you have the correct paths for your variables...both physical and virtual paths.

The problem is most likely related to a misconfiguration in the $db_script_url variable.

Regards,

Eliot Lee

Quote Reply
Re: A different problem with the admin page... In reply to
Hi there. Thanks for the reply!

Well, I went through and set the paths as best as I could and still nothing happened. Finally I did the final test and set the actual URL to $db_script_url and it still isn't working. Just says the pages aren't found.

There must be something simple going on here... any ideas?

Thanks!

Quote Reply
Re: A different problem with the admin page... In reply to
Please save your links.cfg as a text file like links.txt, then upload the text file to a publicly accessible directory, and then post the URL to the text file, so that we can read the codes...a lot easier to read text files, than scrolling through codes in Threads in these forums.

Regards,

Eliot Lee

Quote Reply
Re: A different problem with the admin page... In reply to
Here ya go:
http://www.1stopfonts.com/links.txt

Thanks a lot!

Quote Reply
Re: A different problem with the admin page... In reply to
Here are some problems I see:

1) You might not be using the COMPLETE ABSOLUTE for your path variables. You are using totally different paths for each of your path variables...find the correct ABSOLUTE and your problems will probably clear up.

2) The following configurations are incorrect:

Code:


$build_new_path = "$/home/firstfonts/public_html/freefontslinks/new";
$build_new_url = "$http://1stopfonts.com/freefontslinks/new";


AND

Code:

$build_cool_path = "$/home/firstfonts/public_html/freefontslinks/cool";
$build_cool_url = "$http://1stopfonts.com/freefontslinks/cool";


AND

Code:


$build_ratings_path = "$/home/firstfonts/public_html/freefontslinks/ratings";
$build_ratings_url = "$http://1stopfonts.com/freefontslinks/ratings";


Notice the bolded $...remove them.

3) All the following variable configs are WRONG:

Code:


$db_script_url = $db_dir_url . "http://www.1stopfonts.com/cgi-bin/links/admin.cgi"; # Admin script.
$db_header_path = $db_script_path . "http://www.1stopfonts.com/freefontslinks/header"; # Place to store header and footers.
$db_footer_path = $db_script_path . "http://www.1stopfonts.com/freefontslinks/footer";
$build_search_url = $db_cgi_url . "http://www.1stopfonts.com/cgi-bin/links/search.cgi"; # URL of search script.
$build_add_url = $db_cgi_url . "http://www.1stopfonts.com/cgi-bin/links/add.cgi"; # URL of add script.
$build_modify_url = $db_cgi_url . "http://www.1stopfonts.com/cgi-bin/links/modify.cgi"; # URL of modify script.
$build_jump_url = $db_cgi_url . "http://www.1stopfonts.com/cgi-bin/links/jump.cgi"; # URL of jump script.
$build_email_url = $db_cgi_url . "http://www.1stopfonts.com/cgi-bin/links/subscribe.cgi"; # URL of email update script.
$build_rate_url = $db_cgi_url . "http://www.1stopfonts.com/cgi-bin/links/rate.cgi"; # URL of rate script.
$db_mail_url = $db_dir_url . "http://www.1stopfonts.com/cgi-bin/links/admin/nph-email.cgi"; # URL of admin mass mail script.
$build_css_url = $build_root_url . "http://www.1stopfonts.com/freefontslinks/links.css"; # URL to your CSS file.


They should look like the following:

Code:


$db_script_url = $db_dir_url . "/admin.cgi"; # Admin script.
$db_header_path = $db_script_path . "/header/"; # Place to store header and footers.
$db_footer_path = $db_script_path . "/footer/";
$build_search_url = $db_cgi_url . "/search.cgi"; # URL of search script.
$build_add_url = $db_cgi_url . "/add.cgi"; # URL of add script.
$build_modify_url = $db_cgi_url . "/modify.cgi"; # URL of modify script.
$build_jump_url = $db_cgi_url . "/jump.cgi"; # URL of jump script.
$build_email_url = $db_cgi_url . "/subscribe.cgi"; # URL of email update script.
$build_rate_url = $db_cgi_url . "/rate.cgi"; # URL of rate script.
$db_mail_url = $db_dir_url . "/nph-email.cgi"; # URL of admin mass mail script.
$build_css_url = $build_root_url . "/links.css"; # URL to your CSS file.


Regards,

Eliot Lee

Quote Reply
Re: A different problem with the admin page... In reply to
Hi Eliot. First off, thanks so much for your help! I really appreciate it.

Okay, I made the #2 & #3 changes like you said (don't know how I screwed up some of those path/url things so badly!), but I'm not quite sure what your #1 suggestion means.

What is a complete absolute path? I'm using the paths given to me by the system admin, and they go all the way back to the base path for the entire hosting company:
/home (the host)
/firstfonts (my account)
/public_html (simply where the files go)
/cgi-bin ('nuff said)
/links (i made a separate folder for links)
/admin (it told me to make an admin folder below)
...etc.

So how is that not complete?

I must be misunderstanding something!

BTW, if you want to look at the latest coding:
http://1stopfonts.com/links.txt
(you might need to refresh)

Thanks again,
-Jordan

Quote Reply
Re: A different problem with the admin page... In reply to
In Reply To:
What is a complete absolute path?
It is complete path in your server where your account is located and where your directories are located....like:

Code:

/machine1/webaccounts/public_html/cgi-bin/links


In Reply To:
So how is that not complete?
Uh...because your script is NOT working and you are basically getting NOT FOUND messages or responses from the server, thus I am presuming that your paths are INCORRECT.

In Reply To:
I must be misunderstanding something!
Not really...another problem could be is that if your hosting company uses cgiwrap, then you are probably confusing paths all over the place...which you seem to be doing...

I would HIGHLY recommmend at this point that you consult your hosting company's online documentation regarding custom CGI and Perl programming OR contact your hostin company for more information about setting up custom CGI scripts.

Good luck!

Regards,

Eliot Lee