CGIWrap error: exec format error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Piotr Wolski

    CGIWrap error: exec format error


    This message usually indicates there is a problem with the script
    itself. Often this indicates either that the #! line of the script
    is incorrect, or the script was uploaded in binary mode instead of
    ascii mode. Check to make sure that the script does not have
    control-M's at the end of every line. That will prevent it from
    executing. An easy fix that takes care of this most of the time
    is to put '#!/.../perl --' instead of '#!/.../perl' on the first
    line of the script.
    This is typically a problem if the script was edited or uploaded
    from a DOS/Windows/Macintosh station to a unix based server.
    If you are not the owner of this script, please forward this error
    and the URL that caused it to the script owner. That is often the
    component in the URL right after /cgiwrap/.

    does anybody know what does this message means?
    i have no idea what to do with it..
  • Michael Austin

    #2
    Re: CGIWrap error: exec format error

    Piotr Wolski wrote:
    [color=blue]
    >
    > This message usually indicates there is a problem with the script
    > itself. Often this indicates either that the #! line of the script
    > is incorrect, or the script was uploaded in binary mode instead of
    > ascii mode. Check to make sure that the script does not have
    > control-M's at the end of every line. That will prevent it from
    > executing. An easy fix that takes care of this most of the time
    > is to put '#!/.../perl --' instead of '#!/.../perl' on the first
    > line of the script.
    > This is typically a problem if the script was edited or uploaded
    > from a DOS/Windows/Macintosh station to a unix based server.
    > If you are not the owner of this script, please forward this error
    > and the URL that caused it to the script owner. That is often the
    > component in the URL right after /cgiwrap/.
    >
    > does anybody know what does this message means?
    > i have no idea what to do with it..[/color]

    what is the first line of your script. According to this in should be:

    #!/xxx/yyy/perl --

    as opposed to

    #!/xxx/yyy/perl

    --
    Michael Austin.
    Consultant - Available.
    Donations welcomed. Http://www.firstdbasource.com/donations.html
    :)

    Comment

    • Piotr Wolski

      #3
      Re: CGIWrap error: exec format error

      Michael Austin wrote:[color=blue]
      > Piotr Wolski wrote:
      >[color=green]
      >>
      >> This message usually indicates there is a problem with the script
      >> itself. Often this indicates either that the #! line of the script
      >> is incorrect, or the script was uploaded in binary mode instead of
      >> ascii mode. Check to make sure that the script does not have
      >> control-M's at the end of every line. That will prevent it from
      >> executing. An easy fix that takes care of this most of the time
      >> is to put '#!/.../perl --' instead of '#!/.../perl' on the first
      >> line of the script.
      >> This is typically a problem if the script was edited or uploaded
      >> from a DOS/Windows/Macintosh station to a unix based server.
      >> If you are not the owner of this script, please forward this error
      >> and the URL that caused it to the script owner. That is often the
      >> component in the URL right after /cgiwrap/.
      >>
      >> does anybody know what does this message means?
      >> i have no idea what to do with it..[/color]
      >
      >
      > what is the first line of your script. According to this in should be:
      >
      > #!/xxx/yyy/perl --
      >
      > as opposed to
      >
      > #!/xxx/yyy/perl[/color]

      yes, the fact it finnally worked when i added #!/path/to/php

      thanks[color=blue]
      >[/color]

      Comment

      Working...