D:\Lua\5.1>wsapi.fcgi.exe
WSAPI error in application: D:\Lua\5.1\lua/wsapi\common.lua:408: could not find a filename to load, check your configuration or URL
stack traceback:
        [C]: in function 'error'
D:\Lua\5.1\lua/wsapi\common.lua:408: in function 'adjust_non_wrapped'
        D:\Lua\5.1\lua/wsapi\common.lua:422: in function 'normalize_paths'
        D:\Lua\5.1\lua/wsapi\common.lua:439: in function 'find_module'
D:\Lua\5.1\lua/wsapi\common.lua:521: in function <D:\Lua\5.1\lua/wsapi\common.lua:519>
        (tail call): ?
        (tail call): ?
        [C]: in function 'xpcall'
        D:\Lua\5.1\lua/wsapi\common.lua:257: in function 'run_app'
        D:\Lua\5.1\lua/wsapi\common.lua:284: in function 'run'
        D:\Lua\5.1\lua/wsapi\fastcgi.lua:40: in function 'run'
        [string "..."]:27: in main chunk
Status: 500 Internal Server Error
Content-Length: 951
Content-Type: text/html

<html>
<head><title>WSAPI Error in Application</title></head>
<body>
<p>There was an error in the specified application.
        The full error message follows:</p>
<pre>
D:\Lua\5.1\lua/wsapi\common.lua:408: could not find a filename to load, check your configuration or URL
stack traceback:
        [C]: in function 'error'
D:\Lua\5.1\lua/wsapi\common.lua:408: in function 'adjust_non_wrapped'
        D:\Lua\5.1\lua/wsapi\common.lua:422: in function 'normalize_paths'
        D:\Lua\5.1\lua/wsapi\common.lua:439: in function 'find_module'
D:\Lua\5.1\lua/wsapi\common.lua:521: in function <D:\Lua\5.1\lua/wsapi\common.lua:519>
        (tail call): ?
        (tail call): ?
        [C]: in function 'xpcall'
        D:\Lua\5.1\lua/wsapi\common.lua:257: in function 'run_app'
        D:\Lua\5.1\lua/wsapi\common.lua:284: in function 'run'
        D:\Lua\5.1\lua/wsapi\fastcgi.lua:40: in function 'run'
        [string "..."]:27: in main chunk
</pre>
</body>


Am 26.07.2011 18:28, schrieb Fabio Mascarenhas:
What do you see when you run "D:\Lua\5.1\wsapi.fcgi.exe" from the Command Prompt

--
Fabio Mascarenhas



On Tue, Jul 26, 2011 at 12:10 PM, Maximilian Lasser<fir...@online.de>  wrote:
Thanks for that.

Unfortunately that seems to not have been the problem.
I added these lines to the httpd.conf:
     LoadModule fcgid_module modules/mod_fcgid.so

     # Manually pass needed non-standard system environment variables.
     PassEnv LUA_DEV

     <IfModule fcgid_module>
         AddHandler fcgid-script .lua
         FcgidWrapper "D:\Lua\5.1\wsapi.fcgi.exe" .lua
     </IfModule>

My test.lua is a simple script from the cgilua page:
     cgilua.htmlheader()
     cgilua.put([[
     <html>
     <head>
       <title>Hello World</title>
     </head>
     <body>
       <strong>Hello World!</strong>
     </body>
     </html>]])

The error.log tells me:
[Tue Jul 26 16:46:50 2011] [warn] [client 127.0.0.1] mod_fcgid: read timeout
from pipe
[Tue Jul 26 16:46:50 2011] [error] [client 127.0.0.1] Premature end of
script headers: test.lua

I don't know how to fix this. Does maybe anyone of you have a clue what's
wrong with it?
It works when I use CGI and the cgilua.cgi.exe, but not with fcgi.

As I wrote earlier I'm using Apache httpd 2.2.19 with fcgi 2.6.3 and the
last versions of cgilua and wsapi on Win32 XP SP3.

Regards,
Firzen


Am 26.07.2011 15:56, schrieb Fabio Mascarenhas:

I have uploaded binary rocks for wsapi, wsapi-fcgi and wsapi-xavante
to the repository, please try to install again.

--
Fabio Mascarenhas


On Tue, Jul 26, 2011 at 8:18 AM, Maximilian Lasser<fir...@online.de>  wrote:

Hi,

I'm trying to set up cgilua with Apache httpd 2.2.19 and fcgid 2.3.6 on
Win32 XP SP3.
It doesn't work and I think the reason for this is that the WSAPI fcgi
wrappers are not installed correctly.

I tried executing luarocks install waspi again and came to the following
command which failed:
     rc -r -fosrc\launcher\wsapi.cgi.res src\launcher\wsapi.cgi.rc

The problem is that I do not have rc installed - I found out it seems to be
the Microsoft Resource Compiler, but I didn't find any download possibility.

The installation then aborted with:
     Error: Build error: Build error in wrapper binaries

What can I do? Are there already compiled binaries I can download somewhere
or can I somehow get or workaround the rc?

I'd appreciate any help. Thanks.

Regards,
Firzen

_______________________________________________
Kepler-Project mailing list
Kepler-Project@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/

_______________________________________________
Kepler-Project mailing list
Kepler-Project@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/


_______________________________________________
Kepler-Project mailing list
Kepler-Project@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/

_______________________________________________
Kepler-Project mailing list
Kepler-Project@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/

_______________________________________________
Kepler-Project mailing list
Kepler-Project@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/

Reply via email to