The HTTP status code is 500 Internal Server Error. It occurs after about
20-30 seconds loading. And yes, there are ExecCGI permissions I think. I
set them like this (the rest is from the default apache configuration):
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "D:/Apache Software Foundation/Apache2.2/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI
MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks _*ExecCGI*_
#
# AllowOverride controls what directives may be placed in .htaccess
files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
The test.lua is in the htdocs folder.
I got a “Permission denied” HTTP code as the ExecCGI once missed.
Am 27.07.2011 02:10, schrieb Fabio Mascarenhas:
I installed Apache 2.2.19 and mod_fcgid 2.3.6 and could not reproduce
your issue (the error message when running cgilua.fcgi.exe from the
prompt is expected). What HTTP status code is test.lua returning? I
assume you gave ExecCGI permission to the directory where test.lua is.
--
Fabio Mascarenhas
On Tue, Jul 26, 2011 at 6:34 PM, Maximilian Lasser<fir...@online.de> wrote:
Yes, that was my fault.
The same error occured using the cgilua.fcgi.exe... I changed it to
wsapi.fcgi.exe temporarily just to see what happens.
So when I use cgilua.fcgi.exe and request the test.lua there's one error
line more:
[Tue Jul 26 23:05:03 2011] [warn] [client 127.0.0.1] mod_fcgid: read
timeout from pipe
[Tue Jul 26 23:05:03 2011] [error] [client 127.0.0.1] Premature end of
script headers: test.lua
[Tue Jul 26 23:05:10 2011] [warn] mod_fcgid: process 5908 graceful kill
fail, sending SIGKILL
When I run the cgilua.fcgi.exe without arguments I get the same output
wsapi.fcgi.exe gives me.
Am 26.07.2011 22:25, schrieb Fabio Mascarenhas:
Sorry, I just noticed that you are trying to run a CGILua script, not
plain WSAPI. You need to install the "cgilua" rock, and use
cgilua.fcgi.exe instead of wsapi.fcgi.exe in your Apache
configuration.
--
Fabio Mascarenhas
On Tue, Jul 26, 2011 at 4:47 PM, Maximilian Lasser<fir...@online.de> wrote:
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/
_______________________________________________
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/