Need help with configuring premade perl form script

Reply

Join Date: Oct 2007
Posts: 37
Reputation: wonderland is an unknown quantity at this point 
Solved Threads: 0
wonderland wonderland is offline Offline
Light Poster

Need help with configuring premade perl form script

 
0
  #1
22 Days Ago
Hi,

I wan't to add simple web form to my page. name, e-mail, comment, so I started poking around internet and found out about CGI. I put premade cgi.(pearl) script in cgi-bin folder on server and adjusted form for that script:

When I tested out my form , i got this error: Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log. Apache/2.2.8 (Ubuntu) DAV/2 SVN/1.4.6 PHP/5.2.4-2ubuntu5.7 with Suhosin-Patch mod_ruby/1.2.6 Ruby/1.8.6(2007-09-24) mod_ssl/2.2.8 OpenSSL/0.9.8g Server at rags.lv Port 80


I suppose there is something wrong with pearl file config. and since I'm not very competent outside html/css I need some help.

I'm using this scripit : FormMail

any help mucho macho appreciated :p
Last edited by wonderland; 22 Days Ago at 1:19 pm.
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 15
Reputation: wickedxter is an unknown quantity at this point 
Solved Threads: 0
wickedxter wickedxter is offline Offline
Newbie Poster
 
0
  #2
14 Days Ago
Is the very first line (#!/usr/bin/perl) pointing to the correct folder where perl is stored on the server?

in the first couple of lines of the script there should be a line like
  1. print "content-type: text/html\n\n";

if not add it
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 37
Reputation: wonderland is an unknown quantity at this point 
Solved Threads: 0
wonderland wonderland is offline Offline
Light Poster
 
0
  #3
12 Days Ago
Thanks a lot !
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC