Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 9 votes, 5.00 average. Display Modes
Old 01-17-2002, 02:36 PM   #1
Member (9 bit)
 
Join Date: Sep 2000
Location: Douglas, GA
Posts: 302
Send a message via ICQ to Leef
Perl script installation

I downloaded a guestbook from worlwidemart.com. I've edited the perl script to include the correct URL, edited each .html document to point to the CGI-BINand changed the permissions, but I still get an error with I access the script from a browser. I'm confused, and POWweb technical support doesn't help with 3rd party scripts.

Did I forget to do something?
Leef is offline   Reply With Quote
Old 01-17-2002, 04:15 PM   #2
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
Most often it is a permission thing which means that you will have the chmod the script. That is the most likely problem but what exactly does the error message say?
__________________

Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row
mairving is offline   Reply With Quote
Old 01-17-2002, 09:04 PM   #3
Member (9 bit)
 
Join Date: Sep 2000
Location: Douglas, GA
Posts: 302
Send a message via ICQ to Leef
Ok...when I tested the guestbook, it gave me a 500 internal error, which at POWweb is a page not found error I think. In the FAQ, it says that it's usally a permission setting that causes it...but I changed the permissions...I even set them to -rwxrwxrwxrwx. It still doesn't work.

One more thing...I can't telnet into the account...I have to use my FTP program to change the permissions

Here's the URL for the page with the guestbook.
Leef is offline   Reply With Quote
Old 01-18-2002, 07:56 AM   #4
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
A 500 server error is much more than a page not found error. I have only encountered it once. That was when a perl script was misconfigured. Did you set the permissions on the script. It looks like the script that you are using should be chmoded like so:
chmod 777 guestbook/
chmod 777 guestbook/guestbook.html
chmod 777 guestbook/guestlog.html
chmod 744 guestbook/addguest.html
chmod 755 cgi-bin/guestbook.pl

You can chmod through FTP also.

Let me know if that doesn't fix it and I will test it on my machine.
mairving is offline   Reply With Quote
Old 01-18-2002, 10:20 AM   #5
Member (9 bit)
 
Join Date: Sep 2000
Location: Douglas, GA
Posts: 302
Send a message via ICQ to Leef
Ok, I'm kinda lost now. The only way I know to change permissions in the FTP program I use is by right clicking the directory or file and selecting change permissions then. To change them, I either check or uncheck boxes read, write and execute for user, group and world

I've been working with HTMl for a few years, but I'm a newbie to scripts and such. I you wouldn't mind, could you look at the files and check to see if they are modified correctly. My email is leef@leefy.com

I'd appreciate any help you could offer
Leef is offline   Reply With Quote
Old 01-18-2002, 01:45 PM   #6
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
Well I played around with it a bit. There are two places that you need to edit. One is the guestbook.pl file. You need to change the guestbookurl, guestbookreal, guestlog and cgiurl. The other file to edit is the addguest.html file. You need to change the line form method=post action="change to your url" and the line at the bottom below the form. After I edited it, I still couldn't get it to work on my machine.

I really wasn't all that impressed with the guestbook. I really wouldn't spend much time on it because of that. It should be easier with a PHP guestbook. Try here to find a better one.

Last edited by mairving; 01-18-2002 at 01:48 PM.
mairving is offline   Reply With Quote
Old 01-19-2002, 05:03 PM   #7
Member (9 bit)
 
Join Date: Sep 2000
Location: Douglas, GA
Posts: 302
Send a message via ICQ to Leef
As far as I know I changed everything to how it's supposed to be. I'm just confused. It'll probably be easier to talk to one of the teachers at school so he can show me what I'm doing wrong. I tried one of the php guestbooks, but it didn't work either....so I think it's just a permission problem. And I don't know how I can change them other than right-clicking the file in my FTP client.

Thanks for all the help anyway...I just gotta keep practicing
Leef is offline   Reply With Quote
Old 01-19-2002, 09:11 PM   #8
Member (12 bit)
 
Paul Victorey's Avatar
 
Join Date: Mar 1999
Location: MN or WI
Posts: 3,017
Also, at least the last time I did perl scripting, the first line has to be the path to the perl interpreter.

It often is:

#!usr/local/bin/perl

but if this path is not the same on this system, then it won't work, and will need altering.
__________________
Paul M. Victorey
------------------
I am not responsible for any problems that may arise as a result of following my advice. This includes, but is not limited to, computer failure, loss of data, nuclear war, famine, boils, no clean laundry, your daughter running off with a biker gang, or armageddon. Take my advice at your own risk.
Paul Victorey is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:50 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2