Differences between revisions 2 and 3
Revision 2 as of 2008-11-17 16:30:46
Size: 668
Editor: preaction
Comment: Removing duplicate header
Revision 3 as of 2009-09-20 22:13:33
Size: 670
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 14: Line 14:
 * [http://en.wikipedia.org/wiki/Shebang_(Unix) Shebang (Unix) -- Wikipedia, the free encyclopedia]  * [[http://en.wikipedia.org/wiki/Shebang_(Unix)|Shebang (Unix) -- Wikipedia, the free encyclopedia]]

(8)Exec format error: exec of '...' failed

Usually this error message means one of two things:

  1. Your CGI script does not have a #! line
  2. Your CGI program is not a valid binary for the system

The first two bytes of a file are used to determine how to execute the file. If those two bytes are #!, something special happens: The rest of the line is treated as the path to an executable to run the rest of the file. If those two bytes are not #!, then the system assumes it's a binary file and tries to execute it that way.

See Also

ExecFormatError (last edited 2009-09-20 22:13:33 by localhost)