Hi all, I've been frustrated with my initial efforts to run perl scripts on my server, or rather the server I use. I have tried a few simple form mailers, each of them failing with internal 500 error. I had a simple test.cgi perl script that I got from a recent tutorial I viewed from the listings at Lynda.com At the site, Lynda.com there is a perl/cgi tutorial movie from the cdrom by that same name. Anyway, there was a simple test.cgi script that prints out the environment variables and information about what version of perl is running and what version of the cgi. One can see that info. if it is needed by running http://trianglesupport.net/cgi-bin/test.cgi
Ok, on another domain, I have my form mailer that I want to have mail me back
the poetry, prose, etc submissions. I am using bnbform.cgi that I found online. I was wondering if someone could look at it to see if there are any things that could go wrong. I had the same script
running on a different server but I can't remember doing anything different and that was a while ago.
I took out the lines where it would create a file to hold the same data that would be emailed.
Now, it only has to email the results of the form. The form is called from this page:
http://wordsalad.net/submission.html which can also be reached by starting at
http://wordsalad.net
Looking at the code - html code - one can see that the form calls http://wordsalad.net/cgi-bin/bnbform.cgi
I checked and this file has the 755 execute permission for everyone. I could have been given a wrong path to the sendmail program from the web hosting provider but it seems like a different
error would show up. The web hosting provider is usually good at getting back to me and I haven't heard that there is any error in the path to the sendmail program.
Any other suggestions would be greatly appreciated. Next I want to install a perl based blog
and a bulletin board, but on different sites.
Bruce
++++++++++++++++++++++++++++++++
Bruce M. Whealton, Jr.
Publisher/Webmaster Co-Editor of
Word Salad - Literary Magazine at:
http://wordsalad.net/
ICQ # 15782569
MSN IM: [EMAIL PROTECTED]
Yahoo IM: brucewhealton
AIM: BruceMWhealton
Check out some charitable sites:
http://trianglesupport.net/
http://triangle-resources.no-ip.org/
http://savebruce.no-ip.org/
++++++++++++++++++++++++++++++++
Hold on to your patience and that will help.
There are thousands of people using perl with cgi and for to mailers etc and it works for them therefore it should also work for you
Have you tried to look at the webserver error logs
I think the problem may not be with your script at all ( though you havent posted anything of that ).
Start with a small cgi script, Check the script alias , Check the uid of the web server , Do not forget the content-type line , See that your script does not give syntax errors ( perl -c ) etc
If still no luck post your code. And a small one. There will be people on this list who can find out why things are not working
just try our this
#!/usr/bin/perl # #
print "Content-type: text/html\n\n"; print "This works\n"; exit(0);
Ram
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
