Loading ...
Sorry, an error occurred while loading the content.

RE: [PBML] I don't understand...

Expand Messages
  • Charles K. Clarkson
    ... 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
    Message 1 of 3 , Dec 27, 2003
    • 0 Attachment
      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 217.195.96.140]
      : Premature end of script headers:
      : /home/engilem/www/cgi-bin/sendmail.cgi

      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.

      HTH,

      Charles K. Clarkson
      --
      Head Bottle Washer,
      Clarkson Energy Homes, Inc.
      Mobile Home Specialists
      254 968-8328
    • Nicolay A. Vasiliev
      Hello there! I found the source of my trouble - I set incorrect permissiaon of script. So the server cached this value and stored it for a long time. After
      Message 2 of 3 , Dec 29, 2003
      • 0 Attachment
        Hello there!

        I found the source of my trouble - I set incorrect permissiaon of
        script. So the server cached this value and stored it for a long time.
        After some time script is working.

        http://www.soft411.com - Excellent soft archive
        http://www.spamliquidator.com - Kill spam
      Your message has been successfully submitted and would be delivered to recipients shortly.