kiss9815 / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

what is syntax for mongoose.conf on linux? #311

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I need to run both perl and php from the server. I can only get one or the 
other. everything works https etc except only one interpeter and must use the 
-I `which php-cgi`  or `which perl`  from the command line I can't get both php 
and perl to run.  mongoose starts but  malformed header. 

I resorted to running 2 instances one with php and the other with perl that 
works. but does not solve the problem

I cannot get the correct syntax for mongoose.conf  which from the windows 
emample allows listing multiple interpeters. I tried every combination I can 
think of. anyone has a working  conf please post

What version of the product are you using? On what operating system?
mongoose 3.0 compiled on debian squeeze 

Original issue reported on code.google.com by guyt1...@gmail.com on 23 Jan 2012 at 12:21

GoogleCodeExporter commented 9 years ago
Do not use -I option at all, leave it unset.
In your CGI scripts, there should be a first hashbang line set, 
"#!/path/to/interpreter"
It could be php, perl, or whatever else.

Original comment by valenok on 23 Jan 2012 at 10:12

GoogleCodeExporter commented 9 years ago
Ok tried that it works, I had tried that before with no luck had to make the 
scripts executable  any tip for that? That seems wrong. How about an example of 
the -E option? how can it be used? This server is badass!! much better than 
uhttpd. Anyone have any ideas to add the interpreter hashbang line to a bunch 
of scripts in a folder with one command? it is a it tedious to have to add that 
line to every script. I am reading the sed manual to try figure it out. If a 
utility can be added to fix this it will go a long way to making up for 
mongoose lack of ability to just process the script from the extension. Thanks 
for the quick response.

Original comment by guyt1...@gmail.com on 25 Jan 2012 at 3:16