Current location: Hot Scripts Forums » Programming Languages » Perl » Formmail- 500 internal server error


Formmail- 500 internal server error

Reply
  #1 (permalink)  
Old 05-06-09, 03:05 AM
kerrym kerrym is offline
New Member
 
Join Date: May 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Formmail- 500 internal server error

I am trying to set up a form where infomation entered can be emailed to me, but i keep getting a 500 internal server error.

Ive tried everything, the code im using is Matt's script, ive also tried code from 123-reg who i host with but still get the same error.

Ive checked:
the permissions are set correctly
#!/usr/bin/perl is at the top of my code

Please can someone help.
Reply With Quote
  #2 (permalink)  
Old 05-27-09, 09:07 PM
kipaqra kipaqra is offline
Newbie Coder
 
Join Date: Apr 2009
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
have you set the permission of the perl script to 755.


I had major trouble with the perl script until i set the following:

referers = ('your domail');

ie. if your domain was www.kerrym.co.uk

use, refers = ('kerrym.co.uk');

leave the recipients at:

@recipients = &fill_recipients(@referers);

and in your form use something like:

<form action="/cgi-bin/formmail.pl" method="POST">
<input type="hidden" name="recipient" value="webmaster@kerrym.co.uk"/>
<input type="hidden" name="subject" value="Website Information Request"/>
<input type="hidden" name="required" value="name,email"/>
<input type="hidden" name="redirect" value="../thankyou.html"/>

make sure two fields are named 'name & email'

create a cgi-bin folder under your 123-reg public_html root folder. place the formmail.pl script in it and set its permissions to 755

Hope that helps
Reply With Quote
  #3 (permalink)  
Old 12-11-09, 08:07 PM
lindac lindac is offline
New Member
 
Join Date: Dec 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Kipaqra - I have everything set up as in your excellent explaination, but I am getting a:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, support@supportwebsite.com 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/1.3.33 Server at vrbointucson.com Port 80


Any more ideas?
Linda
Reply With Quote
  #4 (permalink)  
Old 12-12-09, 04:15 AM
webhostuk's Avatar
webhostuk webhostuk is offline
Newbie Coder
 
Join Date: Aug 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kerrym View Post
I am trying to set up a form where infomation entered can be emailed to me, but i keep getting a 500 internal server error.

Ive tried everything, the code im using is Matt's script, ive also tried code from 123-reg who i host with but still get the same error.

Ive checked:
the permissions are set correctly
#!/usr/bin/perl is at the top of my code

Please can someone help.

Hello,

try to set the path #!/usr/bin/perl to #!/usr/local/bin/perl

check if that works.
__________________
http://www.webhost.uk.net | Best UK Webhosting
http://www.webhosting.uk.net | Cheap UK Dedicated WebHosting
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ and MSSQL tutorials? scott2500uk C/C++ 8 05-11-09 02:33 AM
Error 500 - Internal server error slinkydonkey Perl 0 07-19-08 10:35 AM
Syntax Error Nikas Database 4 05-15-08 10:48 AM
Problem with CGI (500 Internal Server Error) Need Help PHP Warner Perl 4 05-21-06 04:19 PM
Internal Server Error jarradyuhas Perl 1 11-14-05 08:41 PM


All times are GMT -5. The time now is 04:52 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.