RE: [PBML] I don't understand...
- Nicolay A. Vasiliev <n.vasiliev@...> wrote:
: I don't understand the situatuin getting the error from
: web-server. I have some perl script naming sendmail.cgi
: to send e-mail messages. I put it into cgi-bin directory.
: The form have action property as "sendmail.cgi". When I
: make a sending operation error fires with such message
: in Apache log. Earlier it was in a subdirectory of
: cgi-bin and wasn't any errors.
: [Sat Dec 27 01:52:27 2003] [error] (2)No such file or
: directory: exec of /home/engilem/www/cgi-bin/sendmail.cgi failed
: [Sat Dec 27 01:52:27 2003] [error] [client 126.96.36.199]
: Premature end of script headers:
We'll probably need to see the script to be certain, but
these errors pop up often. Here is a list of things to try.
* Make certain the CGI program is printing header information
before sending anything to the browser, The header is
separated from the body with a blank line.
* Make certain the proper file permissions are in place for
your cgi-bin directory and for the file you are trying to
run. If this is a new server (for you), test your cgi-bin
with a less ambitious program that a send mail script. If
you have other files which are running correctly, use the
settings for them.
* If you are uploading your script to the server via FTP use
ASCII and not BINARY to upload.
* When opening files or directories always test for success.
This may be the source of your first error.
: Then I tried to call this script from browser URL string and
: I got the same error.
: Could anyone explain me this situation? My work stopped by
: this inconvenience, and I suppose it is not too complicated :-/.
Without seeing the script it is difficult to tell you what
the problems are. Feel free to post it here in a follow-up message.
If you didn't write it, say so. There are many really bad perl
scripts out there. Post your code and we can help you further.
Be prepared to rewrite it. Beginners seldom write great code.
Charles K. Clarkson
Head Bottle Washer,
Clarkson Energy Homes, Inc.
Mobile Home Specialists