-
Member
(probably easy) CGI Problem
http://www.ellininc.com/tfmail/testform.html
I'm utilizing the nms TFmail per my hosting company. I followed the read me and uploaded the files to where I believe they need to be, but when I hit submit on the form I get the following error message:
Connection: close HTTP/1.1 405 Method not allowed Server: Microsoft-IIS/5.0 Date: Mon, 24 Mar 2003 22:11:45 GMT Allow: OPTIONS, TRACE, GET, HEAD, PUT, DELETE, POST Content-Type: text/html Content-Length: 112
HTTP/1.1 405 Method not allowed
my tfmail.pl script is as follows (it's super long so, I'll just include the "user servicable parts"):
#!/usr/bin/perl -wT
use strict;
#
# $Id: TFmail.pl,v 1.21 2002/11/17 09:33:51 nickjc Exp $
#
# USER CONFIGURATION SECTION
# --------------------------
# Modify these to your own settings, see the README file
# for detailed instructions.
use constant DEBUGGING => 1;
use constant LIBDIR => 'http://www.elliininc.com/tfmail';
use constant MAILPROG => '/usr/lib/sendmail -oi -t';
use constant POSTMASTER => 'lellinw@mindspring.com';
use constant CONFIG_ROOT => 'http://www.ellininc.com/tfmail';
use constant MAX_DEPTH => 0;
use constant CONFIG_EXT => '.trc';
use constant TEMPLATE_EXT => '.trt';
use constant ENABLE_UPLOADS => 1;
use constant USE_MIME_LITE => 1;
use constant LOGFILE_ROOT => '';
use constant LOGFILE_EXT => '.log';
use constant HTMLFILE_ROOT => '';
use constant HTMLFILE_EXT => '.html';
use constant CHARSET => 'iso-8859-1';
# USER CONFIGURATION << END >>
# ----------------------------
# (no user serviceable parts beyond here)
My form html:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form action="http://usr/local/psa/home/vhosts/ellininc.com/cgi-bin/tfmail.pl" method="post" enctype="multipart/form-data" name="form1" target="_self">
<p align="center">
<input type="hidden" name="_config" value="custom" />
Name:
<input name="name" type="text" id="name">
</p>
<p align="center">email:
<input name="email" type="text" id="email">
</p>
<p align="center">
<textarea name="info" cols="50" rows="10" id="info"></textarea>
</p>
<p align="center">Upload:
<input type="file" name="file">
</p>
<p align="center">
<input type="submit" name="Submit" value="Submit">
</p>
<p> </p>
<p> </p>
</form>
</body>
</html>
I know I need to execute permissions by running the command "chomd +x tfmail.pl" but I have no idea where to do this from,
If anyone has any ideas I'd apprieciate it. I'm lost.
-
__OSX powered__
Re: (probably easy) CGI Problem
Originally posted by ellin
I know I need to execute permissions by running the command "chomd +x tfmail.pl" but I have no idea where to do this from,
You need to telnet/ssh in to the server and execute that command!
Do you have that?
-
http://usr/local/psa/home/vhosts/ellininc.com/cgi-bin/tfmail.pl"
Hi,
that's really in the instructions for the script?
Musicman
-
__OSX powered__
That's a nice form action
-
Member
http://usr/local/psa/home/vhosts/ellininc.com/cgi-bin/tfmail.pl"
yes, that long address is my cgi-bin path... virtual hosting.
I found a couple of problems, my permissions weren't set to 755 (they were 644) I did figure out how to set this in fetch (finally) and my files were uploading in binary instead of ASCII, so I fixed that, but now I'm getting:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
I've even tried a simple cgi test:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print <<EOF;
<HTML>
<HEAD>
</HEAD>
<BODY>
<b>HELLO WORLD!</b>
</BODY>
</HTML>
EOF
;
and nada... any thoughts?
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|