There are pre-built binaries availabe as well.
On Wed, Jan 15, 2014 at 1:49 PM, Gilles <[email protected]> wrote: > I just downloaded > mongoose-5.1.tgz<http://code.google.com/p/mongoose/downloads/list>, > but it doesn't contain the ./build sub-directory available in 5.0, so don't > know how to compile it to get a Lua + SQLite binary > > On Tuesday, January 14, 2014 6:54:21 PM UTC+1, Sergey Lyubka wrote: > >> Please make sure you're using the latest release. >> >> >> On Tue, Jan 14, 2014 at 5:10 PM, Gilles <[email protected]> wrote: >> >>> Hello >>> >>> I followed the example <http://cesanta.com/#docs,LuaSqlite.md> by >>> creating test.lp in the document_root directory: >>> HTTP/1.0 200 OK >>> Content-Type: text/plain >>> >>> <? >>> print("Hi!") >>> ?> >>> >>> But when called from the browser, Mongoose displays the source of the >>> script instead of running it. >>> >>> I also tried this, same result: >>> <? mg.write('HTTP/1.0 200 OK\r\nContent-Type: text/html\r\n\r\n') ?> >>> <html><body> >>> <span>Today is:</span> <? mg.write(os.date("%A")) ?> >>> </body></html> >>> >>> Do I need to add something else to mongoose.conf to tell it to consider >>> "*.lp" as Lua scripts? >>> enable_directory_listing no >>> auth_domain srv >>> document_root /var/local/mongoose/www >>> hide_files_patterns .htaccess >>> run_as_user nobody >>> #NO NEED FOR LUA cgi_pattern /var/local/mongoose/cgi-bin/*.cgi >>> >>> Thank you. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "mongoose-users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> >>> Visit this group at http://groups.google.com/group/mongoose-users. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >> >> -- > You received this message because you are subscribed to the Google Groups > "mongoose-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/mongoose-users. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "mongoose-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/mongoose-users. For more options, visit https://groups.google.com/groups/opt_out.
