On Fri, 28 Jun 2002, Rusty Wilson wrote:
> I have a question about the TFmail application. Whenever i try to submit
> a form to it, I get an internal server error. Usually this means a
> problem with the code, but I cant imagine that in this case.
The most usualy causes of an 'internal server error' are a bad path to
perl in the shebang line, bad file permissions, or a typo in the
configuration of the program. Also in the case of TFMail it may mean that
you have not uploaded the associated modules to the correct place or that
they are not readable by the web server process.
> One thing I did notice, in both the .pm and .pl files there are large
> blocks of text like the following (see below). Is this correct? Am I
> supposed to comment out these blocks? Im not a perl expert, but I dont
> recognize this "code".
These blocks are 'POD' (plain old documentation) and they are in effect
already commented out - Perl recognizes a block beginning with
'=<something>' in the first column as introducing a block of documentation
until it sees a '=cut' and ignores it - this is used by documentation
tools like 'perldoc'. If you are interested you might take a look at:
> Any other ideas why i might get an "internal server error". I'm running on a
> RaQ 3i - no telnet access, so troubleshooting is limited. I have verified
> execute permissions, the path the perl, and the path to sendmail are correct.
Can you check that you have uploaded NMStreq.pm and MIME_Lite.pm (if you
need it) and that they have 644 permissions. Also could you mail us the
configuration section of TFMail.pl. Also, while I am sure that it is
alright could you try to determine the version of perl for us - you can do
this at it is simplest by uploading a small CGI program like:
print "Content-Type: text/plain\n\n";
Of course you will need to adjust the path to perl if appropriate.
Jonathan Stowe |
<http://www.gellyfish.com> | This space for rent