Hello, I tried to run a binary cgi in the /var/www/archive/cgi directory. The permission is already set to 777 and a simple perl program works well in this directory. But it fails when run this binary cgi. The error in error.log is
(8)Exec format error: exec of '/var/www/archive/cgi/ArchiveDataServer.cgi' failed
Premature end of script headers: ArchiveDataServer.cgi, referer:
http://localhost/archive/cgi/
The error in web browser is:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Thanks.