Skip to content

mongoose cannot run c++ based cgi program #389

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. i want to use this mongoose to run some cgi program written by c++;
the file is compiled by MingGW.rename from hello.exe to hello.cgi and move to 
the web direction
2. i configure mongoose as follow:
# Mongoose web server configuration file.
# Lines starting with '#' and empty lines are ignored.
# For detailed description of every option, visit
# http://code.google.com/p/mongoose/wiki/MongooseManual

cgi_pattern **.cgi$|**.pl$|**.php$
cgi_environment cgi
# put_delete_passwords_file <value>
# cgi_interpreter <value>
...(etc not relationed)

3.
hello.cgi fails to run.
What is the expected output? What do you see instead?
hello.cgi should output a webpage as a demo:
C:\webroot\root>index.cgi
Contenttype:text/html

<html>
<head><title> hello world </title></head>
<body>
    Hello, this is your first CGI page!
</body>
</html>

but what i get is only error infomation:

Error 500: Internal Server Error
Cannot spawn CGI process [./root/hello.cgi]: No such device or address

What version of the product are you using? On what operating system?
v3.3 win 8 x 64 version

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 9 Dec 2012 at 8:52

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions