curtis Posted February 21, 2003 Posted February 21, 2003 I am trying to setup a mailing list (Power List). At this point I must say I don't know much about cgi. Followed instruct,changed Options,made sure the sendmail path was correct,uploaded the mail.cgi folder to the cgi-bin and chmod to 755. In the instruct it says to use http://www.******/cgi-bin/mail.cgi but that didn't work, got a server error so I tried http://www.******/public_html/cgi-bin/mail.cgi and got my 404 page. Any suggestions? curtis Quote
rayners Posted February 21, 2003 Posted February 21, 2003 http://www.******/cgi-bin/mail.cgi is the correct location. You are getting a server error because the script exited with an error. Quote
curtis Posted February 21, 2003 Author Posted February 21, 2003 Thanks, I could not find the error,deleted the script. Will try something else. curtis Quote
KevinW Posted February 21, 2003 Posted February 21, 2003 Hey, Curtis ... you're not going to give up *that* easily -- are you???? -kw Quote
curtis Posted February 21, 2003 Author Posted February 21, 2003 Give up that easy,now KW you know me better than that. I stayed up most of the night trying everything I could think of. I had deleted the Power List script. tried 2 others getting server errors. deleted those. I then tried the mailing list supplied by TCH, got error message. So I went back to the remotely hosted script I was using before. Its not very good. Some of the people will get their mailings when supposed to, some will not. Seems like about 10 don't get it.Next mailing a different 10 will not get it. curtis Quote
curtis Posted February 22, 2003 Author Posted February 22, 2003 KW, I just couldn't leave it alone. I tried Power List again. When I first tried this script I used my browser to ftp the cgi and got the errors. This time I used cuteftp and made sure to send in ascii mode,everything worked the first time. No problems,no errors. I didn't change anything in the code so It had to be the way my browser sends files(not in ascii mode). Maybe this will help someone else if having problems. curtis Quote
KevinW Posted February 22, 2003 Posted February 22, 2003 Curtis, Hey, that's interesting - I never considered the Ascii/Binary issue when copying files up to a web site thru a browser window. Guess that's why standalone FTP programs are still necessary and required! I'll have to use Google to see if there's a way to control Ascii/Binary uploads via IE. Now, aren't you glad I encouraged you to give it the old college try???? -kw Quote
curtis Posted February 22, 2003 Author Posted February 22, 2003 I guess in my case that would be The Old College Dropout try. curtis Quote
ilumnikarl Posted March 2, 2003 Posted March 2, 2003 Hello, I just read Curtis' plight and I, too, am being bothered by CGI. I'm trying to set up a guestbook. Like Curtis, I uploaded the perl file in ASCII and set the permission to '755'. The variables in the code are: guestbookurl = "http://your.host.com/~yourname/guestbook.html"; $guestbookreal = "/home/yourname/public_html/guestbook.html"; $guestlog = "/home/yourname/public_html/guestlog.html"; $cgiurl = "http://your.host.com/cgi-bin/guestbook.pl"; which, after trying several different things, I've set as: $guestbookurl = "http://www.lowney.net/guestbook.html"; $guestbookreal = "/guestbook.html"; $guestlog = "/guestlog.html"; $cgiurl = "http://www.lowney.net/cgi-bin/guestbook.pl"; I've tried several different beginnings to the 'guestbookreal' variable, but haven't (if this is the problem) found the right one. Please help Quote
KevinW Posted March 2, 2003 Posted March 2, 2003 Here'ss how to find out your "real" home address for use in your CGI scripts: 1. Go to our new TCH Help Site 2. Click on Tools and Scripts 3. The first box is for a utility 'env.pl'. 4. Go ahead and run it if you;d like, but then click on 'Download this file now' 5. Unzip the env.zip file you will get, and then upload it back to your web server 6. Then run it on your server: www.mysite.com/env.pl -kw Quote
ilumnikarl Posted March 3, 2003 Posted March 3, 2003 BEEEEYYOOOOTIFULL! Thank you! Of course, after all this, I'll still try your guestbook, too. I just wanted to see if I could re-remember how to do this. env.pl worked like a charm. BTW- the page you linked has a typo- "Sinply". Thanks again for the help! Quote
KevinW Posted March 3, 2003 Posted March 3, 2003 Thanks for noting the fact that our fat fingers still get in the way! I'm sure we will get the mis-spell corrected shortly. As they say ... pobody's nerfect! :-) kw Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.