944,137 Members | Top Members by Rank

Ad:
  • Perl Discussion Thread
  • Unsolved
  • Views: 1134
  • Perl RSS
Nov 5th, 2009
0

Need help with configuring premade perl form script

Expand Post »
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; Nov 5th, 2009 at 1:19 pm.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster
wonderland is offline Offline
108 posts
since Oct 2007
Nov 13th, 2009
0
Re: Need help with configuring premade perl form script
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
Perl Syntax (Toggle Plain Text)
  1. print "content-type: text/html\n\n";

if not add it
Reputation Points: 10
Solved Threads: 0
Newbie Poster
wickedxter is offline Offline
20 posts
since Jul 2009
Nov 16th, 2009
0
Re: Need help with configuring premade perl form script
Thanks a lot !
Reputation Points: 10
Solved Threads: 0
Junior Poster
wonderland is offline Offline
108 posts
since Oct 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Perl Forum Timeline: How to chomp and split properly a file
Next Thread in Perl Forum Timeline: Replace a string in perl





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC