View Full Version : cgi: matt's links
flowersource
02-07-1999, 04:27 PM
Please help,
I've been trying to get 'matts links script' installed for 10 days now, I give up.
Besides the chmod settings, (tried 755..777, with cute ftp ) this is all there is to it:
links.pl
#!/usr/bin/perl (copied from links.pl)
# Define Variables
$filename = "links.html";
$linksurl = "http://flowersource.net/links.html";
$linkscgi = "http://flowersource.net/cgi-bin/links.pl";
$linkstitle = "Matt's Script Archive: Free For All Demo";
$database = "database.txt";
database.txt needs to be mode 777
links.pl needs to be mode 755
This is the last error that I got:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@flowersource.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.
Premature end of script headers: /big/dom/xflowersource/cgi-bin/links.pl
Apache/1.3.3 Server at www.flowersource.net Port 80
Thanks,
Mike
hearts
02-07-1999, 04:45 PM
hey Mike...........
i am not looking at the read me file of this.. however, I do have a question or two.
$database = "database.txt";
don't you need to specify where that file is?
The database.txt does not get placed into your cgi-bin... therefore I believe you need the path to this file.
what I would do is put the links.html and the database.txt in the same directory.. /links/ .. it will make it easier to sort through all your files you have on the server.
if you send me the URL to your script, I don't mind lending a hand. sorta got hooked on playing with CGI.. giggle
BTW... I sent ya email.
----- went to Matt's ---
here is what you are needing.. *reading the readme file helps a WHOLE LOT YA KNOW.. giggle
$filename = "/server/path/to/links.html";
Path Location of your links.html file.
$database = "/path/to/database.txt";
---------------
hearts
[This message has been edited by hearts (edited 02-07-99).]
Justin
02-07-1999, 05:47 PM
She's right - put database.txt and links.html in the links directory, and then set the paths to:
$filename = "/links/links.html";
- or -
$filename = "/big/dom/xflowersource/www/links.html";
and the other:
$database = "/links/database.txt";
- or -
$database = "/big/dom/xflowersource/www/links/database.txt";
Not sure which, but one will work. You can't put world writable files in the cgi-bin, and it's not a good idea anyway.
Funny, I used Matt's free for all links page, and I don't remember a database.txt file. There was a badwords.txt and a badurls.txt or something like that - must be a different version.
Another thing, if you chmod'd files in the cgi-bin to 777, they didn't change. CuteFTP doesn't tell you that it didn't work unless you pay attention to the log window, but look at the attributes: rwx,r-x,r-x is what is will show. 755 is the highest you can go in the cgi-bin.
Hope this helps http://www.aota.net/ubb/smile.gif
------------------
Justin Nelson, SFE Inc.
http://www.vdj.net
Justin
02-07-1999, 05:53 PM
Nevermind - I just added my site http://www.aota.net/ubb/smile.gif
flowersource
02-07-1999, 06:14 PM
Thanks to Maria and Justin, I think that I've just learned to pay attention to the difference in 'URL address' and 'path'
There are several/many modified versions of Matt Wrights script. I want to try to use this one because it looks like it will be simpler to modify the 'categories' to fit my website content.
Thanks,
Mike
ps: wanna help with ubb freeware version install next ? : )
hearts
02-07-1999, 07:43 PM
sure.. for a slight fee! *EG*
if it is anything like the guestbook, it should be a piece of cake! http://www.aota.net/ubb/wink.gif
and a few extra cusswords along the way! *EG*
hit me in email.. anytime.. http://www.aota.net/ubb/smile.gif
ps: wanna help with ubb freeware version install next ? : )
I've got a tutorial on how to install UBB both free and paid on FutureQuest. Url is http://www.downinit.com/stuff/ubb.html
------------------
Del
www.downinit.com (http://www.downinit.com)
da da da
flowersource
02-08-1999, 05:36 AM
Thanks, I'll check it out later. I spent a day trying to get it working using the tutorial on fquest and the one on the ubb site. No luck.
Mike
Hey Del,
On your instructions -- You make a note about the date problem in the UBB... that is no longer an issue in the versions they have available for download now -- to save confusion you may want to remove that part and/or add a notation somewhere so it's only specific to the broken version and not the fixed versions.
Thanks!
Deb
Hiya Deb
It's all fixed now. The lab's cruddy FTP program decided it would work for a little while, so I removed the troublesome section in question.
What else do I need to fix?
------------------
Del
www.downinit.com (http://www.downinit.com)
[This message has been edited by Del (edited 02-08-99).]
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.